Skip to content

Commit 6538ba4

Browse files
docs(spec): page-record-no-component-refused entry names the console's explanation panel (#33315)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XFUm1vjLBYprxvZXBUN3Yai)_ Fixes #32759 Clause-②: no Metadata-protocol: none ## 维护者速读 - **改了什么**:纯文字。升级指南里 `page-record-no-component-refused` 这一条(记录页没放任何组件会被拒绝)的两句话:`reason` 末尾原说「已存成这样的页面在修好或删掉之前,控制台仍画空白面板」,改为「打开该对象的记录时,控制台在详情处画一个说明面板,写明页面名和三种修法:往区域里放组件、改成 slotted、删掉页面」;`acceptanceCriteria` 末尾「不是空白面板」改为「不是那个说明面板」。 - **为什么改**:PR #32693 合并后控制台不再画空白面板,而是画说明面板;这条迁移说明还是旧句子,`os migrate meta` 与升级指南会告诉作者错误的现状。 - **风险与回滚**:纯文字,加一个 `@objectstack/spec` patch changeset;`id`、`surface`、`replacement`、规则、schema 与运行时一概不动。回滚即 revert。 - **先看**:`packages/spec/src/migrations/entries/semantic/18.page-record-no-component-refused.ts` 的 `reason` 最后一句与 `acceptanceCriteria` 最后一句。 - **两分钟验证**:`git diff origin/main -- packages/spec/src/`,预期只有这两句字符串变化。 - **需要你做的**:无,席位落地。 ## What changes Release text only, measured against the Console change PR #32693 landed (`ui/packages/app-shell/src/views/RecordDetailView.tsx`, the `assignedPage && recordPagePlacesNoComponent(resolvedPage)` branch: an `Empty` panel, test id `record-page-places-no-component`, titled "This record page has nothing to show", whose description names the page and says an administrator can add components to a region, make the page slotted, or delete the page). 1. `packages/spec/src/migrations/entries/semantic/18.page-record-no-component-refused.ts`, `reason`, last sentence: "until it is fixed or deleted, the console still draws the blank panel for its object" now reads "until it is fixed or deleted, opening a record of its object in the console draws an explanation panel in place of the detail view, naming the page and the three fixes: place components in a region, make the page kind slotted, or delete it". 2. Same file, `acceptanceCriteria`, last clause: "… shows its detail view — the default record page, or the components you placed — not a blank panel" now ends "not the explanation panel that names the page and its fixes". 3. `.changeset/32759-page-record-no-component-entry-text.md`: `'@objectstack/spec': patch`. The entry ships in the package (`dist`, and the generated `spec-changes.json` and `protocol-upgrade-guide.md` in `files[]`). Unchanged: the entry's `id`, `surface`, `replacement` and every rule, schema and runtime answer. The past-tense sentences describing what such a page did before the refusal (header comment, and the `reason` sentence "opened every record of its object on a blank detail panel") and the one describing what the refusal message says ("saying that every record would open on a blank panel") stay: they remain true. No `registry.ts.template` rationale fragment exists for this entry (grep: 0 hits), and every projection of the entry (`registry.ts`, `spec-changes.json`, `protocol-upgrade-guide.md`, `content/docs/protocol-upgrade/18.md`) is gitignored and regenerated, so nothing else is committed. ## Tests No behaviour change, so no test is added and none is ablated. The only pin on the entry, `packages/spec/src/ui/page.test.ts` (step 18 test), asserts its presence and empty `conversionIds`, not its text. The `page.test.ts` title "naming the blank panel and the fixes" is about the parse refusal's message, which still says that, so it is left alone. After `pnpm --filter @objectstack/spec build`, `gen:spec-changes` and `gen:upgrade-guide`: the regenerated `registry.ts`, `spec-changes.json` and `content/docs/protocol-upgrade/18.md` each carry the new sentence and no "still draws the blank panel". ## Acceptance notes - The released `packages/spec/CHANGELOG.md` entry for 18.4.0 (the `page-record-no-component-refused` narrowing, its Unchanged bullet) also says "until it is fixed or deleted the console still draws the blank panel". It was true when 18.4.0 shipped; `CHANGELOG.md` is release-owned, so a correction is a dedicated docs-only PR (AGENTS.md, Documentation Guardrails), not a rider here. Noted for the seat. ## Verification Local gates on head `bdb02993` (base `fd7b378c`): 78 derived by `dispatch-gates --commands`, 77 exit 0, 1 NOT MEASURED (`check:dual-build-cjs-loads`, exit 3 PREREQUISITE NOT MET: it needs every package's `dist`, which CI builds). `--ran` reconciles 78 accounted, 0 unrun. `pnpm --filter @objectstack/spec test`: Test Files 840 passed, Tests 26832 passed (1 todo). `pnpm --filter @objectstack/spec typecheck`: exit 0. `check-changeset-no-major` and `check-empty-changeset` replayed as a `pull_request` event carrying this body: exit 0. Full list in the card's `os-dev-report`; CI runs the full set. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5piGTS7XkkfRsBof8p)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5piGTS7XkkfRsBof8p Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9562643 commit 6538ba4

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): the upgrade-guide entry `page-record-no-component-refused` says what the console draws today for a stored record page that places no component
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Prose only: no rule, schema, conversion or entry `id` changes. The ADR-0087 semantic entry `page-record-no-component-refused` (step 18 of `protocol-upgrade-guide.md`, and `spec-changes.json`) said that a page row already stored this way still opens every record of its object on a blank panel until it is fixed or deleted. The console no longer does that: opening a record of that object draws an explanation panel in place of the detail view, naming the page and the three fixes (place components in a region, make the page `kind: 'slotted'`, or delete it). The entry's `reason` now says so, and its `acceptanceCriteria` reads "not the explanation panel that names the page and its fixes" where it read "not a blank panel".

‎packages/spec/src/migrations/entries/semantic/18.page-record-no-component-refused.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ export const entry: SemanticMigration = {
5757
+ '⚠️ No D2 conversion: every rewrite that draws something changes what the page shows. '
5858
+ '⚠️ A page row already stored this way is served unchanged, with _diagnostics.valid false and the finding '
5959
+ 'at regions, and saving it again is refused until it places a component; until it is fixed or deleted, '
60-
+ 'the console still draws the blank panel for its object. ADR-0087.',
60+
+ 'opening a record of its object in the console draws an explanation panel in place of the detail view, '
61+
+ 'naming the page and the three fixes: place components in a region, make the page kind slotted, or delete '
62+
+ 'it. ADR-0087.',
6163
acceptanceCriteria:
6264
'Grep every page in defineStack pages sources, exported stacks and every page row in sys_metadata for a '
6365
+ 'record page (type record or no type) of kind full (or no kind) whose regions are absent, empty, or hold no '
@@ -66,5 +68,5 @@ export const entry: SemanticMigration = {
6668
+ 'artifact built from those sources before this change. Then objectstack validate '
6769
+ 'reports nothing at pages.N.regions, saving each kept page through the metadata API succeeds, and opening '
6870
+ 'a record of each affected object shows its detail view — the default record page, or the components you '
69-
+ 'placed — not a blank panel.',
71+
+ 'placed — not the explanation panel that names the page and its fixes.',
7072
};

0 commit comments

Comments
 (0)