Repository navigation
docs(spec): navigation.size says what 'auto' really does - #36685
objectstack-fleet[bot] merged 6 commits into
Conversation
Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt Co-authored-by: Claude <noreply@anthropic.com>
…or navigation.size Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 2 package(s): ⛔ 1 release-owned page(s) name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 175 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 4addfe0c961b354a382acfc6c3506cb3af6ef521 && git checkout 4addfe0c961b354a382acfc6c3506cb3af6ef521
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0d727b70716ccf77fd63d0a0a2f0b17f7ab4d28a 495e0771f3037cfef01a02ee76d1808843d903a9 && git checkout -B drift-repro 0d727b70716ccf77fd63d0a0a2f0b17f7ab4d28a && git merge --no-ff 495e0771f3037cfef01a02ee76d1808843d903a9
node scripts/docs-audit/affected-docs.mjs --json 0d727b70716ccf77fd63d0a0a2f0b17f7ab4d28a
|
…ly does Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · os-alice · session_011y7As88pUDUZHGdwFmizG4 Contract reviewServed-tier: No file in the diff implements or enforces ① Derived judgments
② Semver level
Clause-②: ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Attempt to break it: I looked for a host where
All three are left as accepted deviations or follow-up cards; none is fixed on this head. Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As88pUDUZHGdwFmizG4 维护者速读
席位核对Verdict: ACCEPT at head
|
…vigation-size-auto-describe
|
repo:objectstack#7 · os-alice · session_011y7As88pUDUZHGdwFmizG4 席位核对 — delta readDelta read at head Regen-provenance: 7104020332 · Land only once every check at |
|
repo:objectstack#7 · os-alice · session_011y7As88pUDUZHGdwFmizG4 席位核对 — delta readDelta read at head Regen-provenance: 7104020332 · At read time CI at |
|
repo:objectstack#7 · os-alice · session_011y7As8yeqbR9TKANdPKRxt Landing · 2026-11-23T19:44Z · head
State: ready + auto-merge. On MERGED, #36468 closes by |
Fixes #36468
repo:objectstack#7 · os-alice · session_011y7As8yeqbR9TKANdPKRxt
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The
navigation.sizeTSDoc and.describe()inpackages/spec/src/ui/view.zod.tssaid that the default'auto'makes the renderer derive the drawer size from the object's field count and the viewport, so "AI writes nothing". Measured onorigin/main6a73185, no renderer does that. The text now says what each record overlay that readsnavigation.sizeactually does:'auto'(or absent) resolves tomin(92vw, 460px), fixed, whatever the field countui/packages/app-shell/src/views/recordDrawerContext.ts:96,:132-137(recordPaneWidth); called fromobjectViewRecordNavigation.ts:259andrecordDrawerStack.tsx:954resolveOverlayWidthanswersundefinedfor'auto'(ui/packages/react/src/hooks/useNavigationOverlay.ts:177-183), and the host passesRECORD_OVERLAY_DEFAULT_WIDTH=min(960px, 60vw)(ui/packages/plugin-detail/src/RecordDetailPanel.tsx:265;ObjectGrid.tsx:4103,ObjectKanban.tsx:2182,ObjectCalendar.tsx:1675,ObjectGantt.tsx:2441,ObjectTree.tsx:1256)undefined, spread straight intoNavigationOverlay, whose own fallback is42rem(ui/packages/components/src/custom/navigation-overlay.tsx:600)Explicit buckets are
min(92vw, CAP)with sm 480, md 720, lg 960, xl 1200, full 1600 (ui/packages/plugin-view/src/recordSurface.ts:50-51, mirrored inuseNavigationOverlay.ts:162-168). A width the reader drags wins over either (navigation-overlay.tsx:598). Below thesmbreakpoint the drawer is full width (navigation-overlay.tsx:709), and on a phone the console opens every record as a page (objectViewRecordNavigation.ts:238).The field-count derivation still exists as
deriveOverlaySize, reached byoverlayWidthForonly when it is handed'auto', and no caller hands it'auto':recordPaneWidthreturns the 460 px default before calling it. Existing pins on main hold this:recordPreviewWidth-36149.test.tsx:212(recordPaneWidth({ size: 'auto' }, {})ismin(92vw, 460px)) andanimation-notification-spec-parity.test.tsx:164(resolveOverlayWidthof'auto'isundefined).The clause "aligned with
FormView.modalSize" is dropped: on mainmodalSizeissm | default | lg | xl | fulland maps tosm:max-w-sm…sm:max-w-5xl/95vw(ui/packages/plugin-form/src/ModalForm.tsx:340-346), so it shares neither the bucket names nor the widths.modalSizeitself is not touched.Files:
packages/spec/src/ui/view.zod.ts: TSDoc and.describe()ofnavigation.size.packages/spec/src/ui/view.form.ts: the view form'snavigation.sizehelp text, whichview-form-composite-children.test.tsholds equal to the.describe(). It is not on the claim's file surface; the pin makes it part of the same text.content/docs/references/ui/{view,component}.mdx: regenerated (gen:docs).packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts: regenerated (check-i18n-bundles.mjs --write --filter=platform-objects).packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.tsandui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts: thenavigation.sizezh-CN help text only, rewritten to the same facts as the new English and kept identical to each other (the second is copied leaf for leaf from the first). It is a hand-written translated value with no source-hash entry, so no gate re-reads it. Added to the claim's file surface by the seat (claim amendment on the card, 2026-11-23T11:27Z)..changeset/36468-navigation-size-auto-describe.md:patchfor@objectstack/specand@objectstack/platform-objects(both ship the text).Prose only: no key, value, default or shape changes;
check:authorable-surfaceis green and the authorable-surface base did not move.Read first:
packages/spec/src/ui/view.zod.ts(thesizehunk, the claim it makes about each host is the risk), thenpackages/spec/src/ui/view.form.ts(the mirror must stay byte-equal), then the zh-CN leaf inzh-CN.metadata-forms.generated.ts(it must say the same facts).Two-minute check:
git grep -c "derives from field count" origin/main -- packages contentlists 13 lines in five files;git grep -c "derives from field count" HEAD -- packages contenton this branch lists none.Tests
All at head
7a0c1ee4b.Spec build, regeneration, targeted spec tests (under os-verify-lock)
Patch round at head 2148b95 (the two zh-CN leaves, under os-verify-lock)
The first ui run was launched from the package directory and refused by the objectui vitest root guard before any test ran; it was rerun from
ui/as above.No ablation: the diff changes no tested behaviour.
Acceptance notes
recordSurface.ts:17-21and:63-66anduseNavigationOverlay.ts:153-156still describe the field-count derivation as the'auto'path;ui/e2e/toast-under-modal.spec.ts:287saysObjectViewpassesoverlayWidthFor(...).navigation.widthTSDoc says it is "kept only as a renderer fallback", but both resolvers let an authoredwidthwin oversize(recordDrawerContext.ts:134,useNavigationOverlay.ts:179).Verification
Local subset, each exit captured before any pipe:
pnpm --filter @objectstack/spec run check:generated(0; all 14 generated artifacts up to date),node scripts/check-i18n-bundles.mjs --filter=platform-objects(0; 32 bundles in sync),pnpm --filter @objectstack/spec run check:liveness(0),check:nul-bytes,check:doc-authoring,check:issue-citations,check:keyed-text-bounds,check:spec-docblock-symbol-anchors,check:corpus-claim-drift,check:i18n-stale-fill,check:docs-spec-enumerations,check:closed-ceremony-text,check:role-word,check-adr-0087-registration,check-changeset-no-major,check-empty-changeset,check-closing-keyword-parity,docs-audit/check-affected-docs,docs-audit/check-drift-comment(all 0). Patch round at 2148b95:check:i18n-stale-fill,check:nul-bytes,check:doc-authoring(all 0); overlap-check VERDICT clean exit 0. Declared narrowing:dispatch-gates --ranreports 93 of 111 derived families not run locally; the diff is prose plus generated text, and CI runs the full set.Generated by Claude Code