Skip to content

fix(components)!: NavigationOverlay drops its unused comments prop - #37275

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-36410-overlay-comments-slot
Nov 25, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-36410-overlay-comments-slot

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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/components NavigationOverlay drops its comments prop: the NavigationOverlayProps.comments declaration, its destructure, and the pass-through into the drawer's RecordTopBar.
  • RecordTopBar keeps its own comments slot. It is still filled by the record page: ui/packages/app-shell/src/views/RecordDetailView.tsx passes comments={phoneCommentsButton} on the phone bar and comments={shellActions ? undefined : commentsButton} on the desktop bar.
  • Changeset .changeset/36410-navigation-overlay-comments-prop.md: @object-ui/components patch, BREAKING banner, ADR-0087 disposition not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.comments), and the FROM-TO line, in the shape of the earlier NavigationOverlayProps.maximizable removal.

Premise, measured on origin/main 9171bed before the change: no caller passes comments to NavigationOverlay. Every render site under ui/, examples/, packages/ and apps/ was read (27 sites, including the e2e harness ui/e2e/toast-under-modal.spec.ts, which passes mode, isOverlay, isOpen, selectedRecord, close, setIsOpen, width, title, onExpand, expandLabel, children). The spread sites spread useNavigationOverlay's result (no comments in the hook) or ObjectGrid's recordOverlayShellProps (storageKey, legacyStorageKey, width).

Read first

  1. ui/packages/components/src/custom/navigation-overlay.tsx: the three removals and the bar comment.
  2. ui/packages/components/src/__tests__/navigation-overlay-bar-26679.test.tsx: the new top-level describe (type pin plus render check).
  3. .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

  • The pin goes into the existing drawer bar harness: a @ts-expect-error on a partial NavigationOverlayProps object carrying comments (compiled by the package's tsconfig.test.json), and a render check that a stray comments is 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.
  • Ablation of the type pin (one-time, through scripts/ablation-replace.mjs): putting comments?: React.ReactNode; back into NavigationOverlayProps landed (anchor 1 to 0, blob a7cb247c to dbcac407), and tsc -p tsconfig.test.json failed with navigation-overlay-bar-26679.test.tsx(129,5): error TS2578: Unused '@ts-expect-error' directive. The file was restored to the HEAD blob a7cb247c, and git diff HEAD was 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 test under 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.comments stays, so this is the only published surface that narrows.
  • The e2e harness and the examples pass no comments, so no e2e or example text changes.

Verification

Derived gates, local subset

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 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/main verified not-required (runtime-export-retired) -- verified: @object-ui/components#NavigationOverlayProps.comments (member, ui/packages/components/src/custom/navigation-overlay.tsx), plus check-changeset-no-major, check-empty-changeset, check:type-check-debt, check:type-check-coverage, check:nul-bytes and pnpm --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.mjs before each push: VERDICT clean exit 0, and origin/main merges cleanly. test:repo and the repo-wide lint belong to CI.


Generated by Claude Code

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>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for L1 and same-head contract review (2026-11-25T10:53Z): 8acc3c0e7f9c37c9145aa2bca36e55cf48d37c21.

  • Checks at this head: 45 success, 13 expected skips, 0 failed, 0 pending. mergeable_state: clean.
  • Size: 4 files; no governed path; Fixes #36410, since item 2 is the card's last open item (item 1 landed in fix(plugin-audit, plugin-detail): a comment notification opens the comments at that comment #36878). Clause-②: yes (narrowing), Metadata-protocol: none.
  • What it does: @object-ui/components NavigationOverlay no longer declares, destructures or passes on its comments prop. The premise was measured: none of the 27 render sites under ui/, examples/, packages/ and apps/ passes it. RecordTopBar's own comments slot is kept, because RecordDetailView still fills it on the phone and the desktop page bar.
  • Changeset: written like the NavigationOverlayProps.maximizable removal. It carries a patch level, a BREAKING banner, the ADR-0087 not-required (runtime-export-retired) @object-ui/components#NavigationOverlayProps.comments marker (which check-adr-0087-registration verified) and one FROM-TO line.
  • Evidence:
    • Type pin: an @ts-expect-error pin plus a render check. Putting the prop back fails tsc -p tsconfig.test.json with TS2578, and the file was restored to the HEAD blob.
    • Tests: components 4967 passed; type-check exit 0.
    • Gates: 38 of 38 derived exit 0.
    • Dogfood battery: green.
  • Deviation: the first push was refused by the pre-push hook for a card-reference line in the commit message. The unpushed commit was reworded and pushed through the overlap gate; no override was used. The seat accepted this.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8acc3c0e7f9c37c9145aa2bca36e55cf48d37c21
Local-runs: probe — re-ran the type pin's revert in a throwaway worktree (tsc -p tsconfig.test.json in ui/packages/components, at head and with comments?: React.ReactNode; put back), because the brief asked for the TS2578 reading to be reproduced
Scope: .changeset/36410-navigation-overlay-comments-prop.md, ui/packages/components/src/custom/navigation-overlay.tsx, ui/packages/components/src/tests/navigation-overlay-bar-26679.test.tsx, ui/packages/components/src/tests/record-top-bar-comments-36075.test.tsx + ui/packages/components/src/custom/record-top-bar.tsx, ui/packages/app-shell/src/views/RecordDetailView.tsx, packages/spec/src/ui/view.zod.ts, scripts/check-adr-0087-registration.mjs, docs/adr/0087 (read in the cited code, outside the diff)

Face: narrowing (record-recognisers --template --paths refused the four paths as deciding no face and pointed at the changeset's Clause-②: yes (narrowing) line; --face narrowing maps to this tier).

① Derived judgments

  • Zero consumers holds. A scan of every NavigationOverlay opening tag at head finds 30 JSX sites and one h(NavigationOverlay, …) in ui/e2e/toast-under-modal.spec.ts; none names comments. All sites are under ui/; examples/, apps/, packages/ (outside CHANGELOG and spec jsdoc prose) and skills/ render none.
  • The spread sites carry no comments: useNavigationOverlay.ts has no such word, ObjectGrid's recordOverlayShellProps is storageKey, legacyStorageKey, width, and the test harnesses spread a Partial of the props type, which the compiler now checks.
  • NavigationOverlay has no rest spread, so a stray comments from an untyped host is dropped and reaches no DOM node.
  • No authorable path: NavigationOverlay is exported from custom/index.ts and registered as no node type; NavigationConfigSchema (packages/spec/src/ui/view.zod.ts) is a strict object with no comments key. A metadata author cannot set it, so Metadata-protocol: none is true and no narrowing of the metadata protocol happens.
  • No skill, docs page or README names the drawer's comments prop (the plugin-detail README example passes none). Skills-docs: none is true.
  • History agrees with the prose: the prop came in with feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114 (card 评论(一)电脑:评论从「动态」页签拿出来,做成记录页和抽屉右侧的独立评论栏;对一条评论的操作收到一处 #36075) and its only caller left with feat(record-page): the side preview drops the comments icon and panel; a record's comments are on its full page #36406 (8466fcad2e0).
  • Type pin: at head the test project compiles the pin file clean; with the declaration put back (blob a7cb247c to dbcac407, the same pair the dev reports) it fails with navigation-overlay-bar-26679.test.tsx(129,5): error TS2578: Unused '@ts-expect-error' directive. File restored to a7cb247c, worktree removed. The only other line in both runs is an environment one (../cli/src/commands/generate.ts cannot find chalk, from the borrowed node_modules).
  • Check-runs on the head: 45 success, 13 skipped, 0 failed, including Check Changeset, Type Check UI, Test UI 1 to 16, Dogfood Regression Gate and Governed Surface Queue Guard.
  • K = 8 against origin/main f9fda2a4f84; merge base 9171bed0a65. git merge-tree --write-tree is clean (tree bf9dab19832). Main's eight commits touch use-horizontal-overflow.ts and two other test files in the package, and none of the four paths.

② Semver level

  • @object-ui/components: patch is right: AGENTS.md gives patch to a Metadata-protocol: none change, breaking or not, with the BREAKING banner and ADR-0087 disposition kept. The maximizable precedent (.changeset/35854-one-way-to-open-a-record.md, feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910) was minor only because that changeset also declared Metadata-protocol: semantic.
  • runtime-export-retired is the right category. It is in the gate's category list (scripts/check-adr-0087-registration.mjs), ADR-0087 documents the PACKAGE#Type.member operand form used here, and it stays open on a declared narrowing where no-migration-prescription is refused. The marker's wording matches the precedent word for word apart from the operand.

③ Boundary flags

  • Dev flag, pre-push hook refused a commit message with a card-number line and the commit was reworded: the pushed commit has no such line and CI's PR-body guards pass. Whether a bypass was used cannot be read from the remote; nothing contradicts the note.
  • SQL push-down: not applicable, no data path in the diff.
  • No open_questions entry.

④ Design judgment

  • The narrowing takes away a capability no consumer in the tree uses and that the product already withdrew (feat(record-page): the side preview drops the comments icon and panel; a record's comments are on its full page #36406). RecordTopBar.comments stays and is filled at RecordDetailView.tsx:5935 (phone) and :5948 (desktop), as the changeset says.
  • Changeset, sentence by sentence: the banner, the history sentence, the "RecordTopBar keeps its own slot" sentence and the FROM-TO line are each true against the code. The fix (delete comments; the full page's bar draws the switch) is the complete migration for a typed host.
  • 维护者速读: all four lines are true. "用户无感" holds because no caller fills the slot; "编译报错" holds for a typed host (an untyped one has the prop dropped silently, which the BREAKING banner covers); "可直接撤回" holds, the diff is three removals.
  • N1 — The PR body says 27 render sites; the scan finds 31 (30 JSX, one h()), plus a docblock example at navigation-overlay.tsx:63. The count is off; the zero is not.
  • N2 — The FROM-TO fix names the product answer only. A host that still wants its own switch in the drawer has the surviving toggles slot; leaving it unnamed follows the feat(record-page): the side preview drops the comments icon and panel; a record's comments are on its full page #36406 ruling.
  • N3 — The render half of the new test was not re-run here (vitest could not start in the throwaway worktree). By reading, it goes red on a full revert: renderBar spreads its props and the old code handed comments to RecordTopBar, which draws it. CI's Test UI passed at this head.

Implemented-by: claude/issue-36410-overlay-comments-slot
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 8acc3c0e7f9c37c9145aa2bca36e55cf48d37c21 · 2026-11-25T11:01Z

  • Card Comment notification opens the record page but not the comment; NavigationOverlay keeps a dead comments slot #36410 item 2 (item 1 landed in fix(plugin-audit, plugin-detail): a comment notification opens the comments at that comment #36878): NavigationOverlay in @object-ui/components loses its comments prop. Four files, +35/-11: the changeset, the component, one new pin test, one docblock.
  • Zero consumers confirmed at head: 30 JSX sites and one h() call in the e2e harness, none passing comments; the spread sources (useNavigationOverlay, ObjectGrid's recordOverlayShellProps) carry none. Nothing in examples/, apps/, packages/, skills/ or content/docs/ renders or documents it.
  • Not authorable: the component is registered as no node type and NavigationConfigSchema is a strict object without comments, so Metadata-protocol: none and patch are right.
  • ADR-0087 disposition not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.comments) is a listed gate category in the documented Type.member form, and matches the maximizable precedent (.changeset/35854-one-way-to-open-a-record.md, feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910).
  • FROM-TO line is true and complete: RecordTopBar.comments stays and RecordDetailView.tsx fills it at :5935 (phone) and :5948 (desktop). The changeset and 维护者速读 read true line by line.
  • Type pin reproduced: with comments?: React.ReactNode; put back, tsc -p tsconfig.test.json fails with navigation-overlay-bar-26679.test.tsx(129,5): error TS2578; clean at head. Same blobs as the dev reports (a7cb247c, dbcac407).
  • Check-runs on the head: 45 success, 13 skipped, 0 failed. K = 8 against main f9fda2a4f84; git merge-tree is clean and main's eight commits touch none of the four paths.
  • Dev's note on the pre-push hook: the pushed commit has no card-number line; nothing contradicts "no bypass", and the remote cannot prove it.
  • N1 — The PR body says 27 render sites; the scan finds 31. The zero holds.
  • N2 — The fix line does not name the surviving toggles slot for a host that wants its own switch in the drawer; that follows the feat(record-page): the side preview drops the comments icon and panel; a record's comments are on its full page #36406 ruling.
  • N3 — The render half of the pin was judged by reading plus CI's Test UI, not re-run here.
  • The PR is still a draft; the zone marks it ready before landing.
  • Contract review at the same head is in the ## Contract review record: PASS.
  • Landing: the zone lands it after measuring K; if K ≥ 15 it merges main first; a merge-only head move keeps this ACCEPT.

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Landing (2026-11-25T11:02Z): head 8acc3c0e7f9c37c9145aa2bca36e55cf48d37c21, on L1 ACCEPT 7160490369 and the same-head contract review PASS 7160478947 (served at CONTRACT_REVIEW_TIER, narrowing face).

Probe Reading
check-governed-merges.mjs --pr 37275 NOT governed: no path hits the register; +35 / −11
Check-runs at this head 45 success · 13 expected skip · 0 failed · 0 pending; mergeable_state: clean
Landing K 8 (L1's reading); under 15, so no main merge

State change: ready for review, and auto-merge armed; the merge queue lands it. On MERGED, #36410 closes by Fixes #36410; item 1 landed earlier in #36878. The L1 nits N1–N3 are not graded and need no push.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 11:02
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 用户能看到什么变化:用户无感。记录侧边抽屉组件(NavigationOverlay)删掉了一个评论按钮参数。全仓 31 处用到这个组件,没有一处传这个参数;应用作者也无法通过页面元数据设置它。
  • 为什么做:「评论通知直达评论」(Comment notification opens the record page but not the comment; NavigationOverlay keeps a dead comments slot #36410)的第二项清理。第一项已在 fix(plugin-audit, plugin-detail): a comment notification opens the comments at that comment #36878 合并。
  • 出错会怎样:只有自己写代码、并且给这个组件传了评论参数的集成方会编译报错,删掉该参数即可。发布说明里写了破坏性改动说明和迁移写法。可直接撤回。
  • 要你做什么:审核并合并。它删掉了一个已发布的组件参数,属于声明了收窄的改动,按 2026-11-19 的裁定要你批准,合并队列的治理门禁也因此把它退了出来。契约审核 PASS:7160478947,Head-sha 8acc3c0e7f9c37c9145aa2bca36e55cf48d37c21。席位核对 ACCEPT:7160490369。0 个失败检查。

席位意见:通过。没有使用方,组件不可通过元数据配置,Metadata-protocol: none 和 patch 都对。破坏性说明照之前删 maximizable 的先例写。剩 3 处小瑕疵,比如正文写的是 27 处,实际是 31 处,不影响合并。

Hand-off · 2026-11-25T11:14Z · @os-zhuang — PR #37275 (card #36410, item 2) needs your approval. It declares Clause-②: yes (narrowing): the published NavigationOverlay loses its unused comments prop. The Governed Surface Queue Guard removed it from the merge queue under the 2026-11-19 narrowing ruling. Seat ACCEPT 7160490369 and contract review PASS 7160478947 (CONTRACT_REVIEW_TIER, narrowing face), Head-sha 8acc3c0e7f9c37c9145aa2bca36e55cf48d37c21; 0 failed check-runs. After your approval the seat re-queues it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment notification opens the record page but not the comment; NavigationOverlay keeps a dead comments slot

3 participants