Skip to content

右侧预览里去掉评论按钮和评论面板:评论只在记录整页里(Attio 的预览也没有评论) #36225

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35590(记录页专题,维护者直派)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的(2026-11-22)

  • 「我发现右侧展开预览时,attio 不显示评论」
  • 协调席实测确认并建议「预览里去掉评论按钮,评论只在整页里」,维护者:「四条都立卡」。本卡是第 1 条。

现状(主干 6c7c6db250,本机环境浏览器实测,1440 宽,自建应用「客户」)

我们的右侧预览:头部有评论按钮

  • 右侧预览头部(记录名右边)有评论按钮。点开后评论面板盖在记录内容上面,字段被挡住。
  • 记录整页里评论是右边单独一栏(380 宽),不挡内容。

Attio(同日浏览器实测,1440 宽):

Attio 的右侧预览:没有评论

Attio 记录整页:评论是右边第三栏

  • 预览头部只有关闭、上一条、下一条、位置、展开成整页。页签里也没有评论。
  • 评论只在记录整页:顶栏的评论按钮打开右边第三栏(320 宽),把中间内容挤窄,不盖内容。

要做的

  1. 右侧预览头部去掉评论按钮,预览里不再有评论面板。
  2. 要看或写评论,从预览头部的「展开成整页」进整页。整页的评论栏不变。
  3. 右侧预览收紧:宽度收到 460 可拖动;头部去掉「编辑」和「复制编号」;点子表记录在同一个预览里打开 #36149「要做的」第 2 项里写的「右边是评论……和『更多』」随本卡改为「右边只有『更多』」。那张卡上已留言说明。

不做的

  • 不改记录整页的评论栏。
  • 不改手机上的评论入口。
  • 不改列表行上的评论相关显示(如果有)。

验收

  • 自建应用「客户」列表在侧边打开一条记录:头部没有评论按钮,预览里任何地方都打不开评论面板。
  • HotCRM「线索」同样试一次。
  • 从预览展开成整页:评论按钮和评论栏照常,能写一条评论。
  • 给一条记录写了评论后再在预览里打开它:预览正常显示,没有残留的评论面板。
  • PR 正文附预览头部的截图。

协调席自己加的(不是维护者原话)

  • 「不做的」三条的范围划分。
  • 验收里 HotCRM 一条和「写了评论后再开预览」一条。

没有核对的

  • 一条记录有未读评论时,预览里要不要有任何提示:本卡写的是没有。Attio 列表的名称格悬停时有一个评论图标,它点了做什么这次没有试。
  • 通知里点一条评论提醒现在落到哪里(整页还是预览),没有试;如果落到预览,要改成落到整页并打开评论栏。

Reader: domain:ui 车道。预览头部在 ui/packages/app-shell/src/views/RecordDetailView.tsx;评论入口来自 #36075。

