Repository navigation
feat(types,layout): a doc nav entry validates and draws as a link into the docs portal (objectui#11197) - #11207
Conversation
…oc` entry is judged by the spec's own arm `NavigationItemTypeSchema` was a hand list of nine; spec 17.5.0 added `doc`, so `objectui validate` refused the spec's own docblock example. The enum is now read off the spec union's discriminator at module load. A `doc` entry goes to its own arm, which hands the entry whole to the spec's `DocNavItemSchema` and raises its issues, so it accepts nothing the spec refuses. The TS face gains the spec-derived `book` / `doc` members. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
`resolveHref` had no `doc` branch, so a `doc` entry rendered as a dead `#` link. It now uses the portal's own `/docs/:slug` and `/docs/:slug/:name` shapes under the entry's basePath; an unlabelled entry shows the page it opens, else the book. The mobile tab bar delegates to `resolveHref`. The designer's `NAV_TYPE_META` drops the pin-lag `| 'doc'`, and the app preview keys its kinds by the spec-derived `NavigationItemType`, so a `doc` entry is drawn there instead of dropped. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…igation guide Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
|
Generated by Claude Code |
…its slug URL
A `{ type: 'doc', book }` nav entry names its book by name; the portal
addressed books by slug only, so a book with an authored slug answered
"Documentation not found" and `/docs/NAME/DOC` lost the book sidebar. A
segment that is a book's name (and no book's slug) now redirects, replace, to
`base/bookSlug(book)[/DOC]`. It is looked up after a book slug and an installed
doc's name, so every URL that resolves today keeps its answer; the pins hold
the collisions and a control per resolving shape.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…n guide and the changeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Inputs: card #11197 (body and all 5 comments: claim ① Derived judgmentsAccept-set —
Public surface
Gates — the 43 check-runs on ② Semver levelChangeset Clause-②: no — right. The claim's condition ("if the mirror would accept anything the spec's ③ Boundary flagsDev flags from round 1 (
Implemented-by: VERDICT: PASS Generated by Claude Code |
Contract reviewServed-tier: Inputs: card #11197 (body and all 5 comments: claim ① Derived judgmentsAccept-set —
Public surface
Gates — the 43 check-runs on ② Semver levelChangeset Clause-②: no — right. The claim's condition ("if the mirror would accept anything the spec's ③ Boundary flagsDev flags from round 1 (
Implemented-by: VERDICT: PASS Generated by Claude Code |
|
Update to
Contract review: PASS on
Generated by Claude Code |
|
Regen-provenance: 5911555630 · This is a base merge only.
So the contract-review record
Generated by Claude Code |
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
…-less, never with the target's machine name (objectui#11201, stage 1) (objectstack-ai#11225) Part of objectstack-ai#11201 Clause-②: no Stage 1 of ruling B on objectui#11201 (triage record `5910404448`, execution note `5910537969`). The card stays open: stage 2 is routed by triage on the census below. This PR does not touch the renderer's `isCustomized` guard in `resolveNavItemLabel`, and it does not touch `/meta`'s `translateApp` or the inline locale map. ## What changes Ruling B keeps one rule, the spec's: a present `label` renders verbatim, and an absent one inherits its target's current label at render time, which is the text that localises. Step 1 asks every objectui producer to write a standard entry with no label, never the target's machine name. On `main`, the console's navigation sync already did (objectui#9868). Three other producers did not. They wrote the target's own text, which is its machine name for a draft or unlabelled object: | Producer (symbol, file) | Wrote before this PR | Writes now | |---|---|---| | Console navigation sync: `NavigationSyncEffect` calling `syncPageCreated` / `syncDashboardCreated` (`newPageNavigationItem` / `newDashboardNavigationItem`, `packages/app-shell/src/hooks/useNavigationSync.ts`) | no label since objectui#9868 (PR objectstack-ai#11186, `a8198de22`). From the hook's first commit (`7c788f5de`, 2026-02-23) until then: `label: label \|\| pageName` / `label \|\| dashboardName` | unchanged. New pin: the stored entry renders its target's localized label under en and zh-CN | | Public `syncPageCreated` / `syncDashboardCreated` / `…AllApps` with an explicit label | the author label verbatim. No in-tree caller passes one (the effect above is the only caller) | unchanged | | Studio Create app with "add objects": `buildAppSkeleton` (`studio-design/skeletons.ts`) fed by `loadPackageObjects` (`StudioDesignSurface.tsx`) | `label` = the object's label, or its machine name for a draft object (`d.name`) or an unlabelled one (`o.label ?? o.name`) | no `label` key. The seed is names only | | Studio nav-item panel, binding an object to a placeholder entry: `StudioNavItemInspector` (`StudioDesignSurface.tsx`) | replaced the placeholder with the object's label (`o.label ?? o.name`, so the machine name for a draft or unlabelled object) | removes the placeholder `label` key. A typed label and a locale map are kept as authored | | App wizard: `generateNavFromObjects` (`plugin-designer/src/AppCreationWizard.tsx`), fed by `CreateAppPage` / `EditAppPage` with `label: obj.label \|\| obj.name` | `label: pluralLabel \|\| label`, so the machine name for an unlabelled object | a `label` only for a declared plural label that differs from the object's label and from its machine name (trimmed, case-insensitive): inheritance cannot produce a plural. Otherwise no `label` key | | Navigation Designer quick add (`newNavItem`), Studio canvas "Add nav item" (`AppNavCanvas`) with `AppNavInspector`'s target picker | a placeholder (`New TYPE` / `New item`), never the target's name | untouched: not a machine-name producer, and objectui#11196 / PR objectstack-ai#11207 hold these files | | `DashboardDesignPage`'s `label: dashboardName ?? ''` (named in the dispatch as a lead) | not a nav entry: it is the dashboard document's own seed, on a not-found branch that returns before anything is saved | n/a | Display: the sidebar renders each new label-less entry with the text the old stored copy showed, and additionally in the viewer's language and after a rename. Pinned under en and zh-CN below. ## Serial constraint: land after objectui#11196 objectui#11196 (this seat, branch pushed, no PR yet) makes the designer surfaces draw a label-less entry through the runtime's rule: the app preview, the Studio nav canvas and inspector, the Studio Interfaces rail, the Navigation Designer and the app wizard's Navigation step. Until it lands, such an entry shows as `Item N` on the Studio nav canvas and as a blank row in the wizard's Navigation step. This PR makes Create app, the bind and the wizard write such entries. Both branches edit `StudioDesignSurface.tsx`, in different hunks: objectui#11196 edits the rail's `NavTree`, this PR edits `loadPackageObjects` and `StudioNavItemInspector`. `git merge-tree --write-tree` reports no conflict against objectui#11196's head `2a6f0c5fb` or against `main` `e6bc087a3`. No write site sits inside objectui#11196's hunks. ## Pins - `useNavigationSync.standardEntryLocalizes-11201.test.tsx`: the real `NavigationSyncEffect` stores a new dashboard's entry with no `label` key. That stored entry is then rendered by `NavigationRenderer`, wired as `UnifiedSidebar` wires it (the `useObjectLabel` resolvers plus `useNavTargetLabel`), under a real `I18nProvider` carrying a zh-CN bundle loaded the console's way. It shows `Pipeline Health` under en and `管道健康` under zh-CN. - `StudioDesignSurface.standardNavEntries-11201.test.tsx`: seeded entries carry no `label`, the app parses through the spec's `AppSchema`, and the stored entries render `Account` under en, `客户` under zh-CN, and `draft_thing` for the unlabelled object. Binding an object to a `New item` placeholder leaves no own `label` key, and the entry parses through `NavigationItemSchema`. Controls: a typed label is kept (a locale map is already pinned by the objectui#11148 test). - `AppWizard.standardNavEntries-11201.test.tsx`: drives the real `CreateAppPage`. The unlabelled, singular-labelled and plural-equals-name objects' entries carry no `label`. Control: a distinct declared plural (`Accounts`) is written. - `createConformance.test.ts`: the nav-seeded skeleton case now passes name-only seeds. ## Ablation (one-shot, from committed `384d81e73`, through `ablation-replace.mjs`: anchor hit, blob changed, restored to HEAD with `git diff HEAD` empty) | Leg | Mutation | Result | |---|---|---| | A | sync: `newDashboardNavigationItem` writes `label: label \|\| dashboardName` again | 3 red, 2 green: stored-label pin red, en render red (shows `pipeline_health`), the objectui#9868 stored pin red. zh-CN stays green, because the guard translates a machine-name label, which is why the guard stays in stage 1 | | B | scaffold: `buildAppSkeleton` writes `label: o.name` | 2 red, 6 green: seeded-label pin red, en render red. zh-CN green (the guard again) | | C | wizard: `const label = o.pluralLabel \|\| o.label` restored | 3 red, 1 green: the three label-less cases red, the plural control green | | D | bind: the placeholder removal deleted | 2 red: both placeholder-bind cases | ## Verification All on `384d81e73`, the head of this branch, from the worktree root: | Gate | Result | |---|---| | closure build, `turbo run build` for the dependencies of `@object-ui/app-shell` and `@object-ui/plugin-designer` | 28 of 28 tasks successful, lock verdict `command-exit 0` | | `pnpm --filter @object-ui/plugin-designer type-check` (`tsc --noEmit` and `tsconfig.test.json`, which lists the new wizard pin) | exit 0 | | `pnpm --filter @object-ui/app-shell type-check` (both projects; the test project lists both new app-shell pins and `createConformance.test.ts`) | exit 0 | | `vitest run packages/app-shell/src/hooks/` | 53 files, 457 tests passed | | `vitest run packages/app-shell/src/views/studio-design/` | 77 files, 439 tests passed | | `vitest run packages/plugin-designer/` | 28 files, 203 tests passed | | `vitest run` of the two other `skeletons` importers (`createConformance.test.ts`, `flow-node-producers.label.test.tsx`) | 2 files, 20 tests passed | | `vitest run scripts/__tests__/` (this PR adds a changeset `.md`) | 178 of 179 files reported, 5343 tests passed, 0 failed. The run hit its 300 s cap on `date-only-zone-pins-10183.test.ts`, which spawns child vitests. NOT MEASURED for that one file: it was queued for the lock again and not acquired within the 540 s budget. It reads date-only zone behaviour and nothing this PR touches | | `node scripts/markdown-test-inputs.mjs --audit` | exit 0 | | `pnpm exec eslint --no-inline-config` on the 7 changed source and test files | 1 error and 21 warnings, all present on the base as well. Linting the base blobs of the two files that report any gives 1 error and 19 warnings for `StudioDesignSurface.tsx` and 0 and 2 for `AppCreationWizard.tsx`: the same rules at shifted lines, so this diff adds none. The config enables no type-aware linting, so this diff cannot change a verdict on an untouched file | | `node scripts/check-changeset-presence.mjs` | exit 0, 1 changeset declared for 2 released packages | | `pnpm check:control-bytes` | exit 0 | | `pnpm check:new-line-citations` | `0 new citation(s)`, exit 0 | | `pnpm check:i18n-keys` | exit 0 (no string changed) | Declared narrowing: the dispatch's lead named all of `packages/app-shell/src/views/metadata-admin/`. This PR changes no source there. The only test there that imports a changed module is `createConformance.test.ts` (and `flow-node-producers.label.test.tsx` imports `skeletons` for `buildFlowSkeleton`), found by a `git grep` of importers, and no module under `metadata-admin/` imports `skeletons` or `StudioDesignSurface`. The rest of that directory, and the whole-package runs, are CI's. ## Acceptance notes ### Census (step 2), reported before any conversion Scanner: a TypeScript-AST walk of every `navigation: [...]` literal and its `children`, applying the guard's own test (plain-string label, trimmed and lower-cased, equal to `viewName` for an object entry naming a view, else `objectName`; `dashboardName` for a dashboard entry). The population was enumerated from the same ref it reads (`git grep` at objectstack `origin/main` `1741c5dcb`), and cross-checked by a second enumeration (`App.create(` and `: App =`), which found the same seven files. The matcher's own control is the one hit it reports. | Population | Nav entries | Entries the guard reads | Label equals the target's machine name | Writer | |---|---|---|---|---| | objectstack examples: crm, multi-package, showcase, todo | 76 | 33 | 1: todo `nav_overdue`, label `Overdue`, `viewName: 'overdue'` | author | | objectstack platform apps: account, setup, studio | 49 | 6 | 0 | author (platform source) | | objectstack scaffolds: `create-objectstack` blank template (no app), `objectstack generate app` (writes `Title` + `s` for the object) | 0 / 1 per app | 1 per app | 0 (the generated plural never spells the snake-case name) | author (a file the author owns) | | objectui console preview fixture (`preview-samples.ts`, not stored) | 7 | 3 | 0 | fixture | | page / report entries in the above, label against `pageName` / `reportName` (the guard does not read these) | 29 | not read | 0 | author | | Stored app navigation in production | NOT MEASURED: needs production data | | | | | A seeded console | NOT MEASURED: not booted. A fresh seed stores the packaged apps counted above, and the sync writes nothing without user CRUD | | | | Split by writer, what is readable here: platform sync 0 (it writes only into stored rows at runtime; 0 sync-shaped ids in any source), `apply_blueprint` NOT READABLE (the `objectstack-ai/cloud` repo answers 403 through the proxy), author 1. `apply_blueprint`'s declared contract is readable: `BlueprintNavItemSchema.label` in `@objectstack/spec` says "Nav entry label (defaults to the target label/name)", so the applier is declared to store the target's label or name when a blueprint omits one. **Can a stored row tell the writers apart?** Not from any recorded provenance. Partly from signatures and history: - Per entry: nothing. A nav item is a strict object with no room for a mark, and the spec's describe says "No stored inherited flag". - Per row: `sys_metadata`'s `source`, `managed_by`, `created_by`, `updated_by` and `version` describe the whole app document's last write, not an entry. - Sync signature (strong, but a heuristic): the sync has always written id `nav_page_` or `nav_dash_` followed by a 13-digit epoch-ms stamp and a counter, with icon `FileText` or `LayoutDashboard`, and until objectui#9868 the page's or dashboard's machine name as the label. The shape is the same from `7c788f5de` to `a8198de22`. An author would have to type the timestamp id by hand. - Weaker signatures: the Studio scaffold's id is `nav_` plus the object name (since `7a6837cfa`, 2026-07-05). A Studio-canvas entry's id is `nav_item_N`. The wizard's id equals the object name. Authors write ids like these by hand. - History: `sys_metadata_history` keeps a full snapshot per version (`operation_type`, `source`, `recorded_by`, `change_note`), so diffing versions finds the write that introduced an entry. But the sync, the Studio and the wizard all save through the same `saveItem('app', ...)` door as the signed-in user, so those columns do not separate them. `sys_metadata_commit` (ADR-0067) groups AI-turn writes (`actor`, `ai_model`, an event range), so blueprint writes are attributable if the cloud applier writes through commits (not readable) and history is retained (not measured). ### Twin check (step 3): no objectstack `packages/spec/src/system/i18n-resolver.ts` at `origin/main` `1741c5dcb`, `translateApp`'s node walk: ```ts if (typeof node.id === 'string') { const translated = lookupNavLabel(bundle, appName, node.id, opts); if (translated) next.label = translated; } ``` `lookupNavLabel` reads only `apps.APP.navigation.ID.label` down the locale chain. Nothing compares a label's text with `objectName`, `viewName` or `dashboardName`, so it is not the equal-to-name rule. One observation for triage: it also gives a label-less node the bundle text when an entry exists for its id, ahead of inheritance, while the execution note orders the id-keyed bundle only for a present label. The CLI's extractor (`walkNavigation` in `packages/cli/src/utils/i18n-extract.ts`) emits such keys only for a present label, so only a hand-written bundle entry reaches this path. ### Noted, not filed - The app wizard's Navigation step: objectui#11196's read (`resolveNavItemLabel(item)` with no target resolver) shows `objectName` for a label-less generated entry, though the wizard holds each object's label in `availableObjects`. This lies in that branch's hunk. - `StudioNavItemInspector`'s Label input writes `label: ''` when emptied (`renamedLabel` with an empty value), and shows no inherited text as a placeholder. objectui#11196's `clearedLabel` handles `AppNavInspector` only. Read from the code, not measured. - `AppNavInspector`'s target picker keeps `AppNavCanvas`'s `New item` placeholder as a present label. Both files are held by objectui#11196. - The wizard's declared-plural copy is a present label: it does not localise or follow a rename, because inheritance has no plural rung. No carrier. --- _Generated by [Claude Code](https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec)_ Co-authored-by: Claude <noreply@anthropic.com>
Fixes #11197 — the acceptance, the rendering, the portal's book-name resolution (option A, the seat's answer on the card, comment 5910896132) and every pin the card, the claim and that answer name.
Clause-②: no
What changed
@object-ui/typesNavigationItemTypeSchemais read off the discriminator of@objectstack/spec's navigation union at module load (theAppSchema.navigationwalk this file already used for the separator's keys, now shared). It gainsdoc, and the next spec type flows in with no edit here.docentry is judged by its own arm, routed by a discriminated union ontype. That arm hands the entry WHOLE to the spec's ownDocNavItemSchemaand raises each issue it answers, so it accepts nothing the spec'sdocarm refuses: the one-target rule, the doc-name shape, the non-emptybook, the snake_caseidand the closed key set are the spec's words, chained and never copied. The arm passes unknown keys through to that judge instead of stripping them, so nothing unknown survives a successful parse. The judge's OUTPUT is never used (the spec's parse turns avisiblestring into an expression envelope; this validator writes no value into an author's document). An emptylabelis refused as on every sibling.NavigationEntryItemgainsbookanddoc, derived from the spec'sDocNavItem.typeis now refused withinvalid_unionattype(wasinvalid_value) — the code the spec's own union answers with. The message still lists the expected types.@object-ui/layoutresolveHrefsends adocentry to the console docs portal under itsbasePath, using the portal's own two route shapes:{ doc }to.../docs/DOC(the flat-doc permalink, which redirects to the doc's canonical in-book URL),{ book }to.../docs/BOOK(the book landing), both to.../docs/BOOK/DOC. In an appbasePathis/apps/PACKAGE_ID, the package-container docs treeAppHeader's "This app's docs" entry already opens; on home navigation it is the top-level/docsportal.docentry shows the page it opens, else the book (the machine-name rung every non-inheriting type uses).docentry toresolveHrefinstead of drawing#.visible,requiredPermissions,requiresObject,requiresService) through the existing guard. No client-side audience: the book audience gate stays the server's read layer (ADR-0046 section 6.7).@object-ui/plugin-designer—NAV_TYPE_METAdrops the| 'doc'key that bridged the pin lag, as its own comment asked at the pin that shipsdoc.@object-ui/app-shell— the app designer's preview keyed its kinds by a hand list of nine, so a label-lessdocentry was DROPPED from the read-only preview and the design canvas badged a spec-validdocentry in the amberuntypedtone. The kind set is now aRecordkeyed by the spec-derivedNavigationItemType(a spec addition stops it compiling), and adocentry draws with its target, its route and its own tone. It is never picked as the landing, matching the runtime'sfindFirstRoute.@object-ui/console— the docs portal resolves a path segment that is a book's NAME (and no book's slug) to that book and redirects, replace, to the canonicalbase/bookSlug(book)[/DOC]URL. See the option-A section below.Docs —
content/docs/guide/designing-app-navigation.mdteaches thedocentry and says to name a book by itsname. Changeset —minorfor the five packages.Measured: which portal URLs resolve (item 3)
A throwaway integration run (not committed) mounted the real
DocsLayout/AppDocsIndex/DocsSlug/DocPageunder/apps/:appName/docswith a mocked adapter serving an authored bookshowcase_manualwithslug: 'manual'(the shape of the one authored book in objectstack's examples) plus a package with no authored book.{ doc: 'showcase_lead_guide' }.../docs/showcase_lead_guide.../docs/manual/showcase_lead_guide: doc content and book sidebar{ book: 'showcase_manual' }(slugmanual).../docs/showcase_manual.../docs/manual{ book: 'showcase_manual', doc: 'showcase_lead_guide' }.../docs/showcase_manual/showcase_lead_guide{ book: 'com.example.ops' }(implicit book).../docs/com.example.ops{ book: 'com.example.ops', doc: 'ops_setup' }.../docs/com.example.ops/ops_setupSo, before option A: a
doctarget always resolved, and so did abooktarget whose portal slug equals its name (every implicit package book, every authored book without aslug). A book that authors a differentslugwas reached by neitherbookshape: the console addresses books byslug, the spec's nav target names the book'sname. Option A closes that below.Option A — the portal resolves a book NAME
book-nav.tsgainsbookNamedBy(segment, books): the book whosenameis the segment,nullwhen the segment is some book's slug.DocsSlugandDocPageredirect a hit, replace, tobase/bookSlug(book)andbase/bookSlug(book)/DOC— the sameNavigate replacethe portal already uses for a flat-doc permalink. The renderer's href is unchanged.The invariant: no URL that resolves today changes its answer. The precedence was measured first, with the new pins run against the UNMODIFIED portal: 5 red (the name cases), 14 green (the 6 existing portal tests, 3 collision pins, 5 controls). Today's answers for the red five:
/docs/showcase_manualand its app-scoped twin stayed put on "Documentation not found";/docs/showcase_manual/showcase_lead_guideand its twin rendered the doc in place with no book sidebar;/docs/acme_manualwas caught by the name-prefix fallback and redirected to/docs/acme-docs/acme_manual, where the reader answered "Documentation not found".So the name lookup runs AFTER a book's slug and an installed doc's name, and BEFORE the name-prefix fallback, whose redirect for a name no installed doc carries lands on "not found". In
DocPageit runs only for a:slugno book answers by slug. The one former answer that is not a "not found" and still moves is the reader at.../docs/NAME/DOC: the same doc, now at its canonical URL with its book sidebar, which the seat's pins require.Pins, in
apps/console/src/pages/docs-portal.test.tsx(a second, authored-book world switched on only by the new block; the existing tests read the implicit-book world as before):/docs/showcase_manuallands on/docs/manual/showcase_index;/docs/showcase_manual/showcase_lead_guidelands on/docs/manual/showcase_lead_guidewith the book sidebar marking it current; both again under/apps/com.example.showcase/docs;/docs/acme_manual(the prefix-fallback case) lands on/docs/acme-docs/acme_intro;handbookisalpha_manual's slug and the name of the book whose slug isbeta—/docs/handbookopensalpha_manualand/docs/handbook/beta_startstays put;showcase_lead_guideis both an installed doc and a book (slugleads) —/docs/showcase_lead_guidestays the doc permalink,/docs/manual/showcase_lead_guide;Ablations (same tool and discipline as below, HEAD
c148d417b, each restored blob == HEAD, tree clean after): P1DocsSlug's name lookup off — 3 of 19 red (the two NAME landings, the prefix-fallback case); P2DocPage's redirect off — 2 of 19 red (both NAME/DOC pins); P3 the name lookup moved ahead of the doc permalink — 1 of 19 red (the doc-and-book collision); P4 the prefix fallback moved ahead of the name lookup — 1 of 19 red (the prefix-fallback case).Consumers that switch on nav type (item 4)
NavigationRenderer(sidebar),nav:menu,UnifiedSidebar(both arms), pinned entries, active-state matching: all route throughresolveHref/resolveNavItemLabel, so they draw adocentry with this change and needed no edit of their own.AppSchemaRenderermobile tab bar: hand-rolled hrefs; now delegatesdoc.AppPreview/AppNavCanvas(metadata-admin preview): edited as above.CommandPalette: an allow-list of four in-app kinds (object, dashboard, page, report);url,componentandactionare absent too. Not a fall-through drop; unchanged, and no new i18n key.findFirstRoute(landing): lands on object / page / dashboard / report only;componentis absent too. Adocentry is not a landing. Unchanged.navSurface.resolveSurface(Studio design rail): adocentry has no design surface (docs are package markdown), sonullis the right answer. Unchanged.useNavPins: type-agnostic. Unchanged.Pins and ablations
Pins:
packages/types/src/__tests__/navigation-spec-parity.test.ts(new objectui#11197 blocks),nav-label-optional-9868.test.ts(thedocfixture its coverage assertion now demands),packages/layout/src/__tests__/NavigationRenderer.docEntry-11197.test.tsx,packages/app-shell/src/views/metadata-admin/previews/AppPreview.docEntry-11197.test.tsx.Every ablation went through objectstack's
scripts/ablation-replace.mjs(at22e584c9db; anchor must hit once, blob moved, restore proven blob == HEAD andgit diff HEADempty), each leg run at HEAD9b3e0b658(the round before option A) with the file under test resolving to source through the vitest alias:docarm taken out of the unionvisible, id shape, remedy text, nested'bogus'docmakes.exclude(['doc'])throw at module load, so no test ran. Redone with a hand list that dropscomponent: 2 of 65 red (discriminator pin, the 9868 fixture-coverage pin)docdropped from the triaged-type tripwiredocbranch ofresolveHrefdeleteddoclabel rung deleteddoctaken out of the preview's kind setAfter all legs:
git diff HEAD0 bytes,git status --porcelain0 lines.Gates (HEAD
c148d417b)pnpm --filtertype-check:@object-ui/console0,@object-ui/types0,@object-ui/layout0,@object-ui/app-shell0,@object-ui/plugin-designer0 — after building the console's dependency closure (turbo run build --filter=@object-ui/console^..., 34 tasks). The console program listsDocsSlug.tsx,DocPage.tsx,book-nav.tsanddocs-portal.test.tsx; each package'stsconfig.test.jsonlists its new pin file.vitest run packages/types/ packages/layout/ packages/plugin-designer/ apps/console/src/pages/plus 9 console tests that mention docs, 48 nav-related app-shell test files andpackages/cli/src/__tests__/validate-union-arm-selection.test.ts: 450 files, 8241 tests passed, exit 0.vitest run packages/app-shell/src/views/metadata-admin/previews/: 86 files, 1130 tests passed (previous round; untouched since).check:control-bytes0,check:new-line-citations0 (0 new),check:spec-symbols0,check:component-surface-parity0 (report-only),check:changeset-claims0 (7 pending changesets name a touched file; each paragraph re-read, none falsified),check:doc-types0,check:docs-route-closure0,check:vi-mock-specifiers/-inherit/-override-shape0,check:test-path-roots0,check-changeset-presence0 (15 source files of 5 released packages, 1 changeset),check-changeset-no-major0.check:spec-floorsandcheck:readme-exports(both need the whole workspace built); repo lint (CI-owned).Spec Main Shape Gatered nameswriteWarningToast.tsandspec-symbol-batch6.test.ts, which this diff does not touch; objectui#11206 carries it, and the seat bringsmainin after it lands.Notes for review
NavigationEntryItemis one flat interface, sobook/docare declared on every entry type, asurlandcomponentRefalready are. The runtime validator is the per-type door.navSurface.ts's docblock still says "nine-member" union; the spec'sBookSchema.slugdescription says it defaults to the name "sans prefix", while the console'sbookSlugdefaults to the full name (under option A the redirect goes to whateverbookSlugcomputes, so the two stay consistent).resolveHref(record deep link,filters,runAction,metadata:*); the measured hrefs are in the dev report for the seat to file.Generated by Claude Code