Repository navigation
feat(app-shell): the command palette finds a nav entry by its old name and shows its group path - #39163
Conversation
…'s locale, the add rule A locale's bundle keywords add to the entry's source-language list, never replace it (seat ruling 7347779833 (a), after ADR-0149 D1). Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
…s and shows its group path Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
…aths Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
…dule scope Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
…lette-old-names Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
…te, under the add rule Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check5 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 183 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 3a39dfc8641c15dc9230e0232f657e5afd37ef00 && git checkout 3a39dfc8641c15dc9230e0232f657e5afd37ef00
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b98173cea88f0cdc9fbe1a80a6bf1214396c1472 841d83d0c4732f8522186ed17c0b2305e62ebfd8 && git checkout -B drift-repro b98173cea88f0cdc9fbe1a80a6bf1214396c1472 && git merge --no-ff 841d83d0c4732f8522186ed17c0b2305e62ebfd8
node scripts/docs-audit/affected-docs.mjs --json b98173cea88f0cdc9fbe1a80a6bf1214396c1472 |
… say they are read and add to the source list; Clause-② is yes (widening) Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head f1dcf4f · 2026-12-02T16:53Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF 2026-12-02T16:50Z · Final green head for L1:
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 658b369 · 2026-12-02T18:21Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Full review of the head on the schema face, PR #39163 for card #39055. Read: the card body and all eight comments (hand-over 7347620600, seat ruling 7347779833, claim 7347895753, amendments 7351926312 and 7353029018, dev reports 7351784443 and 7354224938), the PR body as it stood at 2026-12-02T18:19Z, the 30-file list, the net diff against Check-runs on the head, read 18:26Z: 64 success, 13 skipped, 0 failure, 1 in progress. The one in progress is a second ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1 (should-fix) — the key is graded
N1 (nit) — the served list can exceed the authored cap. Twenty source words plus twenty locale words serve up to forty, while N2 (nit) — two stale statements outside the diff. The mirror's comment at No must-fix. One should-fix, S1, open on this head; it earns a delta review of its fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review — REWORK on
|
…s under it in the palette; name the read kinds Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
…ups included Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF 2026-12-02T19:48Z · Patch-round-2 green head for the contract L2 delta and L1 delta:
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 841d83d · 2026-12-02T19:50Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Delta review of PR #39163 for card #39055: the five commits from Check-runs on the head, read 19:51Z: 65 success, 13 skipped, 0 failure, none in progress. Both ① Derived judgments
② Semver levelThe changeset in the tree: ③ Boundary flags
④ Design judgmentS1: closed
An empty query still matches by the entry's own terms and names nothing. A group with no entries of the six kinds under it finds nothing, which is the truthful answer. N3 (nit) — a group-keyword hit reads as the entry's own former name. The row shows 「运维 › 作业」 with 「原名 旧组名」: the alias is the group's old name, but the hint sits after the entry and says "Formerly". N4 (nit) — group hits are not ranked after direct hits. A query that matches a group label lists every entry under it in navigation order, interleaved with entries matched by their own name. On a large Setup group a short query returns the whole group. Found entries are all correct; ordering is a follow-up. N1 and N2 of the full record stand as recorded there, unchanged by the delta. Tests. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta — ACCEPT on
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF Landing · 2026-12-02T19:54Z · zone osa-setup
|
Requested by Yibo Wang · project thread
Fixes #39055
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
A navigation entry's
keywords(declared by the previous card of this epic) get their reader, under the seat's ruled add rule (seat ruling 7347779833 (a), after ADR-0149 D1: a locale's keywords ADD to the entry's source-language list).translateAppserves the merged list (packages/spec). Each navigation node is served with its ownkeywordsplus the reader's locale's bundleapps.APP.navigation.ID.keywords(the first locale along the chain that lists any), source words first, each once. A node whose bundle lists none is served as before. The merge rule lives in a new internal module,i18n-nav-keywords.ts(mergeNavKeywords), becausei18n-resolver.tsis over 1,000 lines; it is not re-exported from any entry point. The console therefore reads one list and resolves no bundle itself.keywords(ui/packages/app-shell). Every navigation entry kind the palette offers (object, dashboard, page, report, component, url) is matched on its label and machine name first and, only when those miss, on its keywords (paletteNavKeywords.ts#paletteKeywordHit). A keyword hit shows that keyword after the entry: 「原名 X」 in zh, "Formerly X" in en, through a newconsole.commandPalette.formerNamestring in all eleven console locales. A keyword hit is an entry found, so the "create as" rule is unchanged: such a query offers no create row.groupis not itself a palette entry, but a query matching its label or itskeywords(a renamed group's old name) lists the visible entries under it, at any depth, each with its group path; when only the group's keyword matched, each row names that keyword (「原名 X」). The entry's own terms and keywords come first (paletteNavKeywords.ts#paletteNavEntryHit). Anactionordocentry acceptskeywordsbut nothing reads them yet (Navigation keywords on action and doc entries are accepted but nothing reads them (#39050) #39168); the describe inapp.zod.ts, its jsdoc, the liveness row andcontent/docs/ui/apps.mdxname the read kinds.appReportIndex.tsgainsflattenNavigationWithGroups(each entry with the groups above it, outermost first);flattenNavigationis now that walk without the paths, so the report index reads the same navigation as before. The palette row (PaletteNavEntryText.tsx) draws the path muted before the label: 「人员与组织 › 业务单元」; a top-level entry shows its label alone.navigation.children.keywordsinpackages/spec/liveness/app.jsonflipsplannedtolive, citingtranslateApp,mergeNavKeywords,CommandPaletteandpaletteKeywordHit; the[PLANNED — not yet read]marker leaves thekeywordsdescribe inapp.zod.ts(and its jsdoc's "Planned, not yet read" section is rewritten);content/docs/references/ui/app.mdxandliveness/state-counts/app.mdare regenerated (check:generated --fix, the two it proved stale).content/docs/ui/apps.mdxloses its "planned" wording for the key, which this change made false.Read first, by risk:
packages/spec/src/system/i18n-resolver.ts, thetranslateApphunk: the keywords leg readscatalogs.unchangedfor every node (see Acceptance notes on ADR-0146 D2).ui/packages/app-shell/src/chrome/CommandPalette.tsx, thematchesNav/navKeywordHitshunk and the five render sites.ui/packages/app-shell/src/views/appReportIndex.ts,flattenNavigationWithGroups: the report index still callsflattenNavigation.Two-minute verification:
pnpm --dir ui exec vitest run packages/app-shell/src/chrome/CommandPalette.navKeywords-39055.test.tsx(afterpnpm --filter @objectstack/spec build): 15 passed, including 岗位持有人 finding 「人员与组织 › 岗位成员」 with 「原名 岗位持有人」.Tests
New pins, run on fixture apps only (Setup's own navigation data and locale packs are #39057's):
packages/spec/src/system/i18n-resolver.nav-keywords.test.ts(6): zh-CN adds the locale's words after the source words, each once; an entry with no source words gets the locale's; en serves no zh-only word and keeps the source words; the first locale along the chain is the one added; a group node takes keywords the same way; the input is not mutated.ui/packages/app-shell/src/chrome/CommandPalette.navKeywords-39055.test.tsx(15), the fixture app put through the realtranslateAppper locale: 岗位持有人 finds 岗位成员 with 「原名 岗位持有人」; 部门 finds 业务单元; a label hit names no keyword; a zh keyword matches in zh; a source keyword matches in zh and in en; a zh-only keyword does not match in en; every navigation result shows its group path (nested groups outermost first, top-level alone, zh paths in zh); a keyword hit offers no "create as" row, and words that find nothing still do; a group keyword 旧组名 lists the group's two visible entries with 「原名 旧组名」 in zh and "Formerly 旧组名" in en, the group's label lists them with no hint, an entry hidden from the member (requiredPermissions) is not listed, and a group-keyword hit offers no create row.CommandPalette.setupPages-39038.test.tsx(expected texts read 「分组 › 页面」 through anat()helper),CommandPalette.navMatch-11812.test.tsx(expected texts gain their group; the file now loads@object-ui/plugin-detailat module scope, whichcheck:test-source-aliasasks of an edited test that reaches the preview pane),packages/spec/src/ui/app-nav-keywords.test.ts(the key is nowliveand its describe carries no planned marker).Ablations (each mutation landed through scripts/ablation-replace.mjs, restored, git diff HEAD empty after)
translateAppkeywords leg deleted (anchorif (keywords) next.keywords = keywords;, blob 712b7ade to eb9b2298):i18n-resolver.nav-keywords.test.ts4 failed / 2 passed.mergeNavKeywordsreturns the locale list alone, blob dc922afa to f85b3cd0): 1 failed / 5 passed (the source-first merge pin).paletteKeywordHit, blob f30c14ed to ed24d032):CommandPalette.navKeywords-39055.test.tsx5 failed / 6 passed (both old-name hits, zh keyword, source keyword in zh and en, the create-as pin).appReportIndex.ts, blob 6bebaa18 to 49fb5d16): 8 failed / 3 passed (every path assertion).paletteNavEntryHitwalks no group, blob ef384e9e to 33c19d87): 5 failed / 10 passed (all four group pins, and thempath pin that lists the group "More"'s entry).The spec pins import
./i18n-resolverfrom source; the palette pins importCommandPalettefrom source, so A3 and A4 needed no build.Local runs (tree 798fea9 for tests; gates as noted)
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2overi18n-resolver.nav-keywords,i18n-resolver,i18n-resolver.nav-label-identity,app-nav-keywords: 4 files, 598 passed.pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/chrome/ packages/app-shell/src/views/__tests__/ packages/i18n/: 256 files, 3065 passed, 13 skipped.src/__tests__/,navEntryDataSource-13029,AppHeader.searchTriggerNeedsPalette-11912,openPathObjectReaders-12811,StudioPaletteGroups.surfaceScope-36900,adr0054-ratchet,dialogViewportGutterCensus-12603): 288 files, 3621 passed, 13 skipped.pnpm --dir ui exec vitest run scripts/: 172 files, 5159 passed.@object-ui/app-shell type-check(both projects, tests included) exit 0;@object-ui/i18n type-checkand@objectstack/spec typecheckexit 0.pnpm --filter @objectstack/spec check:generatedafter the merge of origin/main b706ec6: all 14 artifacts up to date.dispatch-gates.mjs --commands, 119): reconciled with--ranas 116 run with exit 0, 3 NOT MEASURED:check-plugin-teardown-shape.mjs --self-test(its positive control is pinned to a commit this shallow clone cannot reach; same exit 3 on an untouched main checkout),check:skill-examplesandcheck:dual-build-cjs-loads(PREREQUISITE NOT MET: noclient-reactdist, and no dist for 35 packages, since no full build ran here). Most of the 119 ran before the origin/main merge; the spec gates, ratchets and changeset gates were rerun on 798fea9, the docs gates on f1dcf4f.check:new-line-citations: 0 new.check-platform-checklist.mjs --changed-from origin/main: 0 anchors lost.Acceptance notes
ui/packages/app-shell/src/chrome/(paletteNavKeywords.ts,PaletteNavEntryText.tsx) and one underpackages/spec/src/system/(i18n-nav-keywords.ts), becauseCommandPalette.tsxandi18n-resolver.tsare over 1,000 lines and a new concern goes to a sibling module; the eleven console locale files underui/packages/i18n/src/locales/for the 「原名」 string;packages/spec/src/ui/app-nav-keywords.test.ts, which pinned theplannedgrade this card flips; the two regenerated artifacts; and the two stale sentences incontent/docs/ui/apps.mdx. Inapp.zod.tsonly the marker, the false "until it ships, nothing reads the key" clause and the jsdoc's "Planned" section changed.mergeNavKeywordsis not re-exported from any@objectstack/specentry, andflattenNavigationWithGroupsand the palette helpers are not in@object-ui/app-shell's index; no spec accept set changes. The one widening is the newconsole.commandPalette.formerNamekey in the eleven published@object-ui/i18nlocale packs, henceClause-②: yes (widening).Metadata-protocol: none: no key, value or default a metadata author writes changed; the key gains its reader with the add rule the seat ruled.i18n-nav-keywords.ts.keywordsdescribe and jsdoc insystem/translation.zod.tsand theappsrow note onliveness/translation.jsonnow say the key is read bytranslateAppand that a locale's list adds to the source list; text only, no schema change, and the node'slabelstays required (A translation bundle can give a navigation entry its keywords without pinning its label (#39050) #39146).@object-ui/types'NavigationEntryIteminterface declares nokeywordsthough its zod mirror does, so a TypeScript literal typed as a nav item refuses the key at compile time (loud, not silent); the palette reads it off the flattened entry (carrier: Setup's and Studio's navigation editors let an admin edit an entry's search keywords (#39050) #39147, the editor input card, which will need the type).designModeMenuSave.ts) and Studio's nav rail (servedNavText.ts) write from the stored (/layers) document and use the served one for display only, so a served merged list is not written back as source words. No test here exercises that path.Verification
Draft until the seat's review. Under 3,000 changed lines (849 + / 123 - against origin/main, head 841d83d). Ships in the same release as #39057.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF