Repository navigation
fix(components)!: NavigationOverlay drops its unused comments prop - #37275
Conversation
The record drawer took a `comments` switch and handed it to its top bar; no caller fills it since the console stopped offering comments in the drawer. RecordTopBar keeps its own `comments` slot, which the record page fills. Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Final green head for L1 and same-head contract review (2026-11-25T10:53Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: Face: narrowing ( ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Landing (2026-11-25T11:02Z): head
State change: ready for review, and auto-merge armed; the merge queue lands it. On MERGED, #36410 closes by |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
席位意见:通过。没有使用方,组件不可通过元数据配置, Hand-off · 2026-11-25T11:14Z · @os-zhuang — PR #37275 (card #36410, item 2) needs your approval. It declares |
Fixes #36410
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill, docs page or README names the NavigationOverlay comments prop; the changeset carries the FROM-TO line
维护者速读
What changes
Item 2 of the card, the last open item (item 1 landed earlier; see the card's release comment).
@object-ui/componentsNavigationOverlaydrops itscommentsprop: theNavigationOverlayProps.commentsdeclaration, its destructure, and the pass-through into the drawer'sRecordTopBar.RecordTopBarkeeps its owncommentsslot. It is still filled by the record page:ui/packages/app-shell/src/views/RecordDetailView.tsxpassescomments={phoneCommentsButton}on the phone bar andcomments={shellActions ? undefined : commentsButton}on the desktop bar..changeset/36410-navigation-overlay-comments-prop.md:@object-ui/componentspatch, BREAKING banner, ADR-0087 dispositionnot-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.comments), and the FROM-TO line, in the shape of the earlierNavigationOverlayProps.maximizableremoval.Premise, measured on
origin/main9171bed before the change: no caller passescommentstoNavigationOverlay. Every render site underui/,examples/,packages/andapps/was read (27 sites, including the e2e harnessui/e2e/toast-under-modal.spec.ts, which passes mode, isOverlay, isOpen, selectedRecord, close, setIsOpen, width, title, onExpand, expandLabel, children). The spread sites spreaduseNavigationOverlay's result (nocommentsin the hook) or ObjectGrid'srecordOverlayShellProps(storageKey, legacyStorageKey, width).Read first
ui/packages/components/src/custom/navigation-overlay.tsx: the three removals and the bar comment.ui/packages/components/src/__tests__/navigation-overlay-bar-26679.test.tsx: the new top-level describe (type pin plus render check)..changeset/36410-navigation-overlay-comments-prop.md: the disposition marker and FROM-TO line.Two-minute check
pnpm --filter @object-ui/components exec vitest run --maxWorkers=2 src/__tests__/navigation-overlay-bar-26679.test.tsx: expect all tests to pass, including "the drawer bar takes no comments switch".Tests
@ts-expect-erroron a partialNavigationOverlayPropsobject carryingcomments(compiled by the package'stsconfig.test.json), and a render check that a straycommentsis not drawn in the bar.record-top-bar-comments-36075.test.tsx: docblock only. It no longer says the drawer hands the switch on.Every reading below is on head
8acc3c0e7.Package test, type-check and pin ablation
pnpm --filter @object-ui/components test(under the verify lock):Test Files 510 passed | 1 skipped (511),Tests 4967 passed | 24 skipped (4991),VERDICT command-exit 0.pnpm --filter @object-ui/components type-check(tsc --noEmit && tsc -p tsconfig.test.json):VERDICT command-exit 0.scripts/ablation-replace.mjs): puttingcomments?: React.ReactNode;back intoNavigationOverlayPropslanded (anchor 1 to 0, blob a7cb247c to dbcac407), andtsc -p tsconfig.test.jsonfailed withnavigation-overlay-bar-26679.test.tsx(129,5): error TS2578: Unused '@ts-expect-error' directive.The file was restored to the HEAD blob a7cb247c, andgit diff HEADwas empty. A first attempt was a no-op: the tool refused it because the replacement text contained its anchor, and no command ran.Dogfood battery (bang title and narrowing arm)
pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood testunder the verify lock, with no shard and no path:Test Files 487 passed | 3 skipped (490),Tests 4128 passed | 68 skipped (4196),VERDICT command-exit 0.Acceptance notes
RecordTopBar.commentsstays, so this is the only published surface that narrows.comments, so no e2e or example text changes.Verification
Derived gates, local subset
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 38 families from the 4-path change set (merge base 9171bed). Each family was run and its exit code captured before any pipe, and all 38 exited 0. Among them:check-adr-0087-registration --base origin/mainverifiednot-required (runtime-export-retired) -- verified: @object-ui/components#NavigationOverlayProps.comments (member, ui/packages/components/src/custom/navigation-overlay.tsx), pluscheck-changeset-no-major,check-empty-changeset,check:type-check-debt,check:type-check-coverage,check:nul-bytesandpnpm --dir ui exec vitest run scripts/(172 files passed). Reconciliation:Run reconciliation — 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN(a derived zero: all 38 recorded an exit code).scripts/pm/overlap-check.mjsbefore each push:VERDICT clean exit 0, and origin/main merges cleanly.test:repoand the repo-wide lint belong to CI.Generated by Claude Code