Dedupe: 预览 评论 去掉、预览 评论按钮(objectstack,open)→ 都是 0。相关:#36149、#36075。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    派发记录 · 2026-11-22T02:42Z

    维护者 2026-11-22 对这张卡说「通知派发」。交给 os-sales 的席位 repo:objectstack#1,随后在它的信箱 #35349 里发接手请求。

    同批派发:#36226、#36227。本卡改了 #36149 头部的一项(不再放评论),最好和 #36149 由同一个席位做。

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · a child the coordinator filed under topic #35590 (maintainer: 「四条都立卡」), measured against Attio in the browser on 2026-11-22 → p2 as set by the coordinator · size S.

  4. added
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim: PM loop round 1 · 2026-11-22T07:28Z
    Session: session_01QsR2jRaJbQ4vqdv4J5peqA
    Account: zhuangjianguo
    Branch: claude/issue-36225-preview-no-comments
    Worktree: objectstack-issue-36225
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-record
    File surface: ui/packages/app-shell/src/views/RecordDetailView.tsx (the embedded / side-preview header's comment button and comment panel), the tests that pin the preview header's comment entry, changeset.
    Container & model: S, mode:subagent, model: opus (TIER_DEFAULT; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7073113914
    Premise: holds (the dev re-reads on origin/main: #36136 and PR #36234 changed the record page today)
    Pre-claim lane: domain:ui — ui/packages/app-shell/src/views/RecordDetailView.tsx
    Pre-claim deps: none named by the card; #36075 (the comment entry) closed
    Prior rulings read: attio → 0 hits; none; thread: none; repo: objectstack-ai/objectstack
    Serial constraints cleared: RecordDetailView.tsx is shared with #36309 (this area) and open PR #36343 (#35403); overlap-check.mjs before each push. #36149 (item 2 now reads 「右边只有『更多』」, coordinator 7073032439) follows this card in this area.
    Resume-from: none
    Fold-or-serial: serial ahead of #36149 + #36201 and #36246 (same preview header), not folded (gate ①: different features).

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
      "issue": 36225,
      "status": "done",
      "branch": "claude/issue-36225-preview-no-comments",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36406",
      "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
      "premise_still_valid": true,
      "summary": "A record drawn embedded (the side preview opened by 「在侧边打开」, the drawer a record page opens, the ObjectDataPage / InterfaceListPage overlays) no longer offers the comments icon or the comment panel: commentsPanelOffered gains !embedded in RecordDetailView.tsx, and a new commentsLeftToFullPage keeps the preview's 动态 stream giving the comments up (RecordCommentsInPanelContext and the stream count), so the preview shows no comment and no composer anywhere. The drawer-only plumbing is removed (pane bar comments slot, plain-overlay trailing placement, the cover/split drawer placement, the drawer's open preference); the full page's icon, panel and composer and the phone's comment page are unchanged. Docs (plugin-detail.mdx, plugin-detail README, the context jsdoc) and a changeset that states it replaces the pending objectstack#36075 lines about the drawer. Item 3 (wording on #36149) was already done by the coordinator's comment 7073032439; nothing in code. Premise held on origin/main b3bcfefc: the preview header's icon came through RecordPaneBarComments.",
      "tests": "ui vitest under os-verify-lock, --maxWorkers=1, 16 targeted app-shell files (commentsPanel-36075, recordCommentsPanel-36075, feedRecordScope, harness, commentsResolved-36075, replyCountOnRead, feedLoading, discussionFallbackPipeline, discussionExplicitComposition, recordOpenOneRequest, feedLoadFailure, recordOpenWaves, timelineCount, paneOpenAsPage, ObjectView.recordDrawer, topBar): 'Test Files 16 passed (16) · Tests 229 passed (229)' at 9461c50d; final head 855a906669 commentsPanel-36075: 'Tests 18 passed (18)'. type-check: ui/packages/app-shell exit 0, ui/packages/plugin-detail exit 0 (after the @object-ui/app-shell^... build, exit 0). Ablation via scripts/ablation-replace.mjs, source-resolved (relative import, no dist): A drop !embedded from the panel gate, anchor 1->0, blob c1a648b1ae36->a3045d38ca5a: 2 failed (preview no icon/panel; hand-written page's preview); B drop commentsLeftToFullPage from streamGivesUpComments, blob ->3e87b70796ae: 1 failed (preview 动态 no comment/composer); both restored, git diff HEAD empty. A first run left the hand-written-page case green (the button had also lost its placement); fixed by starting that case from a page left with its panel open, re-ablated red. Browser: Chromium 1440x900 zh-CN, fresh showcase backend + Console Vite dev on this branch, 客户/Initech via 「在侧边打开」: preview comments-button 0 / panel 0 / composer 0 (also on 动态); expanded full page icon 1, panel opened, comment written and shown; same record in preview again with page panel left open: icon 0, panel 0, comment not on screen (also on 动态). Screenshot of the preview header is in the PR body.",
      "gates": "dispatch-gates --commands (repo objectstack-ai/objectstack @ 9461c50d, base b3bcfefc): 71 families, all run locally, all exit 0; check:skill-examples and check:type-check-debt first exit 3 (prerequisite: client-react not built), re-run after building it: exit 0; pnpm --dir ui exec vitest run scripts/: 'Test Files 172 passed | 2 skipped (174)', exit 0. --ran reconciliation: '71 derived, 71 run, 0 NOT-MEASURED, 0 UNRUN', exit 0. Final head 855a906669 (test-only commits after): check:cross-package-test-inputs, check:test-source-alias, check:nul-bytes, check:tier-file-adoption, check:undeclared-dep-imports exit 0 each. overlap-check: clean vs origin/main, #36343, #36394 (exit 0). PR check-runs at report time: Check Changeset, Lint (ESLint, docs & code guards, repo & tooling, CI/release/engine, PM dispatch-gates, scoped x3), Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard, Spec property liveness, PR-body guards, Check PR Size, Check Documentation Links: in_progress; UI jobs not yet listed. CI convergence is the seat's.",
      "dogfood_battery": "n/a — no `!` in the PR title and Clause-②: no (no (narrowing) arm)",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, run 45010721526) and this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/36225/comments); plus git pushes (branch and an orphan screenshot branch claude/issue-36225-shots), not REST writes",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — a comment notification lands on the full record page (/apps/APP/OBJECT/record/ID, measured in the browser) but does not open the comment panel by itself; the card's 没有核对的 item only asked to change it if it landed in the preview, so nothing filed",
        "carrier: none · noted, not filed — @object-ui/components NavigationOverlay keeps its optional comments slot, which the console no longer fills"
      ],
      "deviations": "The changeset declares @object-ui/app-shell (private: true) as earlier console changesets do. Deleted recordCommentsPanel.drawerEscape-36075.test.tsx: it mounted the panel inside the drawer, a placement this card retires. Screenshots hosted on an orphan branch claude/issue-36225-shots (git push). HotCRM 线索 NOT MEASURED in a browser (HotCRM runs on published packages).",
      "files_changed": [
        ".changeset/36225-preview-no-comments.md",
        "content/docs/frontend/plugins/plugin-detail.mdx",
        "ui/packages/app-shell/src/views/RecordDetailView.tsx",
        "ui/packages/app-shell/src/views/RecordDetailView.commentsPanel-36075.test.tsx",
        "ui/packages/app-shell/src/views/RecordDetailView.feedRecordScope.test.tsx",
        "ui/packages/app-shell/src/views/RecordDetailView.harness.test.tsx",
        "ui/packages/app-shell/src/views/recordCommentsPanel.tsx",
        "ui/packages/app-shell/src/views/recordCommentsPanel-36075.test.ts",
        "ui/packages/app-shell/src/views/recordCommentsPanel.drawerEscape-36075.test.tsx (deleted)",
        "ui/packages/app-shell/src/views/recordDrawerContext.ts",
        "ui/packages/app-shell/src/views/recordDrawerStack.tsx",
        "ui/packages/plugin-detail/README.md",
        "ui/packages/plugin-detail/src/recordTimelineStream.ts"
      ]
    }
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
      "issue": 36225,
      "status": "done",
      "branch": "claude/issue-36225-preview-no-comments",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36406",
      "head": "d3ed9585f62be292dd1f26d8431673f36ad5f5e8",
      "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
      "premise_still_valid": true,
      "summary": "L1 rework (comment 7077882869): `.changeset/36225-preview-no-comments.md` frontmatter gains `'@object-ui/plugin-detail': patch`, and the body gains one sentence: the plugin-detail README and the docs of `RecordCommentsInPanelContext` now describe the preview case, with no code change there. No other file touched (one commit, 1 file, +3).",
      "tests": "no code change; no test re-run",
      "gates": "@ d3ed9585f6: node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0; node scripts/check-empty-changeset.mjs --base origin/main :: exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 ('1 non-breaking changeset(s) seen'; it first refused with exit 1, tsx not installed in the recreated worktree, then passed after pnpm install); pnpm check:changeset-fixed :: exit 0; pnpm check:changeset-gate-self-tests :: exit 0. overlap-check :: exit 0, clean vs origin/main, #36394 and #36343. It also listed #36406, this PR itself, because the recreated local branch name differs; it merges cleanly.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/36225/comments); plus git push of d3ed9585 (not a REST write)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [".changeset/36225-preview-no-comments.md"]
    }
  9. removed
    pm:dispatched
    on Nov 22, 2026
  10. added a commit that references this issue on Nov 22, 2026
    8466fca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions