Repository navigation
fix: navigation.size auto reads and opens as the host default width in nine locales and two record drawers - #38055
Conversation
…lt width everywhere The nine hand-translated metadata-form locales (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-Hant) now carry the current navigation.size help text instead of the retired field-count derivation. The /data page's and an interface list page's record drawers open at the side preview's 460px default with the shared dragged width, and an interface list page takes its source view's navigation.size or width. Stale comments and TSDoc now say what the code does. Claude-Session: https://claude.ai/code/session_01L9qibzZa1L8r7yGLe8nsmm 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 — 177 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 f6a8e9298232d6c7232586e9713f199767254d6d && git checkout f6a8e9298232d6c7232586e9713f199767254d6d
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 39d611d4769a567cff55b3321a6a70f3cc32e2ba b68e955306bbb335ede90d65672f4bd44fcbefba && git checkout -B drift-repro 39d611d4769a567cff55b3321a6a70f3cc32e2ba && git merge --no-ff b68e955306bbb335ede90d65672f4bd44fcbefba
node scripts/docs-audit/affected-docs.mjs --json 39d611d4769a567cff55b3321a6a70f3cc32e2ba
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head b17aa29 · 2026-11-27T22:25Z L1-a (the seat's L1 thread) runs the isolated |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Inputs read: card #36730 body and every comment (triage 7104562672, unlock 7113261613, claim 7228443977, os-dev report 7229291227, amendment 7229306962), PR #38055 body and its comments, the net diff The rest of the diff (the nine locale bundles, the two test files, ① Derived judgments
② Semver level
Changeset prose, read against the head: the nine-locale paragraph, the 42rem and not-draggable statement for both drawers at the merge base, "at 460px, or at the width the reader last dragged in any side preview", and "an interface list page also takes its source view's ③ Boundary flags
④ Design judgment
Agrees with the contract. The width is
Agrees with the contract.
Each rewritten sentence is true at the head:
True at the head: Open on this head: S1 (should-fix), which earns a delta review of its fix. N1 is a nit. No must-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The filled brief the record above was rendered from (L1-a, isolated Contract review brief — PR #38055 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 REWORK at What holds.
Owed before ACCEPT.
Nit (not blocking).
CI was still running when I read it, and no run had failed. I will read the final green head with the delta. |
…g does with 'full' RecordFlowSurface.size: a derived 'full' is the form dialog's full size (95vw from the sm breakpoint up; below it every size is a full-screen sheet), and the console derives with no viewport, so it only receives 'auto'. The navigation.size TSDoc lists the bare data page and the interface list page among the drawers that open at 460px. The changeset says the same. Claude-Session: https://claude.ai/code/session_01L9qibzZa1L8r7yGLe8nsmm Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head b68e955 · 2026-11-27T22:38Z L1-a runs the same reviewer's delta of record 7229399221 on this head (S1: the |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Delta review of the record on ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentS1: closed
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT at Contract review. Record 7229399221 on
Face. Behaviour, for the record. Part (b) moves the |
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-27T23:12Z · zone
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Requested by Tesla · project thread
Fixes #36730
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
navigation.size.helpTextin the ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru and zh-Hantmetadata-forms.generated.tsbundles now translates the current English sentence (the same meaning as en and zh-CN):'auto'keeps the host's fixed default width, the same for every object whatever its field count (460px in the console), the sm..full buckets and their caps, a dragged width wins, and where it has no effect. The retired "derived from field count + viewport; AI writes nothing" sentence is gone from every leaf. Only the leaf string changed; no key was added or dropped.ObjectDataPage) and the interface list page (InterfaceListPage) opened their record drawer atNavigationOverlay's own 42rem and passed nostorageKey, so the drawer could not be resized. Now:/datahas no view and nothing authors a size there, so its drawer opens atRECORD_PREVIEW_DEFAULT_WIDTH(the side preview's 460) and keeps a dragged width underRECORD_PREVIEW_WIDTH_KEY, as the object list's drawer does.recordPaneWidth(viewDef.navigation, objectDef)andrecordPreviewWidthKey(cfg.source, viewDef.navigation)from its source view, so an authoredsizebucket or pixelwidthis honoured and keeps its own per-object key; otherwise it is the 460 default with the shared key.RecordFlowSurface.size(specrecord-surface.ts) no longer claims to map ontonavigation.size/FormView.modalSize; it says what reads it (the console's create / edit dialog turns'full'into its full-screen sheet) and that the drawer's width does not.navigation.widthTSDoc (specview.zod.ts) no longer says "kept only as a renderer fallback": an authoredwidthwins oversizewhere a renderer reads both.recordSurface.ts(OverlaySize,deriveOverlaySize,overlayWidthFor, the file header) and reactuseNavigationOverlay.ts(OVERLAY_SIZE_WIDTHS,resolveOverlayWidth) no longer call the field-count bucket the'auto'path, andOverlaySizeis no longer paired withFormView.modalSize.ui/e2e/toast-under-modal.spec.tssays ObjectView passesrecordPaneWidth(...), notoverlayWidthFor(...).@objectstack/platform-objects,@objectstack/spec,@object-ui/app-shell,@object-ui/plugin-view,@object-ui/react. The spec, plugin-view and react edits are comment-only but ship in published bytes (src/**/*.zod.ts,.d.tsTSDoc), so they take a patch, notskip-changeset.Tests
InterfaceListPage.drawerWidth-36730.test.tsx(3 cases) and a new top-level describe inObjectDataPage.openRule-35875.test.tsx(2 cases), through the real page,ListViewandNavigationOverlay, reading the drawer card's--ov-w:size: 'xl': opens at the xl bucket and the shared width does not replace it.ObjectDataPage.tsxandInterfaceListPage.tsxrestored toorigin/main(b4c99b8), all 5 new cases go red (expected '42rem' to be 'min(92vw, 460px)'and the like); restored to the fix, 5/5 green.Rework at
b68e9553(L2 S1 in 7229399221 and the nit): comments and changeset text only, 3 files, +10/−7, with no.describe()line changed againstorigin/main. Re-run there: spec build 0,check:generated14/14 up to date, spec tsc 0, eslint on the two files 0,check-empty-changeset0,check-changeset-no-major0,check:nul-bytes0. The runs below are atb17aa295, and no code line moved after them.Local runs at b17aa29
pnpm --dir ui exec vitest run packages/plugin-view/src/ packages/react/src/hooks/ packages/app-shell/src/views/__tests__/recordPreviewWidth-36149.test.tsx packages/app-shell/src/views/InterfaceListPage packages/app-shell/src/views/ObjectDataPage→ Test Files 135 passed (135), Tests 1394 passed (1394)pnpm --filter @objectstack/platform-objects test→ Test Files 130 passed, Tests 2214 passedpnpm exec turbo run type-check --filter=@object-ui/app-shell --filter=@object-ui/plugin-view --filter=@object-ui/react→ exit 0pnpm --filter @objectstack/spec exec tsc --noEmit→ exit 0pnpm --filter @objectstack/spec check:generated(after a spec build) → all 14 generated artifacts up to datepnpm check:i18n(after its build closure) →check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys)pnpm --dir ui run check:new-line-citations→ 0 new citationsdispatch-gates --commands(96 families) →--ran: 94 run, 2 NOT MEASURED, 0 unrun. Not measured (prerequisite, exit 3):check-plugin-teardown-shape --self-test(needs an unshallow clone) andcheck:dual-build-cjs-loads(needs a fullpnpm build); both are left to CI.check:dts-closurewas red on the first run only because an earlierOS_SKIP_DTS=1build left no.d.ts; after real builds it reports 312/312 declaration files present.Acceptance notes
/datadrawer and the interface list drawer now show a drag handle; before this change they had none. That follows from sharing the side preview's key, which the claim asked for.deriveOverlaySize(field count → bucket) is still exported from@object-ui/plugin-view; no console surface calls it for'auto'any more. Removing it is not in this card.Verification
Open
/apps/APP/OBJECT/data, hover a record name and click 「Open in side panel」: the drawer opens about 460px wide (not 672px) and its left edge can be dragged; the width you drag is the width the object list's side preview opens at next.Generated by Claude Code