Repository navigation
feat(app-shell): the command palette offers doc and action navigation entries, with Enter guards (#39168) - #39277
Conversation
…9168) Doc hits are offered when the sidebar would draw them and open its address; action hits are drawn in their own group after the navigation hits, carry a runs marker, and run through the sidebar's useNavActionDispatch, which asks a palette-added confirm when the action declares none. The keywords describe and its liveness row name all eight kinds as read. Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
… confirm door (#39168) Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 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 839d9955fc72109c3ebbc7b8c6245c56ee0a29a8 && git checkout 839d9955fc72109c3ebbc7b8c6245c56ee0a29a8
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ee2be20078ad7a4e6984cf916fa31028476095c5 ea5063b9e0a4c81b7378e0fd290cb259f8ee9b9f && git checkout -B drift-repro ee2be20078ad7a4e6984cf916fa31028476095c5 && git merge --no-ff ea5063b9e0a4c81b7378e0fd290cb259f8ee9b9f
node scripts/docs-audit/affected-docs.mjs --json ee2be20078ad7a4e6984cf916fa31028476095c5 |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head 5164553 · 2026-12-03T07:02Z |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract reviewServed-tier: Read: card #39168 body and all 8 comments, PR #39277 body and file list (22 files), the net diff against Check-runs on this head are not final. At render time: 17 success, 11 skipped, 26 in progress, 0 failed.
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentDoc hits — hold.
Action hits, one runner — hold.
Guard 1 — holds in code.
Guard 3 — holds. Each action row has a visible bordered "Runs" tag, and the footer reads "Run". Guard 4 — holds as worded. Objects, Dashboards, Pages (with component, url and doc entries) and Reports are all drawn before the action group. cmdk's own sort is off ( No Guard 2 — own group: yes. "After the navigation hits": see S1. S1 (should-fix) — the action group is not after every navigation result, though the tree says it is.
S2 (should-fix) — the ruled focus-on-Cancel property is proven only in jsdom.
Break attempts, read in the tree at this head.
Security.
Implemented-by: VERDICT: PASS |
… name the eight leaf kinds (#39168) The action group now follows the app-switch group and the Studio groups, so a query that finds an app and a menu action ranks the app first (contract review S1). The keywords describe says "the eight leaf kinds", group being the ninth kind that carries the key (review nit N1); app.mdx regenerated. Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract reviewServed-tier: Delta review of the fix round, from the head of my earlier record ( Check-runs on this head: 63 success, 13 skipped, 0 failed, 2 in progress. The two still running are "Check Changeset" and "PR-body guards", both re-triggered after the PR body edit. Every build, lint, type-check, test and E2E run is green. The merge is clean. Between the old head and the merge commit, the only in-scope file that differs is ① Derived judgments
② Semver levelUnchanged and still right: three ③ Boundary flags
④ Design judgmentS1 is closed.
S2 is closed.
Guards 1–4, no No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39277 (#39168, epic #39050) · head 席位核对ACCEPT · repo:objectstack@os-justin · head
|
Fixes #39168
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ui/packages/app-shell/src/chrome/CommandPalette.tsx: the palette offersdocentries in the Pages group, matched on label,doc/bookname,keywordsand group; only when the sidebar'suseNavDocTargetCheckwould draw them (asked only while the palette is open), openingresolveHref's address, as the sidebar row does. It collectsactionentries matched on label,actionDef.actionName,keywordsand group, and hands them to the new module below.ui/packages/app-shell/src/chrome/PaletteNavActions.tsx(new;CommandPalette.tsxis over 1,000 lines, so the new sub-flow lives in a sibling module): the "Run an action" group, drawn after every place the palette goes to: the app's entries and reports, a Studio page's groups, the Studio's lists and "Switch App". Only commands (theme, create, full search) follow it; each row carries a "Runs" marker; picking a row closes the palette and calls the sidebar's ownuseNavActionDispatchfor the app's package.ui/packages/app-shell/src/hooks/useNavActionDispatch.ts: an optional second argument,confirmUndeclared. When given and the resolved action has noconfirmText(absent or empty, the runner's own reading), the dispatch carries the palette's question asconfirmText, so the runner asks it in its own confirm dialog (Radix AlertDialog, initial focus on Cancel). A declaredconfirmTextis kept unchanged. The sidebar passes no options; its path is unchanged.ui/packages/app-shell/src/chrome/PaletteEnterHint.tsx: the footer reads "Run" on an action row instead of "Open".ui/packages/i18n/src/locales/*.ts: fourconsole.commandPalette.*keys (navActions,runsMarker,runActionConfirm,enterRun) in all eleven packs (all-locales-key-parity.test.tsrequires every pack).packages/spec/src/ui/app.zod.ts: only thekeywordsdescribe and its TSDoc onBaseNavItemSchema. They now name the eight leaf kinds as read, and a group as read through the entries under it.packages/spec/liveness/app.jsonnavigation.children.keywordssays the same.content/docs/references/ui/app.mdxis regenerated (gen:docs).>prefix mode.Carried nits:
paletteNavEntryHitto report which group matched andPaletteNavEntryTextto say so. Both files are outside this card's surface.Tests
All readings are on head ea5063b.
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ui/app-nav-keywords.test.ts: 61 passed.useNavActionDispatch+ i18n suites,vitest run --maxWorkers=2: 143 files, 2127 passed, 13 skipped.@object-ui/i18nand@object-ui/app-shell: 0 errors.pnpm --dir ui exec vitest run scripts/: 172 files passed (2 skipped), 5161 tests passed.dispatch-gates --ran: 117 derived, 117 run, 0 NOT-MEASURED (each with an exit code, none 3).Acceptance notes
liveness/app.json, nottranslation.json, which has no such row;CommandPalette.tsxis over 1,000 lines;PaletteEnterHint.tsx, because the footer would otherwise read "Open" on a row that runs something.Verification
PaletteNavActions.tsx, theconfirmUndeclaredhunk inuseNavActionDispatch.ts, and theaddressItemsandnavActionItemshunk inCommandPalette.tsx.examples/app-showcase/src/ui/apps/index.ts: anactionentry 'Open Showcase Docs' (showcase_open_docs, a url action with no declared confirm) and adocentry 'Showcase Guide' (showcase_manual/showcase_docs_guide). The probe was reverted afterwards (git diff HEADempty). Boot:objectstack dev --seed-admin -p 4317 -d file:SCRATCH/data.dbin examples/app-showcase, thenDEV_PROXY_TARGET=http://localhost:4317 pnpm --filter @object-ui/console dev --port 5187 --strictPort.nav-action Open Showcase Docs showcase_open_docs nav_probe_open_docs, under 'Run an action', selected, with the marker 'Runs'.document.activeElementis the BUTTON 'Cancel' inside the dialog.window.opencalls [], no new page, no /api request, and the only navigation is the palette dropping its?palette=1query.window.opencalls ['https://objectstack.ai'], so the Cancel reading is not vacuous.File surface: the four files outside the original claim (
packages/spec/liveness/app.json, the eight other locale packs,PaletteNavActions.tsx,PaletteEnterHint.tsx) are granted by the claim amendment on #39168. The push was made by the seat after the maintainer's approval in the seat session, because the dev's chained push command was refused by the auto-mode classifier. Fix round: merged origin/main dabe860 (merge 8c2fa6c, clean; overlap-check clean against #39281 and #39063). The dev pushed ea5063b with a plaingit push.🤖 Generated with Claude Code