Skip to content

评论(六)记录页概览的「最近动态」卡片不再列评论:评论只在评论栏里,卡片标题不再写「讨论」,数字只算系统记录 #36193

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36062(专题:评论重做,维护者直派)。第一阶段的收尾。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

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

现状(主干 6c7c6db250,本机环境浏览器实测,1440 宽,HotCRM 6.5.0 客户记录页)

概览的最近动态卡片和右侧评论栏同时列出同一条评论

要做的

  1. 「最近动态」卡片只列系统记录(创建、字段改动、负责人变更这类),不列评论和回复。
  2. 卡片里的小标题不再写「讨论」,改成和卡片内容相符的叫法(建议就不要这行小标题,卡片标题「最近动态」已经够了);数字只算系统记录,或者不显示数字。
  3. 没有系统记录时,卡片显示原来的空状态,不因为有评论而显示内容。

不做的

验收

  • 在一条没有评论的记录上发一条评论并回复一条:概览的「最近动态」卡片内容不变,里面没有这条评论,数字不变。
  • 卡片里看不到「讨论」两个字。
  • 评论栏打开时,同一条评论在屏幕上只出现一次。
  • PR 正文附改动前后的截图(概览页签,评论栏打开)。

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

  • 第 2 项去掉小标题的建议,第 3 项。维护者只说了「去掉」。

没有核对的

  • 「动态」页签里现在还列不列评论,这次没有点开看。
  • 抽屉和手机上没有这张卡片(代码注释说抽屉不画右边一栏),没有实测。
  • 卡片的内容来自哪一段代码只看到了开关:ui/packages/app-shell/src/views/RecordDetailView.tsx:2792 在评论栏可用时仍把 discussion 打开;具体怎么改由车道定。

Reader: domain:ui 车道。ui/packages/app-shell/src/views/RecordDetailView.tsx(:2792 起)、ui/packages/plugin-detail/src/RecordActivityTimeline.tsx(:210 小标题文案 detail.streamDiscussion)。

Dedupe: 最近动态 评论、概览 动态 讨论 评论栏(objectstack,open)→ 0。

Blocked-by: #36136

Activity

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

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    派发记录 · 2026-11-21T22:28Z

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

    同批派发:#36194、#36195。本卡是评论专题 #36062 第一阶段的收尾,改的是 #36075 同一块代码,最好由做 #36075 的席位接。

  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    更正本卡的「现状」 · 2026-11-21T22:46Z · 协调席深度验收时发现正文写错了范围,请以这条为准。

    正文说「记录页概览的『最近动态』卡片列评论」是平台标准页的行为。这不对。实测(主干 6c7c6db250,1440 宽):

    • 平台自己合成的记录页(本机自建应用「客户」):发一条评论后,概览右边「最近动态」卡片的数字仍是 1,里面只有系统记录,没有评论,也没有「讨论」两个字。这里没有问题。
    • 应用包自己摆了讨论区块的页面(HotCRM 客户页,src/sales/pages/account_detail.page.ts 是 kind: 'slotted',discussion 槽里放了 record:chatter,label 是 Discussion):卡片小标题是「讨论 (3)」,列出评论和「1 条回复」。截图里的现象来自这里。

    所以要做的应当读成:页面作者摆了 record:chatter / record:discussion 区块、而评论栏又可用时,这个区块里不再列评论和回复(只留系统记录和活动),小标题不再叫「讨论」,数字不算评论。平台合成页不用改。是不是连这个区块的输入框也要去掉,正文没写,协调席的理解是要去掉(评论只在评论栏里发),请席位按 #36075「评论只有一处」的约定判断。

    正文里引用的 RecordDetailView.tsx:2792 那一行是不是相关代码,现在不确定;相关的可能是 ui/packages/plugin-detail/src/RecordSummaryRail.tsx:377(对 record:chatter 的处理)。没有细读。

  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · comments (6): the Overview 「最近动态」 card stops listing comments (they live only in the comment panel), its title drops 「讨论」 and its count counts system records only; maintainer: 「立卡去掉」; topic #36062 → p2 as set by the coordinator · size S.

  5. added
    pm:queue
    on Nov 21, 2026
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat hold · 2026-11-21T23:04Z · this card waits on #36136 (pinned details): #36136 deletes RecordSummaryRail.tsx, the file this card's fix sits in; after it merges the card is re-read against main. The body now carries the Blocked-by: line, so the unblock sweep releases it when that merges. (Root-cause card #36203: an "after #N" order is recorded on the card, not only in seat notes.)

  7. added
    pm:blocked
    and removed
    pm:queue
    on Nov 21, 2026
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat release · 2026-11-22T02:16Z · #36136 merged (48c732c), so this card's Blocked-by: #36136 is met. Back to pm:queue; the seat writes the claim when the thread's premise arrives.

  9. added
    pm:queue
    and removed
    pm:blocked
    on Nov 22, 2026
  10. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-22T02:31Z · #36193: comments live only in the comments panel. When that panel is available (record page and drawer) on a default or slotted page, an author-placed record:chatter / discussion block draws system records only. It drops comments and replies, the comment box and the 「仅评论」 filter, does not count comments in its number, is titled 「动态」 and shows 「暂无活动」 when empty. The platform's own record:activity, the 动态 tab label, author full pages (kind: 'full') and the phone stay unchanged.
    Area: b1-CM (epic #36062); released by #36136's merge (48c732c), which retired the overview rail and its recent-activity card.
    Session: session_01L6bhgXV5qLuX94Bn6aqb4y (card thread)
    Account: os-sales
    Branch: claude/project-thread-u6a11n (one PR, Fixes #36193)
    File surface: ui/packages/plugin-detail renderers/record-chatter.tsx, RecordChatterPanel.tsx (optional titleLabel / emptyLabel) and tests.
    Container & model: S/M, card thread, model: opus, effort: high
    Clause-②: no
    Metadata-protocol: none
    Premise (PR body's top lines): holds as re-read on main. The card's 「讨论 (3)」 face now comes from a slotted page's discussion slot in the 动态 tab, and it duplicates the comments panel. The seat's reading of 「不改动态页签」 is that the platform's own 动态 tab is unchanged.
    Reviews: L1-c; no L2 (Clause-② no).
    Resume-from: none
    Fold-or-serial: serial; no shared file with #36208. After #36208 merges (commentsSurfaceOffered covers the phone comments page too), the same rule applies on the phone; the PR body says so.

  11. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions