Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(app-shell): Studio's app designer canvas shows a locale-map nav label and renames only the current locale's entry (objectui#11128) - #11146

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11128-app-nav-canvas-labels
Sep 29, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11128-app-nav-canvas-labels

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11128
Clause-②: no

What changed

packages/app-shell/src/views/metadata-admin/previews/AppNavCanvas.tsx, the design-mode nav editor used by the app preview and by the Studio app pillar. The spec types a nav item's label as I18nLabel: a plain string or an inline locale map.

  • Display. navLabel now resolves the label in the designer locale through the spec's resolveI18nLabel (the resolver AppPreview already uses). A map-labelled entry no longer reads as the positional "Item 1" while the preview's landing line beside it shows the resolved text.
  • Rename. The inline rename no longer writes the typed text over a whole map. A new renamedLabel helper keeps a plain string (or an absent label) as a plain string, as before. For a map it writes only the designer locale's entry and keeps every other entry. The entry written is the one resolveI18nLabel reads first for that locale: the exact tag, else its bare language. A map with neither gains an entry under the exact designer tag. An entry that the resolver only reached as another language's fallback (default, en under zh-CN, a sibling region such as zh-TW) is left as it was.
  • Fallback. "Item N" stays only for a label that is truly absent or resolves to nothing. It now reads a designer catalogue row, engine.appNav.item, through the same tFormat and locale. The en value Item {n} renders byte-equal to the old text; zh is 导航项 {n}.
  • The locale is threaded from the canvas's own useMetadataLocale() into the card tree as a prop. The card's draft effect now keys on the resolved label string instead of the item object.

packages/app-shell/src/views/metadata-admin/i18n.ts: the one engine.appNav.item row in the en and zh tables. .changeset/11128-app-nav-canvas-label-maps.md: '@object-ui/app-shell': patch.

Pins

New file previews/AppNavCanvas.labelMaps-11128.test.tsx, 7 tests. Each one renders AppPreview in design mode inside an I18nProvider, with the preview locale set to match:

  • a map-labelled item shows Accounts under en and 客户 under zh, with no positional fallback and no [object Object];
  • an unlabelled item under zh shows the zh engine.appNav.item row, which differs from the en row;
  • a rename under zh writes { en: 'Accounts', 'zh-CN': '客户账户' }, so en survives;
  • a rename under en writes the en entry the card read, { en: 'Customers', 'zh-CN': '客户' }, with no second en-US key;
  • a map with no entry for the designer locale gains one (zh-CN), and default, en and zh-TW are kept;
  • a plain-string label renames to a plain string (the control).

Verification (final commit 9d2fb10d8)

  • pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/previews/ packages/app-shell/src/views/metadata-admin/studio-locale.i18n.test.tsx packages/app-shell/src/views/studio-design/: Test Files 151 passed (151), Tests 1481 passed (1481).
  • The closure was built first with pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build (exit 0). Then pnpm --filter @object-ui/app-shell type-check --listFiles ran tsc --noEmit && tsc -p tsconfig.test.json --listFiles, exit 0, and the test project's file list includes the new pin file.
  • pnpm exec eslint on the three changed source files: 3 files, 0 errors, 2 warnings. Both warnings are already there at base 9fd6c2c6f, on the same statements with the same rules (no-explicit-any on the draft read, set-state-in-effect on the draft reset). The eslint config has no type-aware linting (no projectService or parserOptions.project) and no cross-file plugin, so this diff cannot move a verdict on an untouched file.
  • Gate verdicts, all exit 0: node scripts/check-changeset-presence.mjs, node scripts/check-control-bytes.mjs, pnpm check:new-line-citations (0 new citations), pnpm check:i18n-designer-parity ("every shared row carries the same placeholders"), pnpm check:i18n-drift (0 en values changed, 1 designer key added), pnpm check:i18n-keys, pnpm check:i18n-dead-keys (the new key is not listed).
  • node scripts/check-governed-queue-guard.mjs --test over the four changed paths reports NOT GOVERNED.

Ablations. These were one-shot, run after the fix was committed. Restore was proved each time by the file's blob equalling the HEAD blob and by git diff HEAD being empty. Mutations 2 and 3 went through objectstack's scripts/ablation-replace.mjs, and each anchor hit exactly once.

  1. AppNavCanvas.tsx reverted whole to base 9fd6c2c6f: 6 failed | 1 passed (7). Only the plain-string control stays green.
  2. Only the rename write reverted to label: nextLabel, with the display fix kept: 3 failed | 4 passed (7). Each of the three map-rename pins receives a plain string.
  3. The key picker reduced to "always the exact tag": 1 failed | 6 passed (7). The en pin receives { en: 'Accounts', 'en-US': 'Customers', 'zh-CN': '客户' }.

Acceptance notes

  • Out of scope, reported to the seat and not changed here. StudioNavItemInspector (packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx) is the Studio app pillar's nav-item inspector beside this canvas. It reads the label as String(node.label ?? node.title ?? node.name ?? ''). I ran a probe that was not committed and was deleted afterwards: it rendered the inspector with label: { en: 'Accounts', 'zh-CN': '客户' }. The Label input showed "[object Object]", and one keystroke wrote the plain string "Customers" over the whole map. So the inspector can still delete map text that this canvas now keeps. It is in the same family as this card, but it is not on this card's file surface.
  • The designer locale is en-US or zh-CN (useMetadataLocale), not en. That is why the rename matches the exact tag, then the bare language: a { en, zh-CN } map renamed in the English designer updates en instead of gaining an en-US key. The one remaining choice is which key a gained entry uses in the English designer. This PR uses en-US, the designer's own tag. It is raised with the seat as a question and does not block this PR.
  • The catalogue row's hole is spelled {n}, the tFormat convention this table uses (as in engine.inspector.widget.untitledN). The carrier note's example spelling Item {{n}} would render Item {1} through tFormat.

The work was done in session https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec (domain:ui seat 2's dispatched dev, branch claude/issue-11128-app-nav-canvas-labels).


Generated by Claude Code

…abel and renames only the current locale's entry

AppNavCanvas read a nav item's `label` only as a string. A locale-map label
(`I18nLabel`) now resolves in the designer locale through the spec's
`resolveI18nLabel`; an inline rename of a map writes the designer locale's
entry (exact tag, else bare language, else a new exact-tag entry) and keeps
every other entry; a plain string renames as before. The truly-absent
fallback reads the new `engine.appNav.item` catalogue row (en unchanged,
zh added).

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 3 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/6310-designer-formula-key-retired.md

  • names packages/app-shell/src/views/metadata-admin/i18n.ts → packages/app-shell/src/views/metadata-admin/i18n.ts — edited by this change

    Not touched: designer.field.formula ('Formula (CEL)') in packages/app-shell/src/views/metadata-admin/i18n.ts, a different and live key belonging to metadata-admin's ObjectFieldInspector — the surface that still authors formula expressions.

.changeset/7125-dashboard-empty-state-keys-retired.md

  • names packages/app-shell/src/views/metadata-admin/i18n.ts → packages/app-shell/src/views/metadata-admin/i18n.ts — edited by this change

    Not touched: table.noRows ('No rows to display') and engine.form.noRows (packages/app-shell/src/views/metadata-admin/i18n.ts, read at widgets.tsx) — two different, same-named keys in different namespaces. Nor the comments in WidgetEmptyState.tsx, DatasetWidget.tsx, ObjectDataTable.tsx and PivotTable.tsx that record WHY three widgets with three strings became one shared empty state; the packs' own comment keeps that rationale and now names the retirement instead of a row that is gone.

.changeset/8632-malformed-picklist-option-loud.md

  • names views/metadata-admin/i18n.ts → packages/app-shell/src/views/metadata-admin/i18n.ts — edited by this change

    Two new strings land in the designer's own en / zh tables — the metadata-admin console owns its strings in views/metadata-admin/i18n.ts and is deliberately outside the ten locale packs (packages/i18n/README.md, "Scope — the engine.* carve-out").

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with bf43afafa (merge-base with origin/main): 3 file(s) changed outside .changeset/, read against 1768 pending declaration(s) that publish a body (2374 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3113.2 KB 3149.4 KB
Main entry chunk (gzip) 149.5 KB 350 KB
Entry file index-Ck4lB5y6.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 559.68KB 134.21KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 227.99KB 63.22KB
fields (index.js) 261.11KB 66.33KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 234.55KB 62.25KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 170.39KB 43.52KB
plugin-gantt (index.js) 171.88KB 42.61KB
plugin-grid (index.js) 229.83KB 63.15KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.82KB 28.67KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.43KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 90.43KB 22.76KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.30KB 6.99KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9d2fb10d8ed4408f3d7b9d29412fe22d6cce3763
Local-runs: none

Inputs: card objectui#11128 (body and all 4 comments: triage 5896612987, carrier note 5897146387, claim 5898056986, os-dev-report 5898910389); PR objectui#11146 (body, 4-file list, net diff against main, its one commit); the check-runs on the head (filter=latest, every run completed before judgment). Context reads through contents/PATH?ref=9d2fb10d8: previews/AppNavCanvas.tsx, metadata-admin/i18n.ts, previews/AppPreview.tsx, studio-design/StudioDesignSurface.tsx, packages/app-shell/package.json, pnpm-lock.yaml, .github/workflows/ci.yml, lint.yml, spec-main-shape-gate.yml; the spec's resolveI18nLabel and I18nLabelSchema at @objectstack/spec 17.4.0 (the version the lockfile resolves at the head).

① Derived judgments

Diff: 4 files, +215 −19. AppNavCanvas.tsx (+62 −19), metadata-admin/i18n.ts (+2), new pin file previews/AppNavCanvas.labelMaps-11128.test.tsx (+125), one changeset (+26).

a. Display, navLabel(it, i, locale) — RIGHT. Reads (resolveI18nLabel(it.label, locale) ?? '').trim(); a non-empty result is shown, otherwise tFormat('engine.appNav.item', locale, { n: i + 1 }). That is the resolver AppPreview.normalizeNav uses (AppPreview.tsx:143), in the same designer locale. "Item N" is now reached only for an absent label or one that resolves to nothing (the resolver answers undefined only for an absent label, a non-object, or a map with no string value). The base's typeof l === 'string' test is gone, so a map no longer reads as no label. An empty-string label lands on the positional row as it did at base (l.trim() was falsy there too): unchanged.

b. Locale threaded as a prop; the hook out of NavCard — RIGHT. AppNavCanvas keeps its pre-existing const locale = useMetadataLocale() (:249). The diff adds locale: string to the props of NavCardTree and NavCard and passes it at every render site (:379 canvas to tree, :436 tree to card, :456 tree to child tree); the const locale = useMetadataLocale(); line inside NavCard is removed. useMetadataLocale stays imported and used by the outer component. renameItem and moveItem, which now read locale, list it in their deps (addItem already did). Neither NavCardTree nor NavCard is exported, so the new prop is internal.

c. NavCard draft effect — RIGHT. const label = navLabel(item, index, locale) is computed once per render; the draft effect keys on [label, editing] instead of [item, index, editing]; onBlur compares v !== label; Escape resets to label; the span renders {label}. Same semantics, one resolution per render.

d. Rename, renamedLabel(cur, next, locale), against the resolver's own read order — RIGHT. Resolver order at 17.4.0 (i18n-label-resolver.ts:235-274): 1 exact tag, 2 bare base, 3 first same-base regional sibling, 4 default, 5 en, 6 first string value. Both sides count an entry as present only when it is an own property AND a string, so they agree on what exists. The picker is [tag, base].find(own) ?? tag:

  • the map has the exact tag: writes it, and display reads it at limb 1;
  • the map has only the base: writes the base, and display reads it at limb 2 (a { en, 'zh-CN' } map under en-US writes en; no second English key);
  • neither: adds the exact tag; display, which read limb 3 to 6 before, reads the new entry at limb 1 straight after, and the entry it read before survives (pin: { default, en, 'zh-TW' } under zh-CN gains zh-CN and keeps all three).
    So the rename always writes a key the display reads first once written. A plain string, an absent label or an off-contract value (non-object, array) writes the plain string, as at base. A map is never replaced by a string: { ...map, [key]: next }. locale is en-US or zh-CN from useMetadataLocale (i18n.ts:6711-6714), so the resolver's empty-locale default to en never diverges from the picker here. The selection after a rename carries label: nextLabel, the string the card now shows. Only depth-0 cards rename (canEdit && depth === 0, unchanged).

e. RawNav.label typed I18nLabel — RIGHT. RawNav is not exported. addItem still writes a plain string (t('engine.appNav.newItem', locale)); no other read of .label remains in the file at head (lines 180, 276, 300 only). The import resolveI18nLabel, type I18nLabel comes from @objectstack/spec/ui, the module AppPreview.tsx:60 already imports from; I18nLabel is a string or an inline locale map (i18n.zod.ts:274-277), and en-US matches the map's INLINE_LOCALE_KEY.

f. Catalogue row engine.appNav.item — RIGHT. en 'Item {n}', zh '导航项 {n}', one line each beside the existing engine.appNav.* rows. tFormat substitutes single-brace holes (i18n.ts:6633-6641), so en renders Item 1, byte-equal to the base template Item ${i + 1}. The carrier note's {{n}} spelling would have rendered Item {1} under that regex; {n} is the convention this table already uses (engine.inspector.widget.untitledN = 'Widget {n}', :397). Same placeholder in both rows (parity); no existing en value changed (drift); the key is read at AppNavCanvas.tsx:182 (keys, dead-keys). Those four gates run inside the Type Check job (ci.yml:515-551), green on the head.

g. Pins — present and live. New file, 7 tests, each rendering AppPreview in design mode inside an I18nProvider so useMetadataLocale answers en-US or zh-CN from the provider language: map-labelled item under en and zh (2); truly-absent label under zh reads the zh row and asserts it differs from the en row (1); zh rename keeps en (1); en rename writes en, not en-US (1); gained entry keeps default, en, zh-TW (1); plain-string control (1). Every pin the triage, the carrier note and the claim asked for is there. The reported ablations (whole-file revert 6 of 7 red; rename write reverted 3 of 7 red; key picker cut to the exact tag 1 of 7 red) attribute each mutation to its pin; read, not re-run.

h. Public surface — none moves. AppNavCanvasProps unchanged; AppPreview untouched; the new props are on unexported components; the designer string tables are package-internal. StudioDesignSurface.tsx is not in the diff (③ c).

② Semver level

.changeset/11128-app-nav-canvas-label-maps.md: '@object-ui/app-shell': patch. @object-ui/app-shell is a released package (publishConfig in its package.json, version 17.6.0). The diff fixes a display defect and a metadata-loss defect and adds one designer-catalogue row; no exported type, prop, schema or accepted set changes, so patch is the right level. Changeset gates on the head: Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Claim Re-read, Changeset Overwrite Report: success.

Clause-②: no — CONFIRMED. The claim and the PR body both say no, and the diff publishes no schema, prop, type or accept-set change.

③ Boundary flags

a. Open question: in the English designer, a map with no English entry gains en-US, not en. Answered: WITHIN the triage. Triage 5896612987 rules "a map with no entry for the designer locale gains one"; the designer locale is en-US (measured at head, useMetadataLocale), and the PR writes exactly that, a key the spec's map admits. Maps that already carry en or en-US are unaffected (limbs 1 and 2). The cost the dev names is real but narrow: for { 'zh-CN': '客户' } renamed in the English designer, a third-language audience (say fr) misses en-US at limb 5 and takes the first entry at limb 6, while every English audience reads en-US at limb 1 or 3; no platform map has that shape today. No ruling is needed to merge. If the seat later prefers that the English designer gain en (the resolver's limb-5 key) rather than its own tag, that is a new ruling and a one-line follow-up, not a blocker. Recommendation A stands.

b. Deviations.

  1. Item {n} rather than Item {{n}}: RIGHT (① f). The carrier note's spelling was illustrative; the row's meaning (index as a hole, en byte-equal, zh added) is met.
  2. Designer key is en-US or zh-CN, not en: measured true at head; the exact-then-base picker is the correct consequence (① d).
  3. Commit trailer: the single commit 9d2fb10d8 ends with Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec and Co-authored-by: Claude, no model name; the PR body ends with the session-URL footer. Process, not contract; no gate on the head reads it. Accepted.
  4. Test scope widened to studio-locale.i18n and studio-design/: not a narrowing; CI ran the whole suite (Test shards 1 to 8, success).
  5. Uncommitted probe placed in studio-design/ and deleted: the PR's 4-file list carries no such file. Clean.

c. Out-of-scope finding, StudioNavItemInspector. REAL at the head: studio-design/StudioDesignSurface.tsx:1464 reads const curLabel = String(node.label ?? node.title ?? node.name ?? '') and :1476 writes patch({ label: e.target.value }). A map label shows as [object Object] in the Label input, and one keystroke replaces the whole map with a plain string; title and name are not nav-item keys. SAME FAMILY as this card (a locale-map nav label read as a string, and a write that replaces the map), and it is rendered beside this very canvas in the Studio app pillar (:2264), so after this PR the canvas keeps the map while the inspector next to it still deletes it. The file is not in this PR's diff and not on the claim's file surface; the dev stopped correctly. CARRIER NEEDED: a sibling card for the seat to file (class a, reach measured by the dev's probe), whose fix should read through resolveI18nLabel and write with the same designer-locale-entry rule as renamedLabel so the two editors agree; dedupe words as the report lists them. Not a blocker for this PR.

d. Check-runs on the head (filter=latest, 43 runs, every one completed before judgment): all success except Test (coverage), Test (coverage shard) and dependabot, which are skipped by the workflow's event guard (the coverage lane is push-only, ci.yml:1205; this is not a dependabot PR). In particular Test (shard 1/8) to Test (shard 8/8), Test, Type Check (which carries the four i18n gates), Lint, Spec Main Shape Gate, Build & E2E, Test (dist pins), the changeset family, Line Citation Gate, Control Byte Scan and Governed Surface Queue Guard: success.

e. Serial. objectui#10862 slice 4 (PR objectui#11134) merged before this branch was cut (claim: read at 9fd6c2c6f); this PR's base is main bf43afafa; no other open PR touches these files per the claim. Nothing to rebase.

Implemented-by: claude/issue-11128-app-nav-canvas-labels
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants