Skip to content

Commit 52fb30c

Browse files
feat(plugin-detail): the default record page drops the stage bar and key-field strip; the stage moves from the header tag (#35938)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu6iCLzAMRsv6Rp5pxzmbKve)_ repo:objectstack#1 · os-sales · session_01L6bhgTcbvQNTSr6ij3TMW7 Fixes #35891 Fixes #35849 Part of epic #35590 (record page redo). Maintainer, 2026-11-20 17:16:59Z, on the fig. 41 direction for these two cards: 「把阶段条和关键字段条去掉,是的」. Clause-②: yes (widening) — new members: `RecordStageMenu` and `RecordStageMenuProps` on the `@object-ui/plugin-detail` entry, the `RecordHeaderStageParts` type and an optional `stage` member on `RecordHeaderState` in `@object-ui/components`, four `detail.stageMenu*` keys in every `@object-ui/i18n` locale, and `@objectstack/lint` `field-group-shadowed` accepting more (a highlighted member no longer counts as hidden from the body); nothing removed or renamed (`useStageChange`'s new third parameter is package-internal: the hook is not exported from the entry) Metadata-protocol: semantic — the same metadata draws a different default record page: `highlightFields` no longer draws a strip or takes fields out of their groups, `stageField` draws the header tag's menu instead of a path Skills-docs: follow-up #35942 (`skills/objectstack-ui/rules/record-page.md` step 1 still says `highlightFields` draws a strip and `stageField` a stage path; a skills-lane card). This PR updates the hand-written docs: `content/docs/ui/pages.mdx` (the synthesized default and the `highlights` slot row), `content/docs/ui/forms.mdx`, `content/docs/data-modeling/objects.mdx` and `schema-design.mdx` (what `highlightFields` and `stageField` drive) ## 维护者速读 - 用户打开任意记录详情页时,顶部不再有阶段条和关键字段条;阶段改在记录名旁的状态标签上,点开下拉直接改,手机上也一样。 - 属于「记录详情页重做」专题:后台配的字段分组原样显示,不再有字段被抽走,查看和编辑时字段的位置一致。 - 有编辑权限的人改阶段时会先确认,某阶段要求补填的字段(如丢单原因)会在同一个框里填完一起保存;服务端拒绝时阶段不动,原因就显示在框里。自定义页面里仍可放回这两个组件,改动可直接撤回。 - 无。 ## Why Epic #35590 redraws the record page to fig. 41: one header row, then the record's own groups. The maintainer confirmed dropping the stage bar and the key-field strip (quoted above), which leaves the header's status tag as the only place the stage is read, so it becomes the place it is moved. With the strip gone, nothing needs to be taken out of the groups, which is #35849's 「后台配的分组原样生效」. ## What changes **The default record page (`buildDefaultPageSchema`)** no longer emits `record:highlights` or `record:path`. Its shape is now `page:header`, then an authored `highlights` slot if one is given, then `page:tabs`. **Field groups as configured (#35849).** The details body draws every field its groups hold. The highlight fields and the stage field are no longer taken out of their groups (`headerDrawnFields` and `drawnPathField` are gone, `synthTabs` no longer takes a hidden list). `highlightFields` is unchanged and still drives the hover card, a related list's default columns and the record picker. Nothing is picked when an object declares none (#28868 kept). Of #35849's three items, the read-only top row is no longer needed once the strip is gone, as the coordinator's comment on the card says. **The stage moves from the header's status tag (#35891).** - `@object-ui/components`: `RecordHeaderState` gains an optional `stage` renderer, `(parts: RecordHeaderStageParts) => ReactNode`. The header calls it with the tag it would draw (field, label, tag) and draws the result in the host bar and in its own row. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags. Before, a phone showed no stage at all. - `@object-ui/plugin-detail`: new `RecordStageMenu`. A reader who may edit the stage field sees the tag with an arrow; it opens a menu listing every stage in order, the current one checked. A stage the field's blocking `state_machine` cannot reach is disabled, with its reason under the name. Picking a stage opens a confirm dialog focused on Move (Enter confirms), or on the first field it asks for. - A stage that makes other fields required (their `requiredWhen` holds once the record stands on it, for example a loss reason on a lost stage) asks for exactly those fields in the same dialog, and the move and the values go in one write with `ifMatch`. A server refusal stays in the dialog, beside the field it names (a field the menu did not know about is added to the form), and the stage does not move. The server stays the validation authority; the client only decides which fields to ask for. - A reader without the edit grant on the field, a page that may not edit (an approval lock included) or an open draft sees the plain tag, no arrow. A plain status field (no stage role) is read and moved the same way. - The package-internal `useStageChange` takes `{ collectFields: true }` for this dialog; `record:path` keeps its plain confirmation and its Cancel-first focus. - `@object-ui/app-shell` `RecordDetailView`: one hunk, hands `RecordStageMenu` to the header as `recordHeaderState.stage`. The record header's two-row work (#35853) is in flight on another branch; the menu is built on the current tag and rides wherever #35853 puts the status tag. **Kept for authored pages.** `buildDefaultHighlights` and both blocks stay: an authored page, or a slotted page's `highlights` slot, still places a strip and a path where it wants them. **Lint.** `field-group-shadowed` (packages/lint) no longer counts the highlight strip as hiding fields from the detail body. A group whose only visible member is the record title still warns. **i18n.** Four `detail.stageMenu*` strings in every locale; zh-Hant regenerated from zh-Hans by `gen:zh-hant`. **Platform checklist.** `studio-authoring.record-page-roundtrip` r17: a full record page copies the default, which now carries no strip and no bar, so acceptance[0] asks for the default's blocks and neither block. `records-forms.master-detail-body-tables` acceptance[0] still says the Tasks table sits "under the header strip's stage bar and key fields"; that item belongs to #35889's change of the master-detail default, so it is left to that PR (listed as a follow-up below). ## Tests <details><summary>Migrated (the old rule pinned the strip, the path or the hidden list)</summary> - `plugin-detail/src/synth/__tests__/buildDefaultPageSchema.test.ts`: default types are `page:header`, `page:tabs`; a control pins that `buildDefaultHighlights` still emits both blocks; the options-override case runs on the sub-builder; the slot case now says the slot places the strip the page draws. - `plugin-detail/src/synth/__tests__/highlights-declaredOnly-28868.test.ts`: sections 2 and 3 rewritten to the new rule (no strip, no path, `hideFields` undefined in every case); `deriveHighlightFields` still reads the declared list minus the title, at most six. - `plugin-detail/src/synth/__tests__/buildDefaultPageSchema.strictPayload.test.ts`: `record:highlights` and `record:path` leave the emitted-type list. - `plugin-detail/src/synth/__tests__/buildDefaultPageSchema.bodyTables-27055.test.ts`: declared key fields draw no strip; the staged case places its strip through the `highlights` slot. - `plugin-detail/src/renderers/__tests__/record-path.stageChange-28199.test.tsx`: a `stripPage` helper places `buildDefaultHighlights` in the slot; describe names say "the synthesized strip". - `plugin-detail/src/renderers/__tests__/record-highlights.groupGate-12720.test.tsx`: the strip node comes from `buildDefaultHighlights`. - `plugin-detail/src/__tests__/RecordPageColumns.test.tsx`: uses a slotted strip. - `app-shell/src/views/RecordDetailView.phoneFace-27058.test.tsx`: the header keeps its subtitle and draws no strip under it; the strip's fields read in their groups. - `app-shell/src/views/RecordDetailView.lookupDependsOn-7190.test.tsx`: both `InlineFieldInput` call sites stay pinned; the strip is placed through a slotted page's `highlights` slot (`stripPage`), holding the list each case declares. Ablated: without the slotted page the strip-site prune case fails. - `app-shell/src/views/RecordDetailView.updateActionRefresh-29935.test.tsx`: the stage is read from the header's stage tag instead of the path bar's current step. - `app-shell/src/views/RecordDetailView.phoneOwnerLine-28909.test.tsx`: no strip at 390 or 1440, and the meta line names the owner at both (it used to be left out on a desktop, where the strip named it). - `ui/e2e/record-tabs-rail-35595.spec.ts` (Playwright, found red on CI Build & E2E UI at `7886ee09`): the fixture places the stage path and key fields through the `highlights` slot (`buildDefaultHighlights`), as an authored page does; the span-both-columns and "another tab draws no strip" assertions are unchanged. 6 of 6 pass locally on chromium. - `packages/lint/src/validate-semantic-roles.test.ts`: rule (d) cases rewritten; positions 1 to 6 of a declared list come out clean; title-only still flags, with a hidden-member case and a control; the #6326 primaryField case uses a group holding only `ref_no`. </details> <details><summary>Voided (the behaviour is gone by the maintainer's ruling)</summary> - lint: "flags a group fully shadowed by the highlight strip (rule d)" and "rule d judges the six highlights the record page hoists, not four". The default page no longer hoists highlights, so there is nothing to shadow; replaced by "rule d no longer counts highlights as hidden from the body". - 28868: "a declared entry past the sixth is drawn by the body, not dropped from both", "the stage joins a declared strip's hide list, once", "control: no path (stageField: false)…", "control: a status field with no stages to draw…", "an authored highlights slot decides: its record:path hides the stage…". The body hides nothing now, so each of these collapses into "the body hides nothing" (kept as new cases above). - buildDefaultPageSchema: "omits record:path when no status field" and "omits record:highlights when no fields derivable". The default page omits both always. </details> <details><summary>New</summary> - `plugin-detail/src/__tests__/RecordStageMenu-35891.test.tsx` (15): menu order and current stage; unreachable stage disabled with its reason; confirm writes with `ifMatch` and re-reads; cancel writes nothing; Closed Lost asks for the loss reason only and writes it with the move; an empty submission's server refusal stays in the dialog beside the field and nothing re-reads; a refusal naming an unknown field adds it; a non-field refusal reads under the form; the plain tag for `canEdit: false` and for a denied field grant, with a control; keyboard: Enter opens, Escape closes, the dialog opens focused on Move (or on the first field), and `record:path` keeps Cancel first. The two focus cases were ablated: with the focus hook removed they fail. - `components/src/__tests__/page-header-stage-tag-35891.test.tsx` (5): the phone row draws the stage tag first; the host `stage` receives field, label and tag and replaces the plain tag; the host control draws in the bar's title slot; no stage value means no tag and no call. </details> ## Acceptance notes - The owner, once (#28868): the meta line leaves the owner out only when a drawn strip carries it, and the default page draws none, so the meta line now names the owner at every width. An object whose field groups place `owner_id` also shows it in the body, so the owner is named twice there. That was already the case on `main` for an object declaring no highlights; with highlights declared it is new. Not changed here: follow-up #35941. - "Readers without edit rights see no arrow" is read through the same verdict `record:path` uses (`useStageChange`: page `canEdit`, which an approval lock already turns off, field readonly or computed, the field's `recordEdit` affordance and the row-scoped field grant). - The phone keeps the same console (#35880 constraint 1): the header row under the name is what a phone shows, and it now carries the stage. - Twenty was read for structure only; no code copied. ## Verification <details><summary>Browser (showcase, built console, 1280 and 375 wide, light and dark)</summary> Evidence in `/mnt/project-files/build-seat1/35891/` (project files). - Semantic zoo record: no strip, no path; Status stays in its Basics group; the arrowed stage tag opens the menu (current stage checked, every stage listed) at 1280 and 375, light and dark; no horizontal scroll at either width (scrollWidth 1280 and 375). - Keyboard only: focus the tag, Enter opens, arrows move to Done, Enter picks, the dialog opens focused on Move, Enter confirms; the tag reads Done and still reads Done after a reload (the API returns the new status). Before the focus fix, Enter hit Cancel; that run is why the focus hook exists. - Invoice INV-1001 uses an authored page under a pending approval: no stage menu there, as intended. - The fields a stage needs (L1-c finding 3), at 1280 and 375, record in `browser-check-fields-dialog.md` beside the screenshots. With a temporary, uncommitted `requiredWhen: 'record.status == "done"'` on the zoo's `code`: picking Done opens a dialog holding only Code, focused; Move with Code empty keeps the dialog open with 「Code不能为空」 under the field and the API status `active`; filling Code and Move closes it, the tag reads Done, the API stores both. A bare PATCH to `done` answered `VALIDATION_FAILED` naming `code`, so the server is the authority. No horizontal scroll at either width. </details> <details><summary>Local gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands`: 71 commands, all exit 0. Two first answered non-zero for the box, not the diff, and were re-run: `check-plugin-teardown-shape --self-test` exit 3 until its pinned fixture commit was fetched (shallow clone), and `pnpm --dir ui exec vitest run scripts/` killed for memory while a parallel eslint ran. - `node scripts/check-platform-checklist.mjs --changed-from origin/main` and `pnpm check:platform-checklist`: OK. `node scripts/check-skills-token-ratchet.mjs`: within ceilings. - vitest from `ui/`: all of `packages/app-shell` (2351 files, 22049 tests: 4 failed on the old rule, migrated as listed under Tests, then the RecordDetailView files re-run green), all of `packages/components`, `packages/plugin-detail` and `packages/i18n` (994 files, 10360 tests, 0 failed). After merging `main`: the RecordDetailView files, plugin-detail `synth`, the two new test files and `packages/i18n` again, 0 failed. - `@objectstack/lint`: `validate-semantic-roles.test.ts` 30 passed; `tsc --noEmit` exit 0. - `type-check` (`tsc --noEmit` and the test tsconfig) for `@object-ui/components`, `@object-ui/plugin-detail`, `@object-ui/app-shell`: exit 0. ESLint over every changed `.ts`/`.tsx`: 0 errors. - `node scripts/pm/overlap-check.mjs`: conflicted with #35925 (#35900, the group `fields` list) in `packages/lint/src/validate-semantic-roles.ts`, rule (d). #35925 landed first (`170ca481`); resolved in the `main` merge below. - After the `main` merge with #35925: `@objectstack/lint` `validate-semantic-roles.test.ts` 34 passed; plugin-detail `synth` re-run. </details> Follow-ups (not in this PR): - Follow-up: #35941 (owner shown twice when a field group draws owner_id; pre-existing on main) - follow-up: #35889 — `records-forms.master-detail-body-tables` acceptance[0] wording ("under the header strip's stage bar and key fields"), with its rewrite of that item. - follow-up: #35943 — retiring `BuildPageOptions.highlightFields` / `.statusField` / `.stages` and the phone-capped list `RecordDetailView` passes in; the generated `record:details.hideFields` description ("the synth pipeline fills it with the fields already shown in `record:highlights`") and the `highlightFields` describe and Studio help text in `packages/spec` ("record-detail highlight strip"); both regenerate from spec sources; and the stale comments that still describe the hoisting rule: the JSDoc of `RECORD_HIGHLIGHTS_MAX` in `packages/spec/src/ui/component.zod.ts`, the semantic-zoo object's comment on `highlightFields` in `examples/app-showcase`, and the dogfood test comment that cites it. Flow: built in the card thread (dev-thread flow); L1 by the L1-c review thread, the seat adopts and lands. ## Rework round 1 (L1-c 7050407052) - must-fix 1: the `skills/**` hunk is reverted (`7886ee09`); the skill text is follow-up #35942. - should-fix 2: follow-ups carry cards: #35942 (skill), #35943 (spec describe, Studio help, generated `hideFields` text, stale comments), #35889 (the master-detail checklist item), #35941 (owner shown twice). - should-fix 3: the browser run of the fields dialog at 1280 and 375 is done (Verification). - nit 4: the signature line no longer carries the area suffix. - CI at `7886ee09`: Build & E2E UI failed two cases of `record-tabs-rail-35595.spec.ts` that read the strip on the default page; migrated at `723d2890` (Tests). ## Merge with #35925 and declaration L2 should-fix (7051547558) - `main` merged at `170ca481` (#35925). The one conflict was the import block of `validate-semantic-roles.ts`: `RECORD_HIGHLIGHTS_MAX` stays dropped, `readFieldGroupMembership` is kept. Rule (d) now counts a group's members the way the layout resolves them (#35925: the group's own `fields` list first, then `Field.group`) and hides only the record title from the body (this PR). Both hold. - #35925 added a rule (d) case that expected `highlightFields: ['name', 'code']` to shadow a group listing `code` and `name`. Under this PR the highlighted `code` is drawn in the body, so the case is migrated: that object now comes out clean, and a group listing only the title still flags `field-group-shadowed`. - should-fix S1: `BuildPageOptions.highlightFields`, `.statusField` and `.stages` are marked accepted-but-unread in their JSDoc for `buildDefaultPageSchema` and `buildDefaultTabs` (the `primaryField` pattern, objectui#7287); `buildDefaultHighlights` still reads them. The changeset says they no longer do anything on the default page. The two dead pass-throughs into `synthTabs` are dropped. Retiring the keys, and the phone-capped `highlightFields` that `RecordDetailView` still computes and passes in (kept here to hold that file to one hunk), is follow-up #35943. - nits: the `Clause-②` line no longer lists `useStageChange`'s third parameter, which is package-internal, and now names the `field-group-shadowed` widening. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (ESLint over the changed files: 0 errors) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. (two folded cards, one pull request, as dispatched) - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the 维护者速读 block and the maintainer's quotes are Chinese by the maintainer's standing rule) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7 <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgTcbvQNTSr6ij3TMW7 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent cf2e321 commit 52fb30c

44 files changed

Lines changed: 1322 additions & 413 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@object-ui/plugin-detail': minor
3+
'@object-ui/components': minor
4+
'@object-ui/i18n': patch
5+
'@objectstack/lint': minor
6+
---
7+
8+
feat(plugin-detail): the default record page draws no stage bar and no key-field strip; the stage moves from the header's status tag
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: semantic
12+
13+
The default record page (`buildDefaultPageSchema`) no longer emits `record:highlights` or `record:path`. The stage is the status tag beside the record's name: a reader who may edit the stage field sees it with an arrow and opens a menu listing every stage in order, the current one checked; a stage the field's blocking `state_machine` cannot reach is disabled with its reason under the name. Picking a stage confirms, and a stage that makes other fields required (their `requiredWhen` holds once the record stands on it, such as a loss reason on a lost stage) asks for exactly those fields in the same dialog and writes them with the move. A refusal stays in the dialog, beside the field it names, and the stage does not move. A reader who may not edit the field, an approval lock or an open draft leaves the plain tag. A plain status field (no stage role) is read and moved the same way.
14+
15+
The details body now draws every field its groups hold: the highlight fields and the stage field are no longer taken out of their groups, so a record reads in the same groups and order in view and in edit (objectstack#35849). `highlightFields` itself is unchanged and still drives the hover card, a related list's default columns and the record picker; nothing is picked when an object declares none.
16+
17+
`buildDefaultHighlights` and both blocks are kept: an authored page, or a slotted page's `highlights` slot, still places a strip and a path where it wants them.
18+
19+
- `@object-ui/components`: `RecordHeaderState` gains an optional `stage` renderer (with the exported `RecordHeaderStageParts`), which the header calls with the stage tag it would draw. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags; before, a phone showed no stage at all.
20+
- `@object-ui/plugin-detail`: exports `RecordStageMenu`, the menu a host hands the header as `RecordHeaderState.stage`. Its fields-a-stage-needs dialog comes from the package-internal `useStageChange` (`record:path` keeps its plain confirmation).
21+
- `@object-ui/plugin-detail`: `BuildPageOptions.highlightFields`, `.statusField` and `.stages` are still accepted by `buildDefaultPageSchema` and `buildDefaultTabs` but no longer do anything there, since the default page draws no strip and no stage bar; `buildDefaultHighlights` still reads them. Retiring them is objectstack#35943.
22+
- `@object-ui/i18n`: four `detail.stageMenu*` strings in every locale.
23+
- `@objectstack/lint`: `field-group-shadowed` no longer counts the highlight strip as hiding fields from the detail body, since the default record page leaves them in their groups; a group whose only visible member is the record title still warns.

‎content/docs/data-modeling/objects.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const Account = ObjectSchema.create({
6969
| `nameField` | `string` | optional | The stored field used as the record display name, e.g. `'name'` or `'title'` (ADR-0079). The deprecated alias `displayNameField` is still accepted. |
7070
| `titleFormat` | `string` | optional | Deprecated (ADR-0079 → `nameField`). Render-only title template (e.g. `'{{record.name}} - {{record.code}}'`); an explicit `nameField` takes precedence. An object definition that declares it is refused at save and by `os validate`; a stored object that carries it still loads |
7171
| `imageField` | `string` | optional | The record's picture: names a field of this object whose type is `image` or `avatar` — any other name is refused when the object is validated or published. It is the one object-level declaration the record page header draws beside the title; a record whose field is empty shows no picture. |
72-
| `highlightFields` | `string[]` | optional | Most-important fields in priority order — default list columns, cards, previews, detail highlight strip (ADR-0085; formerly `compactLayout` — the old spelling was retired and is now rejected) |
72+
| `highlightFields` | `string[]` | optional | Most-important fields in priority order — default list columns, cards, previews (ADR-0085; formerly `compactLayout` — the old spelling was retired and is now rejected) |
7373
| `stageField` | `string \| false` | optional | Linear lifecycle field; `false` declares the status field non-linear and suppresses stage heuristics (ADR-0085) |
7474

7575
### Capabilities (`enable`)

‎content/docs/data-modeling/schema-design.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const MyObject = ObjectSchema.create({
5757
| `description` | string | Help text | `'Companies...'` |
5858
| `nameField` | string | Canonical primary title field — the stored field used as the record display name (ADR-0079); the deprecated alias `displayNameField` is still accepted | `'name'` |
5959
| `titleFormat` | string | Deprecated (ADR-0079 → `nameField`). Render-only title template (`{{record.field}}` interpolation); an explicit `nameField` now takes precedence. Refused at save and by `os validate`; a stored object that carries it still loads | `'{{record.name}} - {{record.id}}'` |
60-
| `highlightFields` | string[] | Most-important fields, in priority order (default columns, cards, previews, detail highlight strip; ADR-0085 — formerly `compactLayout`; the old spelling was retired and is now rejected) | `['name', 'status']` |
60+
| `highlightFields` | string[] | Most-important fields, in priority order (default columns, cards, previews; ADR-0085 — formerly `compactLayout`; the old spelling was retired and is now rejected) | `['name', 'status']` |
6161

6262
### Enable Features
6363

‎content/docs/ui/forms.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ has been removed from `ObjectSchema`). Record-detail rendering is derived from
454454
the object's **cross-surface semantic roles** (ADR-0085):
455455

456456
- `nameField` — which field is the record's display name.
457-
- `highlightFields` — the most important fields (detail highlight strip,
458-
default list columns, cards).
459-
- `stageField` — the linear-lifecycle field behind the detail progress
460-
stepper (`false` suppresses detection).
457+
- `highlightFields` — the most important fields (hover cards, the record
458+
picker, default list columns, cards).
459+
- `stageField` — the linear-lifecycle field behind the stage tag in the
460+
record header, a menu that moves it (`false` suppresses detection).
461461
- `fieldGroups` + `Field.group` — semantic grouping, rendered identically on
462462
forms, modals, and detail pages.
463463

‎content/docs/ui/pages.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ replacement.
180180
### The synthesized default
181181

182182
A record page needs no authoring. With no page assigned, the Console synthesizes one from
183-
the object: a header, the highlights strip, the record's **details**, and a right column of
183+
the object: a header, the record's **details**, and a right column of
184184
panels: the related lists, then the attachments of an object with `enable: { files: true }`,
185185
then **Approvals** when the record has approval requests, and **动态** (Activity) last. On a
186186
narrow screen the same panels follow the details in one column, so **动态** ends the page. A
@@ -226,7 +226,7 @@ synthesizer fills in the rest. A slotted page authors `slots`, not `regions`:
226226
| `header` | The `page:header` node |
227227
| `actions` | The action bar (`record:quick_actions`) |
228228
| `alerts` | The alert banners above the body |
229-
| `highlights` | The highlights strip |
229+
| `highlights` | Empty by default; a strip or stage bar placed here draws above the tabs |
230230
| `details` | The record's details; the rest of the page stays synthesized |
231231
| `discussion` | The discussion panel |
232232

‎docs/qa/platform-checklist/areas/studio-authoring.json‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,21 +315,21 @@
315315
"title": "Record-page authoring round-trip: created bound to its object, seeded from the default layout, block-edited, published, rendered",
316316
"since": "v16",
317317
"status": "active",
318-
"revision": 16,
318+
"revision": 17,
319319
"priority": "P1",
320320
"surface": "mixed",
321321
"personas": ["admin (authors)", "end user (opens the record). The viewer is the admin unless a member is used: every signed-in member reads showcase_account through the showcase's everyone baseline, showcase_member_default (allowRead; examples/app-showcase/src/security/permission-sets.ts MemberDefaultPermissionSet, which the dev CLI adds to every member per request). QA run #29893 (at 589049b0) drove the member leg as phone.demo@example.com and the authored page rendered; record which viewer each run used"],
322322
"fixtures": {
323323
"app": "showcase",
324-
"requires": ["seeded showcase_account records to render the published page against (the stock showcase seed, examples/app-showcase/src/data/seed/index.ts). The object is chosen for two facts. It DECLARES highlightFields (status, industry, annual_revenue; examples/app-showcase/src/data/objects/account.object.ts), and since #28907 the synthesized default draws record:highlights only for declared highlightFields (deriveHighlightFields in ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts: an object that declares none gets no strip), so only such an object can show acceptance[0]'s record:highlights. And it ships NO record page (no page under examples/app-showcase/src/ui/pages names it), so the authored page is the one usePageAssignment serves. ⛔ Not showcase_contact: it declares no highlightFields, so its full create seeds no record:highlights by design (QA run #29672). ⛔ Not showcase_invoice: it ships the package default record page showcase_invoice_document (isDefault: true, examples/app-showcase/src/ui/pages/invoice-document.page.ts), which wins by design (objectui react usePageAssignment: the default record page, else the first), and authoring a second isDefault page answers 422 DEFAULT_RECORD_PAGE_CONFLICT. showcase_project, showcase_task and showcase_preference ship defaults too (QA runs #24571 and #24604)"],
324+
"requires": ["seeded showcase_account records to render the published page against (the stock showcase seed, examples/app-showcase/src/data/seed/index.ts). The object is chosen because it ships NO record page (no page under examples/app-showcase/src/ui/pages names it), so the authored page is the one usePageAssignment serves. ⛔ Not showcase_invoice: it ships the package default record page showcase_invoice_document (isDefault: true, examples/app-showcase/src/ui/pages/invoice-document.page.ts), which wins by design (objectui react usePageAssignment: the default record page, else the first), and authoring a second isDefault page answers 422 DEFAULT_RECORD_PAGE_CONFLICT. showcase_project, showcase_task and showcase_preference ship defaults too (QA runs #24571 and #24604)"],
325325
"knownGaps": [
326326
"AUTOMATION LIVES UNDER ui/ — `automated.ref` names objectui specs, and since objectui was imported into this repository they resolve at ui/PATH in this checkout. A jsdom unit pin runs from ui/, the objectui root, with its path written relative to ui/: `cd ui && pnpm exec vitest run --maxWorkers=1 packages/PKG/src/FILE`. ⛔ Not `pnpm --filter @object-ui/PKG exec vitest run FILE`: that runs in the package directory, and the ui vitest guard (ui/scripts/vitest-invocation-guard.mjs, which ui/vitest.config.mts calls) refuses any run whose Vitest root is not ui/ (its package-cwd verdict). a ui/e2e/live spec runs from ui/ with `pnpm test:e2e:live SPEC` against a live backend and the console dev server (the prerequisites are in ui/playwright.live.config.ts). Cite the output naming the commit, or drive the item by hand in the browser and score it as a manual run. ⛔ Never score it as covered on the strength of the `automated` field alone — an unrun pin is a claim, not evidence. Full protocol: RUNNER.md, the objectui-pinned-automation standing fact."
327327
]
328328
},
329329
"steps": [
330330
"open /_console/studio/~all/metadata/page/new — Studio's All metadata area, where the retired Setup create URL (/_console/apps/showcase_app/metadata/page/new) lands in one hop since #28818 (setupMetadataStudioPath); the same create form (MetadataResourceEditPage in create mode), and with no ?package= the save binds no package, as before — and fill the create form: Label 'Invoice Page <uniq>' (slugifies into Name), set Page type = record (the create form defaults Page type to list — objectui metadata-admin anchors.ts, the page createSchema), Kind = full (a record page's Kind defaults to slotted, which saves regions [] and shows the object's synthesized default page by design; only an explicit full copies the default's regions into the draft, the page createSeed in ui/packages/app-shell/src/views/metadata-admin/anchors.ts), Object showcase_account (fixtures.requires[0]); Save",
331331
"capture the PUT /api/v1/meta/page/<name> request the save issues",
332-
"assert the draft body: type:'record', object:'showcase_account', kind:'full', and regions seeded NON-empty from the object's synthesized default detail page (the page resource's createSeed hook) including a record:highlights block carrying the object's declared highlightFields (fixtures.requires[0]) — never a blank canvas (ADR-0034 / objectui#1541)",
332+
"assert the draft body: type:'record', object:'showcase_account', kind:'full', and regions seeded NON-empty from the object's synthesized default detail page (the page resource's createSeed hook) including the record:details field sections, and no record:highlights or record:path block: since #35891 the synthesized default page draws neither, so the copy carries neither (an author adds them as blocks) — never a blank canvas (ADR-0034 / objectui#1541)",
333333
"open the page editor (/_console/studio/~all/metadata/page/<name>, the All metadata item page — the generic editor, since the cross-package leg opens no pillar): the Basics, Data Context and Advanced panels render (the layout is edited on the canvas, not in a Layout section — see acceptance[1].verify), and 'Add block' opens the block-type picker",
334334
"add a block (e.g. Card); the draft autosaves (the block pick and each property edit PUT the draft, and the toolbar Save stays disabled), then Publish through the ResourceEditPage draft/publish chrome",
335335
"GET /api/v1/meta/page/<name>: the published regions must include the added block",
@@ -338,9 +338,9 @@
338338
],
339339
"acceptance": [
340340
{
341-
"clause": "a record page created Kind = full persists bound to its object with PRE-SEEDED regions — record:highlights present, regions non-empty, on an object that declares highlightFields (fixtures.requires[0])",
341+
"clause": "a record page created Kind = full persists bound to its object with PRE-SEEDED regions — regions non-empty and the same blocks as the synthesized default page, which since #35891 places no key-field strip and no stage bar",
342342
"oracle": "network",
343-
"verify": "the captured PUT body has type:'record', object:'showcase_account', kind:'full', Array.isArray(regions) with blocks including record:highlights, which carries the declared highlightFields (status, industry, annual_revenue)",
343+
"verify": "the captured PUT body has type:'record', object:'showcase_account', kind:'full', Array.isArray(regions) non-empty, its blocks (those inside page:tabs included) holding record:details, and no record:highlights or record:path block anywhere in them (buildDefaultPageSchema in ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts places neither unless a highlights slot is authored)",
344344
"evidence": "the captured PUT payload"
345345
},
346346
{
@@ -430,7 +430,8 @@
430430
},
431431
{ "revision": 14, "date": "2026-11-03", "change": "the item's record page moves from showcase_contact to showcase_account: fixtures.requires[0], personas[1], steps[0], steps[2], steps[6], acceptance[0] (clause and verify), acceptance[3].verify and automated.ref. Since #28907 (8bb2417a74) the synthesized default record page draws record:highlights only for an object's declared highlightFields (deriveHighlightFields, ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts), and showcase_contact declares none. So QA run #29672 read a full create on it with no record:highlights and scored acceptance[0] FAIL as stale spec; its control, a full create on showcase_account, carried the block. Read from source at base 339f63da30: showcase_account declares highlightFields status, industry and annual_revenue (examples/app-showcase/src/data/objects/account.object.ts), the page createSeed copies the synthesized regions on a full create (ui/packages/app-shell/src/views/metadata-admin/anchors.ts), no showcase page names the object, and the everyone baseline showcase_member_default reads it. The clause keeps its strength: a full create on the named object without record:highlights is still the FAIL. acceptance[1] to [3] passed on showcase_contact in the run and are not yet driven on showcase_account. Card #29679, from QA run #29672", "ref": "#29679" },
432432
{ "revision": 15, "date": "2026-11-04", "change": "steps[4] and personas[1] corrected from QA run #29893 (W5-STUDIO, at 589049b0): the record page draft autosaves (Save stays disabled), and the member leg has now been driven. Read at base f68b47ca", "ref": "#29906" },
433-
{ "revision": 16, "date": "2026-11-08", "change": "acceptance[3].verify: a Card from the picker has no properties and renders an empty box, so its title is set before publish and the render is judged by that title. Checklist-accuracy finding of QA run #31486 (owed:weekly, at 0647dabb). Read at base 4894cfe1", "ref": "#31499" }
433+
{ "revision": 16, "date": "2026-11-08", "change": "acceptance[3].verify: a Card from the picker has no properties and renders an empty box, so its title is set before publish and the render is judged by that title. Checklist-accuracy finding of QA run #31486 (owed:weekly, at 0647dabb). Read at base 4894cfe1", "ref": "#31499" },
434+
{ "revision": 17, "date": "2026-11-20", "change": "fixtures.requires[0], steps[2] and acceptance[0] (clause and verify) follow #35891 (epic #35590; maintainer 2026-11-20 17:16:59Z, 「把阶段条和关键字段条去掉,是的」): the synthesized default record page places no record:highlights and no record:path, so a full create copies neither, and acceptance[0] would read their absence as a FAIL. The clause now asks for the default page's blocks, record:details among them, and for neither strip nor bar. showcase_account stays the object because it ships no record page; its declared highlightFields no longer decide the seed. The showcase_contact exclusion is gone with that reason. Read from source on the #35891 branch at base 2f314ee6b9. No run made", "ref": "#35891" }
434435
]
435436
},
436437
{

0 commit comments

Comments
 (0)