Repository navigation
feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) - #36629
Conversation
…three (#36366) `ObjectSchema.pinnedActions` (new, optional, no default): a `list` arm and a `record` arm, each the names of the actions that page's header draws as buttons, in order, at most three; every other action the header places goes to its More menu. An entry is an action name of the object or one of the page's `$` built-ins (`$import`, `$export` on the list page; none on the record page). The shape refuses more than three, an entry twice, a malformed entry and a built-in the page does not have, each with a named reason; the limit and the entry pattern are in the JSON Schema, uniqueness is the one dropped refinement (ledger rows added). `ObjectExtensionSchema.pinnedActions` carries the same leaf, so an installed object (ADR-0146 D10, extend-only) is pinned from its customization pair. The object form gains the `pinnedActions` composite (two string-tags rows), translated in every locale; the two echo-decision counts and the `/meta/types` object property count move with history lines. Clause-②: yes (widening) Metadata-protocol: added Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
…actions (#36366) `pinnedActions` is a fourth `OBJECT_FOLD_SCALAR_KEYS` member: an extension's arm replaces the running arm, an arm it leaves out stays, the higher `priority` is written last, and pins the tenant authored on the base stay (ADR-0029 D9.2a). It is not a string, so the yield asks the shared question by structure (`foldScalarOverridesPackagedBase`), with the string predicate's three conservative edges. Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
…used (#36366) `validateObjectPinnedActions` (gating, os validate / build / lint): a name in an object's or an object extension's `pinnedActions` that is no action of the object (`object-pinned-action-unknown`), or one not placed on that page (`object-pinned-action-not-placed`: `list_toolbar` for the list arm, `record_header` / `record_more` for the record arm). An extension of an object the stack does not define is not judged. CLI only: the runtime snapshot carries no stack `actions` (RUNTIME_NEEDS_FULL_SNAPSHOT). Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
…the design mode sets them (#36366) Both record headers (the default page's and an authored page:header with placedActions: true) and the list header read pinnedActions through one reader, pinnedHeaderActions. In the design mode, 「Header buttons」 at the end of the header moves actions between 「Pinned to header」 (at most three, dragged into order) and 「Other」; the header shows the staged change, and Save writes it into the object's own package or, for an installed object, its customization package as an object_extension, refusing a name the header cannot draw. Liveness row, docs, skill note. Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
…t pinnedActions (#36366) composeStacks' 'merge' refuses two stacks declaring different pinnedActions on one object, as it does every fixed-shape config object of the shape walk; the refusal's pinned key lists name it. The dropped-refinements header totals the two new sites in ten entries. Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
…t reads the pins (#36366) A record page authored with its own page:header `actions` list keeps that list, and a page:header with neither `actions` nor `placedActions` draws none of the object's actions; neither reads the object's pins, so the design mode no longer offers the control there (it changed nothing they draw). The record-header tests now mount an authored page on the full page, where it applies (the drawer takes the standard page), and pin the own-list header and the control's absence on it. Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
…#36366) The strictObject `history` text is printed at the author on a refusal, so the card id moves to a comment beside it (check:doc-authoring). Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
…, pinned and more (#36366) The maintainer's format ruling (#36366 comment 7080672229): an object's `actionLayout` has a `list` and a `record` arm, each `{ pinned, more }`. `pinned` is the buttons (at most 3, in order), `more` orders the More menu, and an action named in neither follows in its default order. The record arm is a scope: the record header, the side preview and the phone bar read it. Spec, fold (arm replaced whole), lint rule (both parts judged), the one reader (`arrangedHeaderActions`), the design-mode panel (both parts draggable, names no longer offered listed) and the save are reshaped, with their tests. Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5 Co-authored-by: Claude <noreply@anthropic.com>
… no longer offered, in every locale (#36366) Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
…pinned and more per scope; the headers' More order, the phone bar and the side preview are pinned (#36366) Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
…ns, references and liveness counts; the object form's arm rows in every locale (#36366) Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
…or the action layout, as measured (#36366) Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
…wn Share entry (#36366) Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
#36366) Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
…I transcripts count the new author-time rule (#36366) `registry.ts` is a facade at its line ceiling (check:facade-delegation-only read 6433 over 6426): the extension's `actionLayout` fold is now `foldExtensionActionLayout` in `registry-top-level.ts`, beside `OBJECT_FOLD_SCALAR_KEYS`, called in one line; the facade reads 6426. The object action-layout lint rule is the 77th author-time rule: check:docs-transcript-drift derives 77 for `validate` and `build`, and the four transcripts that quoted 76 now say so. Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
…n layout (#36366) The test's `input` helper still typed the pins as `Record<string, string[]>`, the shape before the arms became `{ pinned, more }`: vitest does not type-check, and `@object-ui/app-shell` type-check (tsconfig.test.json) read nine TS2353. It now takes `ObjectPins`. Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
Conflicts, both kept: - the 11 ui locales: `designMode.pins` (this branch) and `designMode.recordTabs` (#36583) were added at the same place; both blocks stay, zh-Hant regenerated (`gen:zh-hant`). - `de-quote-pairing-3876.test.ts`: main's 127 (#36370) plus this branch's four `designMode.pins` spans, recounted by running the test: 131, and 131 / 131 / 0. Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
…ference after the merge (#36366) The os-regen merge driver kept main's side of three generated artifacts and dropped this branch's action-layout entries; `check:generated --fix` on a fresh spec build writes them back (six `ObjectActionLayout*` / `OBJECT_ACTION_LAYOUT_*` exports, the object reference row), and re-checks all three green. Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
Conflict in `objectViewPageHeader.tsx` (`ObjectViewPageBarActions`), both intents kept: #36612's Object settings path (`useObjectSettingsGate`) is read first, then this branch's list arm; `exportDoor` stays `exportPinned ? undefined : barEnd?.exportDoor`, and `moreShown` is `!!objectSettingsPath || !!description || !!listFavorite || (ioInMore && (importInMenus || !!exportDoor))`. Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
`Skills-docs: follow-up #36630`: the seat filed the follow-up for skills/objectstack-ui/rules/actions.md. Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 7 package(s): 29 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 187 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 6874b36afc3f4c9aeb0a534d4f0e3c8d7be77f16 && git checkout 6874b36afc3f4c9aeb0a534d4f0e3c8d7be77f16
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba e683f40e31750b943272ad922259dee7b6e0d327 && git checkout -B drift-repro 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba && git merge --no-ff e683f40e31750b943272ad922259dee7b6e0d327
node scripts/docs-audit/affected-docs.mjs --json 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba
|
… write Field change values (objectstack-ai#36290 part 1) (objectstack-ai#36641) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9NRmimMwnUgR1DbqgHtBWM3)_ Part of objectstack-ai#36290 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 管理员在 Studio 的字段设置和字段设计器里,原来的「记录历史」开关换成「字段修改值」三选一(默认 / 开 / 关),对象设置的「功能开关」里新增「字段修改值」;普通用户无感。 - 属于记录页「字段修改前后值」专题,落实「默认显示、对象或单个字段可关」的裁决:以前 Studio 写的是不再起作用的旧开关,管理员在界面上关不掉前后值。 - 若出错,管理员可能看到「默认」标成开而动态里实际不显示前后值(或相反),或关掉后回不到默认;改动只在设置界面,可直接撤回。 - 要你做的:无。 ## What changes Card objectstack-ai#36290 part ① (PR 3 of 4; ruling 7076513167 point 1: "Old → new is shown by default on every object's record page; an object, or a single field, can turn it off."). PR 1 (objectstack-ai#36399) gave the runtime `fieldHistory` (field) and `enable.fieldHistory` (object); objectstack-ai#36580 gave the metadata form a three-way `field-history` widget. The Studio's own producers still wrote the old key. This PR moves all three named in the release comment. **Field inspector** (`ObjectFieldInspector.tsx`, Advanced section) - The "Track history" box (`value={!!def.trackHistory}`, `patchDef({ trackHistory: v || undefined })`) is gone. Measured reason: since PR 1 a field's `trackHistory: false` reads like absent and `true` does only what `fieldHistory: true` does for a media or JSON type (spec describe of `FieldSchema.trackHistory`), so a second box beside Field change values could only mislead. A stored `trackHistory` is never written or removed here; it is still read, because `resolveFieldHistory` reads it. - New row "Field change values": Default / On / Off over the field's `fieldHistory`. Default removes the key (`unsetDefKey`, not a patch to `undefined`); On / Off write `true` / `false`. - Default names what it resolves to through `resolveFieldHistory` from `@objectstack/spec/data`, the predicate the activity writer uses. Unlike the form widget, this rail holds the object document, so it passes the object: an object with `enable.fieldHistory: false` makes every field's Default read "Default (Off)", and a note under the row says the object's off wins. - The row sits inside the existing `DisplayPatchLock`, so on a read-only base field it is locked with the same reason as its neighbours (`fieldHistory` is not on `BASE_FIELD_DISPLAY_WHITELIST`). **Object settings** (`ObjectSettingsPanel.tsx`, Features card) - New row "Field change values" (`enable.fieldHistory`), next to "Field change history" (`enable.trackHistory`). Ticked unless the stored value is a literal `false`. Unticking writes `false`; ticking again REMOVES the key (unset already means on, so no `true` the author did not need). Sibling `enable` keys are kept, as for every other row. - The Field change history description no longer says "pair with per-field history tracking to pick which field diffs are summarized" (no longer true); it points to Field change values. **Field designer** (`plugin-designer` `FieldDesigner.tsx`, the drawer behind `MetadataFieldsPage` and the `field-designer` SDUI type) - The Advanced section's Track History switch wrote `trackHistory: data.trackHistory === true` on every save, create and edit. It is replaced by Field Change Values with the same three choices. The update path no longer names `trackHistory`: a stored value rides the `...editingField` spread, and a created field carries neither key at Default. - Default's label depends on the type, which the author can change in the same drawer, and a drawer select's options are static. So the choice is drawn as two rows under form-local names, one per resolved default, each shown by a `visibleWhen` built from `resolveFieldHistory` over `DESIGNER_FIELD_TYPES` (with the field's stored `trackHistory`). The save reads the row shown for the saved type, which is the one on screen at the click. Neither form-local name reaches the model. - `DesignerFieldDefinition` (`@object-ui/types`) and its zod mirror gain an optional `fieldHistory`. Both save paths carry it: `MetadataFieldsPage` (`toDesignerField` / `fromDesignerField`) and `MetadataService.toFieldPayload`. Default writes `fieldHistory: undefined`, which overrides the carried value and is dropped on the wire, so a stored key is removed. That is the converters' existing clear-by-absence rule. - It cannot import `fieldHistoryChoice.ts`, because app-shell depends on plugin-designer. What it shares is the rule (`resolveFieldHistory` from `@objectstack/spec/data`). Its own copy of the choice-to-value mapping is two lines. Its strings are the language-pack keys `appDesigner.fieldDesigner.fieldHistory`, `fieldHistoryDefault`, `fieldHistoryOn` and `fieldHistoryOff`, in all 11 locales and the designer's defaults table. They replace `appDesigner.fieldDesigner.trackHistory`. **Shared logic** (`metadata-admin/fieldHistoryChoice.ts`, new): the three choices, the value each writes and their wording, used by both the inspector row and the objectstack-ai#36580 `field-history` widget (refactored onto it; its behaviour and its 10 pins unchanged). The controls stay separate on purpose: the widget is a `WidgetProps` renderer that sees one form row and no object; the inspector row is an `InspectorSelectField` with the inspector's label and lock semantics and the whole object in hand. **Strings** (studio namespace, en + zh; the other locales fall back to en by that namespace's design): `designer.field.fieldHistory`, `designer.field.fieldHistoryObjectOff`, `engine.studio.settings.capFieldHistory`, `engine.studio.settings.capFieldHistoryDesc`; `engine.studio.settings.capTrackHistoryDesc` reworded; `designer.field.trackHistory` removed with its box. Not in this PR: record-page rows (part ②, landed as objectstack-ai#36613), the per-field history card (part ③). ## Tests - New `ObjectFieldInspector.fieldHistory-36290.test.tsx` (7): Default (On) for a one-line type; Default (Off) for image / json / password and Default (On) once `trackHistory: true`; Off writes `false`, On writes `true`; Default after Off removes the key; no Track history box, no `trackHistory` written, a stored one kept; the object's off makes Default (Off) and shows the note; control: no note otherwise. - New describe in `ObjectSettingsPanel.test.tsx` (4): checked for unset and `true`, unchecked only for `false`; untick writes `false` with siblings kept; re-tick removes the key with siblings kept; labelled by its own title. - New `FieldDesigner.fieldHistory-36290.test.tsx` (9), on the real `FieldDesigner` with a drawer double that captures its schema and calls its own `onSuccess`. The cases: two rows and no Track History row, with the labels; for every designer type exactly one row's `visibleWhen` evaluates true (through `evalFieldPredicate`, the form's own evaluator), and it is the one `resolveFieldHistory` names; a stored `trackHistory: true` moves a media type to the Default (On) row; an untouched edit writes neither key; Off writes `false`, On on a media type writes `true`; a stored `false` opens as Off and Default removes it; a stored `trackHistory` is kept; a type changed in the drawer saves what is on screen; a created field at Default carries neither key. - New `MetadataFieldsPage.fieldHistory-36290.test.tsx` (4), on PUT bytes through the real page and a real `MetadataClient`. A stored `fieldHistory: false` survives and no `trackHistory` is written; a stored `trackHistory: true` survives and gains no `fieldHistory`; a field with neither key gains neither; every PUT field parses through `FieldSchema`. - Extended: `MetadataService.fieldKeyCarryOver.test.ts` adds `fieldHistory` to its populated entry and its clearable keys; `designer-zod-arms-10859.test.ts` adds `fieldHistory` to the fully populated `field-designer` document. - Forced test changes: `ObjectFieldInspector.displayPatchReason-28986.test.tsx` names the Field change values combobox instead of the removed Track history checkbox among the locked controls; `ObjectSettingsPanel.businessWording-36512.test.tsx` lists `enable.fieldHistory` among the keys the tab writes. `ObjectFieldInspector.externalIdNotOffered-26674.test.tsx` and `ObjectFieldInspector.retiredIndexed.test.tsx` listed Track history among the Advanced siblings that still render; they name Field change values, and (being edited) now pay the formula and lint loads at module top, as `check:test-source-alias` requires. `FieldDesigner.externalIdNotOffered-26674.test.tsx` and `MetadataFieldsPage.externalIdRoundTrip-26674.test.tsx` used the Track History row as their positive control; they now use the Field Change Values row. ## Acceptance notes - The field designer's Default label follows the drawer's type and the object is not in hand, so an object with `enable.fieldHistory: false` is not reflected there, the same accepted bound as objectstack-ai#36580's widget. Neither `FieldDesigner` nor `MetadataFieldsPage` is mounted by the Console today; both are published exports, and `field-designer` is a registered SDUI type. - A stored field `trackHistory: true` on a media or JSON type makes Default read "Default (On)"; such a field can still be turned off with Off, but not returned to the type's off-by-default without editing the key in the form. That is the resolver's answer, not a UI choice. - `ui/AGENTS.md` objectstack-ai#2 (package README and `content/docs/frontend/` page) not edited: outside this part's file surface. - Screenshots NOT MEASURED (no Console build or backend run here). ## Verification Read first, by risk: 1. `ui/packages/plugin-designer/src/FieldDesigner.tsx`: the `fieldHistoryRows` memo (two rows, `visibleWhen` built from `resolveFieldHistory`) and `fieldHistoryFromForm`, which picks the row for the SAVED type on both save paths. 2. `ui/packages/app-shell/src/views/studio-design/ObjectSettingsPanel.tsx`: `patchEnable` with `unsetWhenOn` (re-ticking removes `enable.fieldHistory`, keeps siblings). 3. `ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx`: the Field change values row and the object-off note inside `DisplayPatchLock`. Two-minute check: open Studio, an object, Settings, Features: "Field change values" is ticked. Untick, save, and reopen the object JSON: it shows `enable.fieldHistory: false`. Tick again: the key is gone. Then open a field's Advanced section: "Field change values" reads "Default (Off)" with the note under it. <details><summary>Runs (local, head 3b5b130 after merging origin/main 9e2a4ac)</summary> - Builds under the verify lock: the `@objectstack/{spec,formula,lint,client,sdui-parser}` closure, and `@object-ui/app-shell^...` again after the merge (VERDICT command-exit 0 each). - `type-check` (tsc plus `tsconfig.test.json`) of `@object-ui/app-shell`, `@object-ui/i18n`, `@object-ui/types` and `@object-ui/plugin-designer`: all four Done, exit 0 (after the merge; plugin-designer again at 3b5b130). - Post-merge union at ffa608d: `vitest run packages/app-shell/src/views/metadata-admin/inspectors/ packages/app-shell/src/views/studio-design/ObjectSettingsPanel packages/app-shell/src/views/metadata-admin/FieldHistoryWidget-36482.test.tsx packages/app-shell/src/views/metadata-admin/SchemaForm packages/plugin-designer/ packages/types/ packages/app-shell/src/services/ packages/i18n/ packages/app-shell/src/__tests__/defaults-maps-mirror-en-pack.test.tsx` gave Test Files 851 passed (851) and Tests 16838 passed, 14 skipped. 3b5b130 changes only the designer pin's types; that file re-run: 9/9. - Pre-merge union at 3fa510b (`metadata-admin/`, `studio-design/`, `i18n/`) gave Test Files 1232 passed and 2 failed (1234). The 2 were sibling pins still naming Track history, fixed in 58cef60. - Ablations, each through `scripts/ablation-replace.mjs` (anchor 1 to 0), restored with blob equal to HEAD and `git diff HEAD` empty: - The inspector writes `trackHistory` again: 2 of 7 new inspector pins red. - The settings switch writes `true` instead of removing the key: 1 of 14 red. - The designer's update path writes `trackHistory: data.trackHistory === true` in place of `fieldHistory`: 7 of 13 red across the two new designer files. - `dispatch-gates --commands` at 3b5b130 derived 42 families; all 42 ran locally with exit 0; `--ran` reconciliation gives "42 derived, 42 run, 0 NOT-MEASURED, 0 UNRUN". - `overlap-check` at 3b5b130: VERDICT clean exit 0 against origin/main d7411fa (three commits past the merged 9e2a4ac; `git merge-tree` is also clean) and objectstack-ai#36634, objectstack-ai#36629, objectstack-ai#36606, objectstack-ai#36587, objectstack-ai#36525. - ui extras: `check:new-line-citations` 0, `check:i18n-keys` 0, `check:i18n-drift` 0, `check:i18n-dead-keys` 0. eslint on the changed source and test files: 0 errors, and no warnings on added lines. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmPq6z7KER4Sr6Uu7Ht --------- Co-authored-by: Claude <noreply@anthropic.com>
objectstack-ai#36606) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi93yJM5eSHAibimwWb6xCgvP)_ Part of objectstack-ai#36364 Clause-②: yes (widening) — new `@object-ui/i18n` keys (`designMode.menu.*` for the new picker row and name step, `dashboard.noCards.*`), in all 11 locales; no spec, schema or public export change Metadata-protocol: none repo:objectstack#2 · os-steve · session_01ADHkmPiTdmLxHXBjakSvJy ## 维护者速读 - 用户能看到什么变化:管理员在设计模式里「添加菜单项 → 仪表盘」,第一行是「新建仪表盘…」,填名称确定后,新仪表盘出现在占好的菜单位置,其他改动一起保存,然后直接进入它的编辑状态;没有卡片的仪表盘会显示「还没有卡片」。 - 为什么做:设计模式专题的第三张卡,让管理员不用进 Studio 就能在应用里新建仪表盘并挂到菜单上。 - 出错会怎样:菜单保存失败时,刚建的仪表盘会被删掉,设计模式保持打开并说明原因;中途取消什么都不写;可以直接撤回本次合并。 - 要你做什么:不用做什么。新建报表这一半席位已定(报表必须先选数据集和指标,改为从报表搭建页新建),等 objectstack-ai#36374 合并后另做。 ## What changes - The design-mode picker's Dashboards list starts with 「New dashboard…」 (`DesignModeMenu.tsx`). It asks for a name only. 「Cancel」 (or closing the dialog) writes nothing and drops the held place. - 「Create」 runs, in order (`designModeMenuCreate.ts`): every check of the menu save first (`prepareAppMenuSave`, split out of `saveAppMenu` unchanged in behaviour); the dashboard created empty (`{ name, label, widgets: [] }`) and published in the menu's own package (the app's package when listed writable, else its `.custom` pair via the ensure door; ADR-0146 D2, objectstack-ai#35624 ruling C) through the existing confirmed-save door `saveDashboardInPlace`; then the menu written and published with the new entry in the held place and every other staged menu edit (`writeAppMenu`). Where the menu cannot be saved, nothing is created: no package-less fallback. - A refused menu removes the dashboard again (the item DELETE with `?package=`, measured on a live server: `Deleted dashboard ... it no longer exists`). If that removal is refused too, the error says the dashboard was left. - The design mode gains `saveWith(key, change)` (`designMode.tsx`): commit everything staged with one change in its key's place, never staging it on its own, so a failed create leaves no half-written entry staged for a later Save. - The machine name is generated from the name (Chinese through pinyin), and checked free on the server (`GET /meta/dashboard/:name`) so a create never publishes over an existing dashboard. - On success the mode is left and the page navigates to the dashboard with a one-time navigation-state landing (`designModeArrival.ts`); `DashboardView.tsx` opens its objectstack-ai#36372 edit state on that landing once the Edit button is offered, and clears it. - A dashboard with no cards now draws 「No cards yet」 instead of a blank canvas (view mode only). - **Not in this PR: 「New report…」.** The spec refuses a report without `dataset` + `values`, and the server's draft save refuses it too (`INVALID_METADATA`, measured), so a name-only report cannot be created. The seat's premise correction on the card (comment 7090058961) settles it: 「New report…」 opens the report builder (objectstack-ai#36374) in a create mode and writes the report and its menu entry once a dataset and a measure are picked; that half follows after objectstack-ai#36374 merges. Branch name: this card thread's container pushes only to `claude/project-thread-un7cwb`, so the `claude/issue-36364-*` spelling the Duplicate Fix Guard looks for is not available; the card is objectstack-ai#36364 (claim comment 7088329990). Overlap: touches `DashboardView.tsx`, which draft PR objectstack-ai#36461 also touches; `overlap-check` reads both merging cleanly. This PR lands after objectstack-ai#36461 per the claim. ## Tests <details><summary>Unit and component tests (head 313b6bf)</summary> Run from the repo root under `os-verify-lock`; vitest root `ui/`. - Head `313b6bf8` merges `origin/main`, bringing objectstack-ai#36604 (the `designModeMenu.ts` rename to `designModeMenuModel.ts`), objectstack-ai#36622 (objectstack-ai#36591's menu `order` rule) and objectstack-ai#36461. The one conflict, in `DesignModeMenu-36363.test.tsx`, was resolved by keeping both sides: this card's `server` mock, its reset and its describe, next to objectstack-ai#36591's `servedNav` and its describe. Two imports were moved to the renamed module (`designModeMenuCreate.ts` and its test); no file names the old module any more. objectstack-ai#36591's `inShownOrder` / `withOrderRewritten` auto-merged into `prepareAppMenuSave`, so the create path applies the same rule. It is pinned by a new test: the new entry, held between two entries of an `order`-carrying level, is saved as `[customer 0, nav_item_1 1, contact 2, opportunity 3]`. - At `313b6bf8`, after rebuilding the app-shell dependency closure (`VERDICT command-exit 0`): `pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/layout/ packages/i18n/` plus the 9 `packages/app-shell/src/views/DashboardView*.test.tsx` files gives `Test Files 271 passed (271)`, `Tests 3301 passed | 13 skipped (3314)`, `VERDICT command-exit 0`. This covers the 4 card files and every layout/i18n/DashboardView test the merge touched. - At `313b6bf8`: `designModeMenuCreate-36364.test.ts` alone gives `Tests 14 passed (14)`. - At `313b6bf8`: `pnpm --dir ui --filter @object-ui/app-shell --filter @object-ui/i18n run type-check` (both `tsc --noEmit` and `tsconfig.test.json`) gives `VERDICT command-exit 0`, 0 `error TS`. - Earlier, at `ab2257f4`: the i18n run plus the 4 card files gave 110 files and 2050 tests passing. At `0647077c`, a narrowed app-shell + i18n run found 3 failures caused by this change: zh-Hant was not regenerated, and the de quote count was 125 against 126. Both were fixed. The full app-shell suite is left to CI's `Test` shards. - New and extended pins: - `designModeMenuCreate-36364.test.ts`: 14 tests (13, plus the `order` pin). - `DesignModeMenu-36363.test.tsx`: 4 tests (the create row, Cancel writes nothing, the create-and-land flow, a refused menu). - `designMode-36362.test.tsx`: 3 tests for `saveWith`. - `DashboardView.inPageEdit-36372.test.tsx`: 3 landing tests and 2 empty-state tests. </details> <details><summary>Ablations (one-shot, not kept)</summary> - Removal of the created dashboard on a refused menu deleted (`ablation-replace`, anchor 1 to 0, restored blob equals HEAD): 3 tests red (`a refused menu removes the dashboard it was made for…`, `…cannot be removed says the dashboard was left`, `a refused menu removes the new dashboard; the mode, the held place and the other staged edits stay`). - The dashboard created before the menu-save checks: 8 of 13 red in `designModeMenuCreate-36364.test.ts`, every "nothing is created" case among them. A first attempt of this leg was refused by the tool (the replacement contained its own anchor) and ran no tests; the second attempt is the reading above. </details> ## Acceptance notes - The card's first acceptance line names the group 「数据洞察」; the CRM example's group is 「数据分析」, used for the screenshots. - 「Members see an empty state」 was checked as the admin in view mode; the empty-state branch has no role gate. A non-admin session was NOT MEASURED. - Test pins went into the existing harness files for the design mode, the menu editor and the dashboard in-page edit (AGENTS.md: a new pin for a component with a shared harness goes into that file), plus one new file for the new module, `designModeMenuCreate-36364.test.ts`. ## Verification Screenshots (live CRM example on a `--fresh` backend, console dev server, zh-CN, deviceScaleFactor 2) are stored with the seat (`objectstack-seat2/36364-shots/`): design mode; picker 「仪表盘」 with 「新建仪表盘…」 first; the name step; the new 「回款分析」 in its edit state, in the held place under 数据分析; Cancel leaving nothing; the new dashboard in view mode (「还没有卡片」); Studio 「界面」 listing the same 回款分析 in the app's navigation. After the run: the dashboard is the only item of `com.example.crm.custom`, the app's stored menu holds `nav_item_1: hui_kuan_fenxi` under `group_analytics`, no draft is pending, and the cancelled name has no item (404). Read first: `ui/packages/app-shell/src/layout/designModeMenuCreate.ts` (the order and the removal), `designMode.tsx` (`saveWith`'s drop rule after a commit), `DashboardView.tsx` (the landing effect). Two-minute check: `pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/designModeMenuCreate-36364.test.ts` shows 14 passing. <details><summary>Derived gates (head ab2257f)</summary> - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 41 commands from the tree at commit ab2257f. Each was run with stdin from /dev/null, and its exit code was captured before any pipe. The two heavy commands ran under `os-verify-lock`: `pnpm --dir ui exec vitest run scripts/` and `pnpm check:type-check-debt`. - All 41 exited 0. The reconciliation with `--ran` reads: `Run reconciliation — 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN.` - The record is stored with the seat (`objectstack-seat2/36364-gates-ran.txt`). - Before the PR was opened, `overlap-check` gave `VERDICT clean exit 0` against origin/main and the open PR heads. - At `313b6bf8`, `dispatch-gates --commands` derives the same 41 commands as at `ab2257f4`. The merge brought no new gate family for the touched paths, so the run above was not repeated. At push, `overlap-check` against origin/main is clean; it conflicts with open PR objectstack-ai#36629 on the serial de quote-count pin, and whichever lands second rebumps it. - CI families (lint farm, `Test` shards, `Test Core`) are left to this PR's check-runs; none was rerun locally. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmPiTdmLxHXBjakSvJy)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmPiTdmLxHXBjakSvJy --> --------- Co-authored-by: Claude <noreply@anthropic.com>
objectstack-ai#36657) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ89Betg8QPoUPD5NhDenSfS2)_ Fixes objectstack-ai#36364 Clause-②: yes (widening) — three new `@object-ui/i18n` keys (`designMode.menu.newReport`, `designMode.menu.newReportLeft`, `report.builder.addsToMenu`) in all 11 locales; no spec, schema or public export change Metadata-protocol: none repo:objectstack#1 · os-warren · session_01JQwxbXq2Dxb31zZNmSqCtz ## 维护者速读 - 用户能看到什么变化:管理员在设计模式里「添加菜单项 → 报表」,第一行是「新建报表…」,点了会占好菜单位置并打开报表搭建页;选好数据来源和指标、保存后,新报表出现在占好的位置,设计模式里的其他改动一起保存。 - 为什么做:设计模式专题卡的报表这一半,按席位定的方案:报表必须先有数据来源和指标,所以从搭建页新建,而不是只填名字。 - 出错会怎样:菜单保存失败时,刚建的报表会被删掉,设计模式和搭建页都保持打开;中途关闭搭建页或离开它,什么都不写、占位消失;可以直接撤回本次合并。 - 要你做什么:不用做什么。 ## What changes The report half of objectstack-ai#36364, on top of the report builder (objectstack-ai#36644), per the seat's ruling (option A, comment 7090058961): a report needs `dataset` and `values`, so 「New report…」 opens the builder, and the report and its menu entry are written only when the builder saves. - **Picker** (`DesignModeMenu.tsx`): the Reports list starts with 「New report…」. It holds the place (the dashed row now reads 「New report…」), offers a slot, and navigates to the app's `reports/new`. Nothing is written. - **The slot** (`designModeReportSlot.ts`, new): the menu lives in the sidebar and the builder in the page, with no shared tree, so a module-level store holds one slot `{ path, save, cancel }`. It is keyed by the builder's address, not the app's name, because the console addresses an app by its route segment (the showcase app is `/apps/com.example.showcase`, its name `showcase_app`). This was found on the live run, and a page test pins it. The menu withdraws the slot when the place is dropped and when it unmounts (the design mode ended). Without a slot the builder is the plain new-report page, as before. - **The builder page** (`ReportNewPage.tsx`): when a slot waits on its address, it says 「Saving creates this report and adds it to the menu where you placed it, with your other design changes.」. Its Save hands `(name, label, body)` to the slot and writes nothing itself. A refused save keeps the builder open. Its Close cancels the place and goes back. - **The save** (`designModeMenuCreate.ts`): `NewMenuItem` gains a `report` arm carrying the builder's body. `saveAppMenuWithNewItem` runs the dashboard half's order unchanged: every menu-save check first, then the report saved and published in the menu's own package (`saveAndPublishInPackage`, the package-bound door `saveDashboardInPlace` now shares), then the menu written with the entry in the held place and every other staged edit (`saveWith`). On a refused menu the report is removed again. - **Leaving the builder another way** (a menu link, Back) drops the held place too, so no row waits for a builder that is gone. - **The entry's label**: a report entry with no `label` shows its machine name (only object, view and dashboard entries inherit their target's label, per the cloud#2021 ruling), so the new entry carries the report's label. The live run first showed `hui_kuan_fenxi` in the menu, and this fixes it. ## Tests - `pnpm --dir ui exec vitest run packages/app-shell/src/layout packages/app-shell/src/views/ReportNewPage` at `f3021225`: `Test Files 157 passed (157)`, `Tests 1284 passed (1284)`. `DesignModeMenu-36363.test.tsx` was rerun at head `ecbe0f66` after the label change: `38 passed`. Earlier at `f7737e36`, `packages/i18n` gave `1978 passed`, with the de quote-pairing count raised 128 → 129 for `newReportLeft`'s „{{name}}“. - New pins: - `designModeMenuCreate-36364.test.ts`: 4 report cases. They cover the body, the package write order (ensure → save/publish report → save/publish app), a refused menu resetting the report, and an unlisted package creating nothing. - `DesignModeMenu-36363.test.tsx`: 5 report cases. They cover the picker row holding the place and writing nothing; the builder's Save writing the report, then the menu with the labelled entry and the other staged edit, then leaving the mode; a refused menu; the builder's Close; and leaving the builder. - `ReportNewPage.menuSlot-36364.test.tsx`: 5 cases. They cover Save going through the slot; a refused save staying open; Close cancelling and going back; a route segment other than the app's name; and another app's slot not being used. - Ablations (one-shot, not kept): without the page change, the page file went 3 failed | 1 passed. Without the menu change, all 5 menu report cases were red. - `tsc --noEmit` (app-shell) exit 0. ESLint on the changed files: 0 errors. `check-i18n-call-site-keys` exit 0. ## Screenshots Taken on the live showcase example (fresh backend, console dev server, zh-CN, deviceScaleFactor 2). They are stored with the seat's project files (`issue-36364/`): 1. 「添加菜单项 → 报表」, with 「新建报表…」 first. 2. The builder, with the held 「新建报表…」 row under 数据分析 and the 「adds to the menu」 line. 3. The builder filled: Invoice Metrics, grouped by status, named 回款分析. 4. After Save: the design mode is left, and 「回款分析」 sits in the held place, open. 5. Cancel path: a second 「新建报表…」, closed from the builder. The page goes back, no held row is left, and the mode stays on. Checked through the API after the run: - `report/hui_kuan_fenxi` is stored in `com.example.showcase.custom`, the menu's package (the same item Studio lists), with `_diagnostics.valid: true`. - The app's menu holds `{ id: nav_item_1, type: report, reportName: hui_kuan_fenxi, label: 回款分析 }` under `grp_analytics`. - It is the only `hui_kuan*` report, so the cancelled build left nothing. ## Overlap `overlap-check`: merges cleanly with main, objectstack-ai#36655 and objectstack-ai#36525. With objectstack-ai#36629 it conflicts only in `de-quote-pairing-3876.test.ts`, because both PRs raise the same German quote count. Whichever lands second re-adds 1 to the count. --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…-m619um # Conflicts: # ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
…count The os-regen driver kept the branch's side of the generated object reference and dropped main's ActionSchema.body description; the regeneration from the merged schema restores it beside the branch's actionLayout rows. The de pack's paired-span count is measured on the merged tree: 133 (main's two designMode.menu spans and this branch's four designMode.pins spans together), pinned in both the span test and the count identity. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
…tion The JSDoc no longer reads as though the key passed ADR-0085's admission test. It says what the maintainer ruled: the key only re-arranges, so it is the second ruled exception to ADR-0085 section 2's re-arrange sentence, after relatedLists, with the dated ADR note carried by the weekly ADR card. It also names the list arm's one reader today, the list page toolbar. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head e683f40 · 2026-11-23T12:46Z |
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract reviewServed-tier: Delta round 3 on record 7094210583 (head ① Derived judgments
② Semver levelClause-②: yes (widening). Still true against main
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. S1: closed. The new jsdoc paragraph of
N3: carried to #36494, unchanged. N6 (nit) — carried: N7 (nit) — Per file, for what this hop changed:
No graded finding is open on this head. This verdict assumes the pending check-runs conclude green; a red Test UI or Test Core shard reopens it. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP Patch round 4, head
Generated by Claude Code |
|
repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP 席位核对ACCEPT: L1 delta for card #36366 at head
Generated by Claude Code |
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY 维护者速读
席位意见:同意合并。四轮补丁后 L1 与 L2 在同一 head 通过,CI 全绿,与 main 无冲突。 席位核对ACCEPT → PR #36629 comment 7102252962 (delta) · Contract review PASS → comment 7101748829 (
|
Requested by Steve · project thread
Fixes #36366
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up #36630
ADR notes: carrier #36086 (seat posts them)
维护者速读
What changes
actionLayoutis a new optional key onObjectSchemaandObjectExtensionSchema, in the format of the maintainer's ruling (2026-11-22T14:50Z, quoted in release 7087101113: 「#36366 改成"列表"和"记录"两组,每组分"固定"和"更多"两段,等 #36363 合并后,卡标记为p1,剩余任务放回队列」) and seat rulings 7077698148 / 7080672229:actionLayout: { list?: Arm, record?: Arm },Arm = { pinned: string[] (at most 3, required, may be []), more?: string[] }.packages/spec/src/data/object-action-layout.ts): the shape and its refusals at every door (more than three pinned, a name twice in one part or across both, a malformed name, a built-in the scope does not have), each with a named reason; the object form offers one JSON row per arm under Advanced. Generated artifacts regenerated (api-surface, export-origins, authorable-surface, dropped-refinements counts, references); liveness rowobject/actionLayoutislive, drilled intolist/recordand each intopinned/more, citing the record header, the list header, the fold and the design mode.actionLayoutis the third key ofCUSTOM_ARRANGEMENT_KEYS, besidefieldGroupsandrelatedLists(ADR-0146 D10). Only the base's paired.custompackage writes it on anobject_extension; the one judgejudgeExtensionArrangementrefuses any other package's, each door in its own way: publish, restore and draft promotion answerVALIDATION_ERROR/ 400; marketplace install refuses the package body withVALIDATION_ERROR/ 422;os validateandos buildexit non-zero and print the row; the registry fold skips the key and leaves a note. The registry applies the pair's arms last, inapplyCustomArrangement, by role, arm by arm. A manifest'sobjectExtensionsentry now carries the key to the fold (objectExtensionContributiondropped it).validateObjectActionLayoutrefuses, inos validate/os build/os lint, a name in either part that is no action of the object or is not placed in the scope its arm arranges.@object-ui/types:arrangedHeaderActions(actions, arm, scope), the one reader;pinnedbecome buttons in pin order, the namesmoregives lead the overflow in that order, unnamed ones follow in their default order.page:headerwithplacedActions: truereadactionLayout.record; the list header readsactionLayout.listwith$import/$export. Under the design mode, 「Header buttons」 at the end of the header opens a two-part panel (「Pinned to header」 at most 3, 「Other」 = More), both parts draggable, a dot moving an action between them, a fourth pin refused with a toast; the mode's Save writes the object's own package when writable, else the installed object's customization package'sobject_extension, through the one writer of an installed object's arrangement,saveObjectExtensionArrangement(patch round 3).designMode.pins.*in every hand-written locale, including the newdesignMode.pins.stale(names the arm sets that the scope no longer offers); zh-Hant regenerated. Object-form translations for the two arm rows in all 11 metadata-forms locales.待审假设 (assumptions for review, shown to the maintainer, not ruled)
actionLayout.recordarm is a scope, not a page: the record header, the side preview and the phone bottom bar all read it.$import/$exportcan be named, and only inpinned: one inmoreis refused with its reason (not pinned, the page still draws its own Import / Export menu). The record scope has none..custompackage writesactionLayouton anobject_extension. Each arm it writes replaces the served arm for that scope whole, after every other layer (a tenant's arm for the same scope included); an arm it leaves out stays.page:headerauthored with its ownactionslist keeps that list; the design mode offers it no 「Header buttons」.os validateand in the design mode's Save; see Acceptance notes for the server door).Import ▾), and 「Other」 lists Import: for a built-in, 「Other」 means "in the page's Import / Export entries". The wording is kept as is.Out of scope: #36494 (row menu and right-click), #36495 (the
locationsvocabulary), #36496 (theselectionarm).Tests changed because the surface grew (named, each recounted by measurement, not by hand)
packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts:object51 → 52.packages/platform-objects/src/apps/translations/object-collapsed-sections-echo-decisions.test.ts: leaves 119 → 125,advanced106 → 112.packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts: positive control 760 → 763.ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts: paired spans 127 → 131 and 127 / 127 / 0 → 131 / 131 / 0 (main's 127 after 看板的「视图设置」换成看板自己的项:分列字段、显示哪几列、卡片字段和三个开关、列底统计;每列加「⋯」菜单 #36370, measured again after the merge).ui/packages/app-shell/src/layout/__tests__/designModeHeaderPinsSave-36366.test.ts: itsinputhelper now types the pins asObjectPins(the type-check read the oldstring[]shape as nine TS2353).content/docs/deployment/cli.mdx,deployment/validating-metadata.mdx,getting-started/build-with-claude-code.mdxandui/react-pages.mdx: author-time rules 76 → 77, ascheck:docs-transcript-driftderives.packages/spec/src/compose-stacks-merge-collection-refusal.test.ts,packages/spec/src/compose-stacks-merge-config-object-refusal.test.ts:actionLayoutadded to the config-object key list.Tests
Patch round 3, head
8a85482aea(L2 delta S5, N4, N5; S1 waits on #36635 and is untouched).origin/main6e643cc43emerged ind871e26fdbwith no conflict (it brings feat(console): configure tabs on installed objects, into the paired .custom package (#36499, PR 2 of 2) #36624's one writer and feat(console): the design mode is entered from the app-name menu; the page header drops Edit app and Open in Studio (#36485) #36621's app-menu entry).origin/main9c283a11bfstill merges cleanly.saveObjectPinsnow callssaveObjectExtensionArrangement, handing it only the composedactionLayout. That module's patch type is{ [K in CustomArrangementKey]?: ExtensionArrangementValue... }, a list forfieldGroups/relatedListsandObjectActionLayoutforactionLayout; its docblock names the header buttons as a caller. The writable-package branch, which writes the object itself, is unchanged. S3 holds: the composed value is the arms the stored extension holds with each changed arm replaced. NewdesignMode.pins.pairNotWritablein the 11 locales (zh-Hant regenerated).designModeHeaderPinsSave-36366.test.ts, 13 tests): a pair the server answers not writable is refused after the ensure call and before any read or write; through the one writer the storedrelatedLists,fieldGroupsand held list arm are kept and the publish announces itself; the S3 pins and the call-order pins (now ensure, get, layered, save, publish) pass. Ablation: composing over no storedactionLayoutturned 2 red (the S3 held-arm pin and the S5 kept-keys pin), restored blob equals HEAD's.actions.mdxnow reaches 「Header buttons」 through the app name at the top of the sidebar, then 「Edit app」. Changeset:[]pins none; the spec bullet names the built-in refusal inmore; each door's own answer.object.zod.ts: theactionsguidance and the comment abovemembershipKeysnameactionLayoutas a pair-only key besidefieldGroupsandrelatedLists.check:generated(no drift); ui 16 files pluspackages/i18n/(122 files / 2134 passed, 13 skipped); spec 101 files namingObjectExtensionSchemaor the guidance (6725 passed); spec typecheck; app-shell, components and i18n type-check; 23 gate families (i18n, docs, changeset, liveness, facade, nul-bytes and others). Lines in the seat file.Patch round 2, head
49a31750bc(L2 review M1, S2, S3, S4; the ADR-0085 §2 sentence and #36086 untouched). No merge:origin/maind7411fa373merges cleanly.CUSTOM_ARRANGEMENT_KEYSthrough the one judge, so the mechanism applies as is. The five doors and where they call it:object_extension:objectExtensionItemRefusalinpackages/metadata-protocol/src/protocol-object-extension-item.ts;os validate:packages/cli/src/commands/validate.ts;os build:packages/cli/src/commands/compile.ts(both CLI doors throughpackages/cli/src/utils/extension-arrangement.ts);packages/cloud-connection/src/marketplace-install-local-plugin.ts;applyCustomArrangementinpackages/objectql/src/registry-custom-arrangement.ts, run last infoldExtendersOntoDefinition, skips a non-pair package's key and names it in a warning.The round-1 priority fold (
foldExtensionActionLayout,actionLayoutinOBJECT_FOLD_SCALAR_KEYS) is removed;registry.tsis back at main's 6426 lines.object_extensionsave withactionLayoutanswersVALIDATION_ERROR/ 400, one issue atactionLayout, nothing stored or served, the pair's save served (packages/objectql/src/protocol-custom-arrangement.test.ts); in the registry, partner at 250 against the pair at 150, and a partner registered after the pair, both serve the pair's arm (registry-extension-action-layout.test.ts); the judge names the path and prescribes the action's ownlocationsandorder(protocol-extension-arrangement.test.ts).actionLayoutno longer yields to a tenant: the pair applies last, per arm, so a tenant's arm for another scope stays and the pair's arm wins for its own scope (two pins).$built-in inmorewith its reason, the Save never writes one there, and thepinneddescribe, the form help (11 locales) and the docs say the list page still draws its own Import / Export menu; themore: ['$import']examples are gone.command-exit 0: spec test 974 / 29634 and typecheck; metadata-protocol test 365 passed, 9 skipped; objectql test 634 / 14360; lint 228 / 9474; platform-objects 125 / 2126; typecheck of metadata-protocol, objectql, lint, cli; cli unit extension-arrangement files 3 / 48; cloud-connection install arrangement 1 / 5; ui 36366 files 6 / 59;@object-ui/app-shelltype-check;check:generated --fixregeneratedcontent/docs/references/**and rechecked green. Gate families this round's files touch: 25 run, exit 0;check:i18n-coverageexit 3, PREREQUISITE NOT MET (example apps unbuilt), NOT MEASURED locally, CI runs it. Lines in the seat fileobjectstack-seat2/36366-gates-ran.txt.ablation-replace.mjsreplacedlayout = { ...(layout ?? running), [scope]with{}as the base (blob67155de2c30c→6f6b1a29855b); 2 failed / 11 passed (arm by arm; the S2 tenant arm kept); restored blob equals HEAD's,git diff HEADempty.packages/spec/src/data/field-customization.ts,packages/spec/src/data/object-extension-arrangement.test.ts,packages/metadata-protocol/src/protocol-extension-arrangement.tsand its test,packages/objectql/src/registry-custom-arrangement.ts,packages/objectql/src/engine-registration.ts,packages/objectql/src/protocol-custom-arrangement.test.ts,packages/cli/src/utils/extension-arrangement.ts(comment only).Patch round 1, head
6303c52011. The branch was merged withorigin/mainat4ef1ea9779(#36612 landed) inebd99fe0dd, then the changeset's Skills-docs line was changed. Only the families that merge touched were rerun, all exit 0:@object-ui/app-shelland@object-ui/i18ntype-check.check:i18nandcheck:i18n-stale-fill.gen:zh-hant(no diff).All of the following ran at head
564840dc1b, the final commit of round 1, after the merge oforigin/mainatceaa70efcc. Every heavy run went throughos-verify-lock.sh; each line quotes itsVERDICT.@objectstack/spectestcommand-exit 0)@objectstack/spectypecheckcommand-exit 0@objectstack/objectqltestcommand-exit 0)@objectstack/objectqltypecheckcommand-exit 0@objectstack/linttestcommand-exit 0)@objectstack/linttypecheckcommand-exit 0@objectstack/metadata-coretestcommand-exit 0)@objectstack/metadata-coretypecheckcommand-exit 0@objectstack/metadata-protocol@objectstack/metadata-protocoltypecheckcommand-exit 0@objectstack/platform-objectstestcommand-exit 0)@objectstack/platform-objectstypecheckcommand-exit 0@object-ui/types@object-ui/typestype-checkcommand-exit 0@object-ui/componentscommand-exit 0)@object-ui/componentstype-checkcommand-exit 0@object-ui/i18ncommand-exit 0)@object-ui/i18ntype-checkcommand-exit 0@object-ui/app-shelltype-checkcommand-exit 0@object-ui/app-shellcommand-exit 0)The app-shell tests at the final head are narrowed, and this is declared.
RecordDetailView,objectViewPageHeader, the design-mode header pins orPageHeaderActions, or whose names match those modules, 记录「…」里加「配置页签」:管理员原地调整记录页页签的顺序、显示隐藏和标题,取消或保存;自建应用写对象,安装来的应用写 .custom #36499's record tabs, or this card.vitest related: it ran out of heap at 4 GB.72ec1b2a2, before the merge: 2416 files passed, 1 skipped / 22791 tests (command-exit 0, the lock held for 5634 s). CI runs the whole suite.Found and fixed in this round:
@object-ui/app-shelltype-checkwas red with nine TS2353 errors. The save test'sinputhelper still typed the pins as a record of string arrays. vitest does not type-check, so the tests stayed green. Fixed in649fc028b6.Ablation (one reading): the More order
arrangedHeaderActionsinui/packages/types, the line that ranks amore-named action.scripts/ablation-replace.mjsreplacedconst moreAt = name && !seen.has(name) ? moreRank.get(name) : undefined;withundefined. The anchor count went 1 → 0 and the blob changed33d1f1de663b→2af6af57c9fb.@object-ui/typesis aliased tosrcinui/vitest.config.mts, so no build was needed.more-order tests went red: the side preview and the authoredpage:headerinRecordDetailView.actionLayout-36366.test.tsx, and the list toolbar inobjectViewPageHeader.actionLayout-36366.test.tsx. Their controls withoutmorestayed green.git checkout HEAD --. The blob after restore read33d1f1de663b(HEAD's), andgit diff HEADwas empty.Gates: dispatch-gates at 564840d
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 130 families. All 130 ran, one line each (command :: exit N) in the seat fileobjectstack-seat2/36366-gates-ran.txt.--ranreconciliation: "130 derived, 130 run, 0 NOT-MEASURED, 0 UNRUN".check:skill-examplesandcheck:dual-build-cjs-loads. Both read 0 at the same head after the client and ui closure builds.check:facade-delegation-only(registry.ts at 6433 lines against a ceiling of 6426) now reads 6426.check:docs-transcript-drift(four transcripts quoted 76) now reads 77.check:skill-frame-freshness: exit 0.check:dev-prereqs: exit 1, "The workspace is not built". Some workspace packages have nodiston this box. That is a machine-state reading, not about this diff.Acceptance notes
PUT /api/v1/meta/object_extension/crm_opportunity?package=com.example.crm.customwithactionLayout.list.pinnednaming 4 actions answered422INVALID_METADATA. The message read: "actionLayout.list.pinnednames 4 actions; at most 3 are drawn as buttons, and every other action goes to 「More」. Keep the first 3 and move the rest tomore."os validate/os build/os lint(object-action-layout-unknown/-not-placed) and by the design mode's Save.actions, so an action bound byobjectNamewould read as unknown there.packages/spec(object-action-layout.test.ts); the door'sINVALID_METADATA/ 422 is the live reading above. Since patch round 2 the writer refusal is pinned at the save door withVALIDATION_ERROR/ 400 (protocol-custom-arrangement.test.ts).registry.tsis a facade at its line ceiling. Since patch round 2 the fold lives inregistry-custom-arrangement.ts, andregistry.tsdiffers from main only in one docblock line (6426, the ceiling not raised).check:docs-transcript-driftderives 77 forvalidateandbuild, and four transcripts that quoted 76 now say 77:deployment/cli.mdx,deployment/validating-metadata.mdx,getting-started/build-with-claude-code.mdx,ui/react-pages.mdx.Import ▾menu: kept as is, listed as 待审假设 11.crm_opportunitydeclares no actions of its own. The record header, the side preview and the phone bar are covered by the unit tests below.designMode.recordTabsand this PR'sdesignMode.pinsare both kept in the 11 locales.de-quote-pairing-3876.test.tsrecounted by running it, 131.ObjectViewPageBarActionsreads its Object settings path, then this PR's list arm.exportDoorisexportPinned ? undefined : barEnd?.exportDoor, andmoreShownis!!objectSettingsPath || !!description || !!listFavorite || (ioInMore && (importInMenus || !!exportDoor)).overlap-check --branch=HEADatebd99fe0dd, exit 1):de-quote-pairing-3876.test.ts.protocol.meta-types-degenerate-derivation.test.tsandobject-lifecycle-panel-echo-decisions.test.ts.carrier: #36086), andskills/objectstack-ui/rules/actions.md(Skills follow-up of #36366: objectstack-ui actions rules do not teach the new actionLayout key (list and record arms, up to 3 pinned plus more) #36630).packages/cli/src/commands/compile.ts,packages/cloud-connection/src/marketplace-install-local-plugin.tsandpackages/metadata-protocol/src/protocol-object-extension-item.ts(step 8) still name onlyfieldGroups,relatedListsandplace; the code readsCUSTOM_ARRANGEMENT_KEYSand already refusesactionLayout. Comment-only, carrier: the seat.Verification
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/objectViewPageHeader.actionLayout-36366.test.tsx packages/app-shell/src/views/RecordDetailView.actionLayout-36366.test.tsx packages/app-shell/src/views/RecordDetailView.phoneFace-27058.test.tsxImport ▾was.objectstack-seat2/36366-shots/):1-list-header-before.png: the bar withImport ▾.2-panel-before.png: the panel, 0/3 pinned, Import in 「Other」.3-panel-import-pinned.png: 1/3, Import pinned.5-list-header-after.png: the bar with an Import button.6-server-door-422.txt: the door's 422 reading.https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
🤖 Generated with Claude Code