Skip to content

评论(一)电脑:评论从「动态」页签拿出来,做成记录页和抽屉右侧的独立评论栏;对一条评论的操作收到一处 #36075

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

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

  • 「列专题卡,分阶段处理」
  • 「这个专题第一阶段你建议处理哪些功能」
  • 协调席建议第一阶段拆 4 张(电脑评论栏、已解决、手机整页两层、几处小修),并问回复通知要不要提前一起做,维护者:「同意」

现状(主干 c00be39b74,本机环境浏览器实测,1312 宽)

评论在记录页「动态」页签里,和系统记录混在一条流里,靠「全部、活动、讨论」三个按钮筛;看字段或子表时看不到讨论。抽屉里同样。页签上的数字把系统记录、评论、回复都算进去。鼠标移到评论上,改和删两个图标跟在文字后面,表情和回复在最右边,分成两处。

现状:评论在「动态」页签里

参照(Attio,实测,只参照行为)

Attio:记录页右侧的评论栏

Attio:筛选

效果图(维护者已同意)

维护者 2026-11-21 看过效果图后:「同意你的效果图,更新issue」。图在设计板图 44,下面是导出的图。图里的操作图标是文字符号代替的,不是最终图标;配色是设计板的深色,实现时跟产品主题走。

效果图一:电脑记录页,右侧评论栏打开

效果图二:评论栏的三种状态(回复收起和更多菜单;显示已解决;没有评论)

要做的

  1. 评论做成独立组件,记录页和记录抽屉共用(第二阶段列表也要用它,组件不要绑死在记录页里)。
  2. 入口:记录页头部、抽屉头部各加一个评论图标,带数字。点一下在右侧打开评论栏,再点一下或点栏上的关闭收起。开合状态记在浏览器里。
  3. 评论栏的内容:标题「评论」;右上角筛选;下面是评论列表,旧的在上新的在下;最下面是输入框,固定在栏底。回复就地展开在原评论下面,不进单独的视图。
  4. 宽度:栏宽 380。打开时记录内容区让出这 380;窗口宽度小于 1280 时不让位,改成盖在内容上面的抽屉。记录抽屉里打开评论栏时,评论栏占满抽屉右半或整个抽屉(开发按抽屉实际宽度定,在 PR 里写明)。
  5. 「动态」页签只留系统记录,去掉「全部、活动、讨论」三个按钮和页签里的评论输入框。页签上的数字只数系统记录。
  6. 对一条评论的操作收到右上角一处,鼠标移上去出现:回复、表情、已解决、更多。更多里是编辑、删除(只对自己的评论,或有权限的人)。
  7. 已解决的界面在本卡做:对勾按钮标记这一串已解决,默认不显示已解决的串;筛选里「显示已解决」「只看我参与的」;显示出来的已解决串标明谁解决的,可以点对勾恢复。后端字段在 objectstack-ai/objectstack 的「评论(二)」卡;那张没合并前,对勾按钮和筛选先不显示。
  8. 图标上的数字:未解决的串数(一条第一层评论连同它的回复算一串)。「评论(二)」没合并前,数第一层评论数。
  9. 评论关闭的对象(对象上关了评论开关)不显示图标。

不做的

  • 不做手机(「评论(三)」卡)。
  • 不做列表里的评论入口(第二阶段)。
  • 不改输入框的格式工具条、提到人、表情的现有行为。
  • 不改评论的权限。

验收

  • 记录页点头部评论图标:右侧出现评论栏,字段和页签还在原处、可以操作;再点收起。刷新后保持上次的开合状态。
  • 把窗口缩到 1280 以下再打开:评论栏盖在内容上面。
  • 从列表在侧边打开一条记录:抽屉头部有评论图标,能打开评论栏。
  • 「动态」页签里没有评论、没有输入框、没有三个筛选按钮;数字不随发评论变化。
  • 在评论栏里发评论、回复、加表情、编辑、删除,都成功,刷新后还在。
  • 鼠标移到一条评论上:操作都在右上角一处。
  • 「评论(二)」合并后:点对勾,这一串消失,图标数字减一;筛选「显示已解决」后它出现并标着解决人;再点对勾恢复。
  • PR 正文附评论栏打开和收起、窄窗口、抽屉里的截图。

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

  • 第 2 项开合状态记在浏览器里。
  • 第 4 项的宽度 380、1280 以下改成盖在上面、抽屉里的处理。没有画效果图。
  • 第 8 项里后端没合并前的数法;第 9 项。
  • 回复就地展开,不跟 Attio 进单独视图。

