Repository navigation
feat(spec,app-shell)!: review follow-ups of #39207 — a navigation keywords list is never empty, and a cleared menu label keeps the entry's keywords - #39356
Conversation
…el keeps the node's keywords - designModeMenuSave: clearing a translated label drops only `label`; a node that still has keywords keeps them (N4). - translation-contributed-nav-bundle.test: header names the current control (N2). - the nav-keywords-without-label changeset names PlatformTranslationData and ServedTranslationData (N3). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj
📓 Docs Drift CheckThis PR changes 1 package(s): 4 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 185 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 637f7d548bc4cd76ac6d9cdbbba9f109936848fc && git checkout 637f7d548bc4cd76ac6d9cdbbba9f109936848fc
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 37a21511cce303300a518a9124156c7094af8024 5e3ec28e3a9f9717f9ed362f57eff72e401175cc && git checkout -B drift-repro 37a21511cce303300a518a9124156c7094af8024 && git merge --no-ff 5e3ec28e3a9f9717f9ed362f57eff72e401175cc
node scripts/docs-audit/affected-docs.mjs --json 37a21511cce303300a518a9124156c7094af8024
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj
The nav item's `keywords` and the translation node's `keywords` refuse an empty list (`.min(1)`), per the maintainer's ruling on the review nit. Both keys are unreleased; the pending notes now state the final accept set. The objectui types mirror follows. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj
|
Check Changeset is red on purpose here (#18375): this PR corrects two pending release notes it did not add, so it takes no
Neither edit changes a note's package list, bump, Generated by Claude Code |
… own changeset 19.0.0-next.4 shipped both keys, so refusing an empty list narrows a released shape. The consumed pre/ notes go back to main's text. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj
…dger Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXktGqE1JUHFoagYGj
|
Comment 7383201901 is superseded. The Generated by Claude Code |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF L1 delta · 2026-12-03T16:47Z · head
L1: ACCEPT. This is Tier H (a narrowing declaration), handed to the seat for the contract review (fable, or Opus under Bill's 15:42Z rule), |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Contract reviewServed-tier: Full review on the narrowing face ( ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings (all nit, none blocks):
CI on
Implemented-by: Independence: the implementer is VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd 维护者速读
席位核对ACCEPT · head
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Review request: 2026-12-03T16:54Z · |
Requested by Bill · project thread
Fixes #39210
All four review items of #39207: N1 per the maintainer's ruling (decision card, 2026-12-03 14:48Z: refuse an empty list at both doors), N2, N3 and N4.
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none —
skills/**does not teach navigationkeywords(grep overskills/finds no navigation keywords text)Why N1 is a narrowing
@objectstack/spec19.0.0-next.4 (theversion packages (next)cut, 779ff41, on npm since 15:39Z) shipped both keys while this PR was open, and it acceptskeywords: []. Refusing it now narrows a released shape, so N1 carries its own BREAKING changeset and an ADR-0087 ledger entry. The two consumed notes under.changeset/pre/are left as main has them.What changes
keywordslist is never empty:.min(1)with a message that says to leave the key out, on the nav item'snavKeywordsSchema(packages/spec/src/ui/app.zod.ts) and on the translation node'skeywords(packages/spec/src/system/translation.zod.ts). Describes read "at least 1, at most 20". The@object-ui/typesmirror follows (ui/packages/types/src/zod/app.zod.ts).[]joinsREFUSED_KEYWORDSinapp-nav-keywords.test.ts, which holds both doors to the same verdicts.content/docs/references/ui/app.mdxis regenerated.requiredOneOfis untouched, and.min(1)projects asminItems. No writer emits[]: the nav editor omits the key, andmergeNavKeywordsanswersundefined..changeset/39210-nav-keywords-never-empty.md(@objectstack/specminor,@object-ui/typespatch), BREAKING, withadr-0087: registered nav-keywords-empty-list-refused.packages/spec/src/migrations/entries/semantic/19.nav-keywords-empty-list-refused.ts, relevancestack-declares ['apps', 'translations'], pinned insemantic-relevance.test.tsandsemantic-relevance-coverage-38929.test.ts.translation-contributed-nav-bundle.test.tsheader now describes the current control: a node with neitherlabelnorkeywordsis refused at the schema. It used to say a node "still owes its ownlabel, at both layers".PlatformTranslationDataandServedTranslationData(the body ofGET /i18n/translations/:locale).ui/packages/app-shell/src/layout/designModeMenuSave.tswriteMenuTranslation: clearing an entry's translated label used to delete the whole navigation translation node, and this locale'skeywordswent with it. A cleared label now dropslabelonly, and the node stays when it still has keywords. A node left with no keywords is deleted as before. Changeset.changeset/39210-menu-clear-label-keeps-keywords.md(@object-ui/app-shellpatch).Tests
ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-39210.test.ts: a node with keywords loses only its label. CONTROLs: a label-only node (deleted), an empty keywords list (deleted), a set label (keywords kept).@object-ui/typesvitest: 391 files, 10528 tests passed.@objectstack/specfull vitest after N1, before the main merge: 1025 files passed (1 skipped), 30962 tests passed. After the merge:src/migrations6 files, 255 passed.check-adr-0087-registration: 1 declared-breaking changeset, registered, new here.@object-ui/app-shelltype-check clean. eslint clean on the touched app-shell files.Generated by Claude Code