Repository navigation
feat(studio): one table holds the menu's type order and its 常用 / 高级 tier - #37232
Conversation
…advanced tier STUDIO_MENU_PLACEMENT lists every type the directory can list, in the ruled order, each with its tier. It holds order and tier only; a type's group stays its served domain. A pin holds it against DEFAULT_METADATA_TYPE_REGISTRY and against the ruled order. Not wired into the menu yet. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
…udio-menu-placement
…nced tier main registers ai_context (domain ai) since the table was written; it takes an advanced row, last in ai, matching the ADR table on the M1 PR. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
…-checks Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
…udio-menu-placement
…lumns The ADR's type-to-group table now carries an order and a tier per type. The pin reads it and holds the list equal to it: tier per type both ways, each row's group equal to the served domain, and the order inside each group. A drift names the type or the group. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-25T05:59Z · head
|
Fixes #37200
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts:STUDIO_MENU_PLACEMENT, one ordered list of{ type, tier }, 32 rows (every listable type of the 33 the registry holds onorigin/main;fieldis hidden by the directory).domain. Not wired into anything (the menu card wires it).studioMenuPlacement.test.ts, three holds:DEFAULT_METADATA_TYPE_REGISTRYregisters and the directory lists has exactly one row, and every row names a registered, listed type;.changeset/37200-studio-menu-placement.md(@object-ui/app-shellpatch).Tests
Final head
5568fa63a1.vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts: 1 file, 12 tests passed.@object-ui/app-shelltype-check(both tsc programs): exit 0, 0 errors (afterpnpm --filter '@object-ui/app-shell^...' build). The first run caught a real typing error in the test (aSetof the registry's literal type union), fixed in2eae5a0f90.scripts/ablation-replace.mjson a committed head, each restored and proven by the HEAD blob hash and an emptygit diff HEAD:Ablation readings
hookrowappandpagenot_a_registered_typeai_contextrowjobretiered to commonjob: ADR-0084 row: expected 'advanced' to be 'common'picklistretiered to 常用picklist: ADR-0084 row: expected 'common' to be 'advanced'appOrder 1 to 9group uiorderThe first try at the unknown-type mutation was a no-op (its anchor survived inside the replacement, and the tool refused it with "the anchor count moved 1 -> 1"); it was re-run with an anchor that disappears. The ADR mutations were transient and restored; this PR does not edit the ADR.
Acceptance notes
studioAddressTable.test.tsas the pattern; no file has that name. The address table is pinned instudioAddress.test.ts("the mapping table agrees with the code"), which is the model used.ai_contextwas registered onmainafter the ruling (33 types). It takes an advanced row, last in ai, matching ADR-0084's table; its tier is an open question for the maintainer, and a ruling the other way is a one-row edit plus the ADR row.origin/main151e8123" for the registered-type count. That sentence lives only in the ADR, which this PR does not touch; it is reported to the seat as a follow-up. Nothing in this PR relies on the count 32.Verification
Read first:
studioMenuPlacement.ts(the rows themselves), then the ADR block ofstudioMenuPlacement.test.ts(the table-row regex is the risk: a reformatted ADR table makes the row-count test go red, never silently pass).Two-minute check:
cd ui && pnpm exec vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.tswith@objectstack/specbuilt; expect 12 passed. Change any tier in the file and expect a red that names the type.Gates (local, head 5568fa6)
dispatch-gates.mjs --commandsderived 38 families; all 38 run, each exit 0 (--ranreconciliation: 38 run, 0 NOT-MEASURED, a derived zero), includingpnpm check:test-source-alias,pnpm check:cross-package-test-inputsandpnpm --dir ui exec vitest run scripts/.overlap-check.mjs --branch=HEAD: merges cleanly withorigin/main, VERDICT clean exit 0.Generated by Claude Code