没有核对的

Reader: domain:ui 车道。ui/packages/plugin-detail/src/RecordActivityTimeline.tsx、ThreadedReplies.tsx、RecordChatterPanel.tsx、CommentAuthorControls.tsx、ui/packages/app-shell/src/views/RecordDetailView.tsx(:3476 取评论、:3848 发回复、:5716 把回复交给时间线)。

Dedupe: 评论 侧栏、评论 重做(objectstack,open)→ 只有父单 #36062 和暂停的 #35947。

效果图加于 2026-11-21T12:34Z。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 21, 2026
  2. 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 (1) desktop: comments leave the activity tab and become a side panel on the record page and drawer, with one place for a comment's actions; phase 1 of topic #36062 → p2 as set by the coordinator · size L (the claimant may split).

  3. added
    pm:queue
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T13:21Z · area b1-CM (epic #36062 phase 1; the maintainer took the epic for this seat on its decision card).
    Area: b1-CM
    Session: session_01L6bhgXXdtDHm8mLZYX8Bsb (card thread)
    Account: os-sales
    Branch: claude/project-thread-ks7hy1
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: new ui/packages/plugin-detail/src/comments/* (useRecordComments, CommentItem, CommentThread, CommentComposer, CommentFilterMenu, CommentsButton, desktop CommentsPanel and CommentHoverActions) and the plugin-detail entry exports; RecordActivityTimeline.tsx, renderers/record-activity.tsx, recordTimelineStream.ts; app-shell RecordDetailView.tsx, recordDrawerStack.tsx; components record-top-bar.tsx, navigation-overlay.tsx (an optional slot each); react DiscussionContext.tsx; new i18n keys in every locale; tests, changesets. No governed surface, no packages/spec.
    Container & model: L, card thread, model: opus, effort: high
    Clause-②: yes (widening) (new plugin-detail exports; optional fields on RecordTopBar, NavigationOverlay and DiscussionContextValue; nothing removed or renamed; the seat runs the declaration-face L2)
    Metadata-protocol: none
    Premise (thread, read on main 493ad095, file build-seat1/36075/premise-read.md in the project folder): holds. The comment data lives in RecordDetailView behind DiscussionContextProvider, and the drawer embeds the same view, so page and drawer already share data.
    Basis: card #36075 (mock-ups approved by the maintainer); epic #36062.
    Scope, the seat's reading: the card's nine items. Panel 380 wide; at a window of 1280 or more the content gives way, below it the panel overlays; in the drawer, a split at 760 or more and an overlay of the drawer body below that; open state kept per page and per drawer. The header icon sits in the record row before Edit, through one optional slot each in RecordTopBar and NavigationOverlay; objects with feeds off show none. The Activity tab drops comments on desktop page and drawer only (phones keep them until #36076). The count is top-level comments until #36071 merges. One open question goes to the maintainer separately: what happens on the six pages whose authors placed their own activity or discussion block.
    Resume-from: none
    Fold-or-serial: serial behind #36070 (same files; merge main after it lands and reuse its avatar, reply focus and delete toast) and #36071 (resolved UI wired after it merges, or a second PR if it is slow). overlap-check.mjs before each push. L1 at L1-c. The PR carries Fixes #36075.

  5. added
    pm:dispatched
    and removed
    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 note · 2026-11-21T14:25Z · Item 7 (待定) is settled by the maintainer ruling on #35890: with the comment panel open, the record page keeps fields | tabs | comments side by side whenever a left column of 320 plus a right side of 400 fit; the middle is about 400 at 1280, not the 600 the mock-up drew. The panel still gives way at windows of 1280 and up. Record: see #35890.

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat note · 2026-11-21T16:43Z · #36075, who decided where the comment panel appears (PR #36114). This answers the declaration L2's E2.

    • The choice: the panel and its header icon appear only on record pages drawn from the default stream, including those whose overrides only fill slots. The hand-written pages (showcase project-detail, sys-queue, sys-audit-log) keep the discussion block in the footer, where their authors placed it.
    • Who decided: the seat's Fable decision review at 2026-11-21T13:24Z (build-seat1/36075/fable-handwritten-pages.md). It found that the choice needs no maintainer card, because it follows a standing maintainer ruling recorded in code: decision batch 🔗 Broken links detected in documentation #120, item 5, 2026-09-12, at RecordDetailView.tsx:5150. That ruling says a page is what its author composed, and nothing is appended by default and then switched off. The claim's open question was therefore settled under that ruling, without a new card.
    • Follow-up: letting a hand-written page opt in to the panel is phase 2. The seat files that card when phase 1 is done.
  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim amendment: PM loop · 2026-11-21T17:59Z · #36075 PR 2 (the card's claim 7063212437 stands; PR 1 #36114 landed as Part of).
    Area: b1-CM
    Session: session_01L6bhgT8AtWDue4oTFNAE6H (card thread, new session per merged PR)
    Account: os-sales
    Branch: claude/project-thread-5vdwwn (from fresh main after #36114 merges; not stacked)
    File surface: plugin-detail comments/* (CommentsPanel, useRecordComments, CommentHoverActions resolve wiring), DiscussionContext (resolve write; whether the reader may manage others' comments), the feed item type, a three-state record-editable read, app-shell RecordDetailView.tsx comment mapping and write handlers only; i18n keys in every locale; tests, docs, README, changeset.
    Container & model: M, card thread, model: opus, effort: high
    Clause-②: yes (widening): new DiscussionContext members, new feed item fields, a new exported hook, new i18n keys.
    Metadata-protocol: none
    Premise (thread, file build-seat1/36075/pr2/premise-read.md in the project folder): holds. #36104's is_resolved, resolved_by and resolved_at already arrive on both comment reads, so no server change. The check mark and filters appear only where the row carries is_resolved. The resolver's name is resolved on the client from names the page already has.
    Scope, the seat's reading:

  9. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat note · 2026-11-21T22:01Z · ruling 7064066204's rule is unchanged (pin when 320 + 24 + 400 fit). But with the maintainer's #36112 F1 answer (sidebar expanded from 1280), windows of about 1280–1475 with the sidebar expanded drop to the tab row when the comment panel opens; collapsing the sidebar restores fields | tabs | comments. The maintainer chose this knowing the cost, which the F1 card stated. PR #36136's measured table (evidence 7069589957) shows the same boundary at 1440 with the nav open.

  10. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    本机验收 · 2026-11-21T22:15Z · objectstack 6c7c6db250(界面和后端同一提交),HotCRM 6.5.0 客户记录页,1440 宽。

    通过:头部评论图标打开右侧评论栏;发评论后图标显示未解决数;点「回复」光标直接进回复框(#36070);回复缩进在第一条下面;点对勾后这一串从栏里消失、数字清零;筛选里有「显示已解决」「只看我参与的」。

    一处请席位判断,不重开卡:记录页「概览」中间那张「最近动态」卡片,标题仍写「讨论 (3)」,并且把刚发的评论和「1 条回复」也列了出来,数字 3 = 2 条系统记录 + 1 条评论。评论栏打开时,同一条评论在屏幕上出现两次。卡上写的是评论从「动态」里拿出来、动态只留系统记录;这张概览卡片算不算「动态」,我没有读代码确认,只是界面上看到的。

    没有核对的:别人评论上的对勾和编辑权限(本机只有一个账号);抽屉里的评论栏;回复通知(#36074)。

  11. added 3 commits that reference this issue on Nov 21, 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