Repository navigation
feat(spec): a navigation item declares search aliases, keywords, per locale (#39052) - #39125
Conversation
…locale (#39052) A navigation item (every variant but separator) accepts an optional `keywords: string[]`, and a translation bundle's navigation node accepts the same key beside `label`, so a renamed Setup page is still found by its old name. Unknown keys stay refused in both places; `aliases` and `synonyms` are pointed at `keywords`. The key is `planned` on the liveness ledger, read by the command palette card #39055. The contribution `group` example names `group_integrations_dev`. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
objectui's NavigationItemObject strips unknown keys, so the spec's new nav base key `keywords` would have been dropped by `objectui validate`, and the doc arm's key set no longer matched the spec's (navigation-spec-parity). One declared key; no objectui reader yet. Claim amendment 7342983899. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 26 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 4 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. 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 68efb84f69770c609031217ab21d3e37f68b573c && git checkout 68efb84f69770c609031217ab21d3e37f68b573c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395 44e94e43c8287f81c4c2898e9de03881e4478170 && git checkout -B drift-repro f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395 && git merge --no-ff 44e94e43c8287f81c4c2898e9de03881e4478170
node scripts/docs-audit/affected-docs.mjs --json f6b008e8aed613b51c99b9fad3ef0cbf3f9ae395
|
check:doc-authoring refuses an internal issue id in customer-facing `.describe()` prose; the palette reference moves to the docblocks. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
…39052) `keywords` joins NAV_ENTRY_BASE_KEYS, the describing keys a retype keeps and the nav editors count as declared on every non-separator member, and the 11790 test fixture carries a value for it. Claim amendments on #39052. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
#39092 moved nav_system_overview from setup-nav.contributions.ts into setup.app.ts, pinned above the groups, so the dashboards checklist anchor read ABSENT SYMBOL in check:platform-checklist's full mode. Repointed, with the two steps' prose. Claim amendment 7344320317. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfhZDUp9rF94Nz3frb Contract reviewServed-tier: Inputs read: card #39052 (body, the first touch, Claim 7339233623 and its four amendments 7342983899, 7343994902, 7344032990, 7344320317), the epic's ruling comment 7336749035 on #39050 (D1 to D4), PR #39125 (body, 18-file list, net diff against Check-runs on the head were read three times, the last two at 12:09Z and 12:11Z; the state at close is the last bullet of ①. ① Derived judgments
② Semver levelRight. The declarations are ③ Boundary flags
④ Design judgment
Holds: the key's name and the reason for it (the S1 (should-fix) — S2 (should-fix) — the value rule admits what its own sentence refuses. The changeset and the tests say "an empty string is refused", and
Holds: one shape, both doors; the alias spellings mirror the nav item's; the describe carries the planned marker. N1 (nit) — the node still requires N2 (nit) — the jsdoc gives the replace rule and does not say that it departs from Implementing files.
Outside ④: tests, the changeset text, generated output, Open on this head: S1, S2. No must-fix. A delta review of the fix is owed; N1 to N4 can be left as accepted deviations or ride the same fix commit. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review — REWORK on
|
…names both keys (#39052) L2 S1: on a `group`, `aliases` can also mean the retired group ids of `renamedFrom`, so it is answered with a prescription naming both keys; the bare rename to `keywords` stays on the other eight branches. L2 S2: a keyword is one trimmed, non-empty word or phrase of at most 60 characters, at most 20 per entry, at the nav item, the translation node and the objectui mirror alike (ADR-0149 D1's synonym rule); the test holds both spec doors to the same verdicts. The translation node's jsdoc leaves replace-or-add to the reader (#39055) and says why it is per-locale unlike dataset synonyms; the ledger note no longer says the mirror lacks the key. Claude-Session: https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfhZDUp9rF94Nz3frb Contract reviewServed-tier: Delta review of the fix to record 7344994866 (head ① Derived judgments
② Semver levelUnchanged and right: ③ Boundary flags
④ Design judgmentS1: closed. On a S2: closed. The accept set now refuses what the stated intent refuses, at both spec doors, with messages that say what to write. Refused rather than trimmed, as the precedent does. N2: closed. The translation node's jsdoc names the departure from dataset synonyms and its reason. N3: closed. The N4: closed. The mirror restates the rule; its comment says so. N1: left as stated, an accepted deviation for #39055: the translation node still requires Tried against the fix, nothing graded:
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_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #39125 @
落地
State change: ready for review + auto-merge, by the owning seat; on merge it closes #39052. |
Requested by Yibo Wang · project thread
Fixes #39052
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — the key is
planned(nothing reads it until the command palette #39055 ships), so no skill teaches it yet; the reference iscontent/docs/ui/apps.mdx(updated here)Branch:
claude/project-thread-0cmqba, restarted frommainat cef9a80 after #39092 (PR 1 of this thread) merged.维护者速读
keywords: string[](spec 加宽),用于搜索别名,例如改名后的旧名;separator 不接受。apps.<app>.navigation.<id>.keywords按语言给出别名,和label同一个 id;未知键在两处仍然拒绝。keywords而不是aliases(AI 契约里aliases是退役键改名表);aliases/synonyms会提示“是否想写keywords”。planned,消费方是命令面板卡 Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055,不对作者告警;贡献group的示例改为新分组group_integrations_dev。What changes
packages/spec/src/ui/app.zod.tskeywordson the shared nav base, besidelabel, so the nine branches that spread it carry it. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, at most 20 per entry, refused rather than trimmed (the dataset synonym's rule, ADR-0149 D1). The describe starts[PLANNED — not yet read].synonyms,searchTermsandsearchKeywordspoint atkeywordson every branch;aliasesdoes too, except on agroup, which answers it with a prescription naming both keys it can mean there (keywords, orrenamedFromfor retired group ids).keywords, so a separator refuses it with "not a separator key", not a rename.groupdescribe and@examplenamegroup_integrations_dev(ruling D1) instead of the retiredgroup_integrations.packages/spec/src/system/translation.zod.ts: the navigation node acceptskeywordsbesidelabel, under the same value rule, with the four alias spellings. The node still owes itslabel. The shape is shared, so both translation doors (file bundle and registeredtranslationitem) take it.liveness/app.json→navigation.children.keywordsisplanned, consumer Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055 (read pointsCommandPalette.tsxandappReportIndex.ts#flattenNavigation),authorWarnoff.liveness/translation.json'sappsrow (not drilled below the record value) gets a sentence pointing at that row.check:generated --fix:content/docs/references/ui/app.mdx,packages/spec/docs/references/**,authorable-surface/ui.json,liveness/state-counts/app.md.content/docs/ui/apps.mdxaddskeywordsto the common-properties table and one sentence on the per-locale bundle entry.ui/packages/types/src/zod/app.zod.tsdeclareskeywordson its nav mirror, soobjectui validatekeeps the key instead of stripping it (navigation-spec-parity.test.tsholds the doc arm to the spec's keys).ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.tsaddskeywordstoNAV_ENTRY_BASE_KEYS, so a change of entry type keeps it; the 11790 test fixture carries a value for it.docs/qa/platform-checklist/areas/dashboards.jsoncitedsetup-nav.contributions.ts#nav_system_overview, which feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) #39092 moved intosetup.app.ts; repointed, with the two steps' prose.check:platform-checklistin full mode was red onmainsince feat(setup): ten Setup group anchors; a nav group's renamedFrom keeps retired ids working (#39053) #39092 (the PR lane runs it scoped).@objectstack/specminor,@object-ui/typesand@object-ui/app-shellpatch.Tests
packages/spec/src/ui/app-nav-keywords.test.ts(new, 38 cases):keywords, and still parses without it;AppSchema), nested under a group, and a navigation contribution item;keywordson every branch;TranslationDatatype; the node still oweslabel, an unknown key is still refused, and an empty alias is refused;planned, names Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055, and has noauthorWarn;groupdescribe namesgroup_integrations_dev, notgroup_integrations.Acceptance notes
navigation.children.keywords, consumer Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055.groupexample uses a new id, and the generated artifacts are rebuilt (check:generatedgreen after--fix).keywordsinput yet; that belongs to the cards that author or read the key (Platform-owned Setup items sit in their new groups under the new names; every old name stays searchable (#39050) #39057, Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055).keywordsis left to the reader, Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055;translateAppswaps onlylabeltoday, so Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055 either resolves the bundle entry itself or adds that leg.Verification
packages/specvitest run src/ui src/system src/shared: 321 files, 10808 tests, green (new file 41).uipackages/types/pluspackages/app-shell/.../inspectors/: 13847 pass, 1 skipped.check:test-typecheckclean;check:generatedgreen after--fix;check:doc-authoringgreen.node scripts/pm/dispatch-gates.mjs --ranon head 44e94e4: 123 derived, 123 run, 0 not-measured, all exit 0, in one full run afterpnpm build.CONTRACT_REVIEW_TIER7344994866 (PASS, S1/S2 should-fix) and delta 7345414177 (PASS, S1/S2 closed); L1 7345119048 (REWORK) and delta 7346207294 (ACCEPT).🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzfhZDUp9rF94Nz3frb