Repository navigation
评论(一)电脑:评论从「动态」页签拿出来,做成记录页和抽屉右侧的独立评论栏;对一条评论的操作收到一处 #36075
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #36062(专题:评论重做,维护者直派)。第一阶段。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。
维护者说过的(2026-11-21)
- 「列专题卡,分阶段处理」
- 「这个专题第一阶段你建议处理哪些功能」
- 协调席建议第一阶段拆 4 张(电脑评论栏、已解决、手机整页两层、几处小修),并问回复通知要不要提前一起做,维护者:「同意」
现状(主干 c00be39b74,本机环境浏览器实测,1312 宽)
评论在记录页「动态」页签里,和系统记录混在一条流里,靠「全部、活动、讨论」三个按钮筛;看字段或子表时看不到讨论。抽屉里同样。页签上的数字把系统记录、评论、回复都算进去。鼠标移到评论上,改和删两个图标跟在文字后面,表情和回复在最右边,分成两处。
参照(Attio,实测,只参照行为)
效果图(维护者已同意)
维护者 2026-11-21 看过效果图后:「同意你的效果图,更新issue」。图在设计板图 44,下面是导出的图。图里的操作图标是文字符号代替的,不是最终图标;配色是设计板的深色,实现时跟产品主题走。
要做的
- 评论做成独立组件,记录页和记录抽屉共用(第二阶段列表也要用它,组件不要绑死在记录页里)。
- 入口:记录页头部、抽屉头部各加一个评论图标,带数字。点一下在右侧打开评论栏,再点一下或点栏上的关闭收起。开合状态记在浏览器里。
- 评论栏的内容:标题「评论」;右上角筛选;下面是评论列表,旧的在上新的在下;最下面是输入框,固定在栏底。回复就地展开在原评论下面,不进单独的视图。
- 宽度:栏宽 380。打开时记录内容区让出这 380;窗口宽度小于 1280 时不让位,改成盖在内容上面的抽屉。记录抽屉里打开评论栏时,评论栏占满抽屉右半或整个抽屉(开发按抽屉实际宽度定,在 PR 里写明)。
- 「动态」页签只留系统记录,去掉「全部、活动、讨论」三个按钮和页签里的评论输入框。页签上的数字只数系统记录。
- 对一条评论的操作收到右上角一处,鼠标移上去出现:回复、表情、已解决、更多。更多里是编辑、删除(只对自己的评论,或有权限的人)。
- 已解决的界面在本卡做:对勾按钮标记这一串已解决,默认不显示已解决的串;筛选里「显示已解决」「只看我参与的」;显示出来的已解决串标明谁解决的,可以点对勾恢复。后端字段在 objectstack-ai/objectstack 的「评论(二)」卡;那张没合并前,对勾按钮和筛选先不显示。
- 图标上的数字:未解决的串数(一条第一层评论连同它的回复算一串)。「评论(二)」没合并前,数第一层评论数。
- 评论关闭的对象(对象上关了评论开关)不显示图标。
不做的
- 不做手机(「评论(三)」卡)。
- 不做列表里的评论入口(第二阶段)。
- 不改输入框的格式工具条、提到人、表情的现有行为。
- 不改评论的权限。
验收
- 记录页点头部评论图标:右侧出现评论栏,字段和页签还在原处、可以操作;再点收起。刷新后保持上次的开合状态。
- 把窗口缩到 1280 以下再打开:评论栏盖在内容上面。
- 从列表在侧边打开一条记录:抽屉头部有评论图标,能打开评论栏。
- 「动态」页签里没有评论、没有输入框、没有三个筛选按钮;数字不随发评论变化。
- 在评论栏里发评论、回复、加表情、编辑、删除,都成功,刷新后还在。
- 鼠标移到一条评论上:操作都在右上角一处。
- 「评论(二)」合并后:点对勾,这一串消失,图标数字减一;筛选「显示已解决」后它出现并标着解决人;再点对勾恢复。
- PR 正文附评论栏打开和收起、窄窗口、抽屉里的截图。
协调席自己加的(不是维护者原话)
- 第 2 项开合状态记在浏览器里。
- 第 4 项的宽度 380、1280 以下改成盖在上面、抽屉里的处理。没有画效果图。
- 第 8 项里后端没合并前的数法;第 9 项。
- 回复就地展开,不跟 Attio 进单独视图。
没有核对的
-
效果图按 记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890 的结构画:1280 宽时三栏是 300 + 600 + 380,中间的页签区只剩 600,子表列多了会挤。协调席给了三种处理(评论栏打开时字段栏自动收起;保持三栏并排;评论栏盖在内容上面),维护者还没选。没定之前按第 4 项做(三栏并排,1280 以下盖在上面)。
-
评论栏和记录页宽屏布局(记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890,字段钉在左栏)同时出现时的效果,没有画图。记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890 先合并的话,本卡按它的布局让位;有冲突在卡上说。
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
objectstack-fleet commentedon Nov 21, 2026
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).objectstack-fleet commentedon Nov 21, 2026
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-salesBranch: claude/project-thread-ks7hy1
Seat:
repo:objectstack#1Domain:
domain:uiFile surface: new
ui/packages/plugin-detail/src/comments/*(useRecordComments,CommentItem,CommentThread,CommentComposer,CommentFilterMenu,CommentsButton, desktopCommentsPanelandCommentHoverActions) and the plugin-detail entry exports;RecordActivityTimeline.tsx,renderers/record-activity.tsx,recordTimelineStream.ts; app-shellRecordDetailView.tsx,recordDrawerStack.tsx; componentsrecord-top-bar.tsx,navigation-overlay.tsx(an optional slot each); reactDiscussionContext.tsx; new i18n keys in every locale; tests, changesets. No governed surface, nopackages/spec.Container & model:
L, card thread,model: opus,effort: highClause-②: yes (widening) (new plugin-detail exports; optional fields on
RecordTopBar,NavigationOverlayandDiscussionContextValue; nothing removed or renamed; the seat runs the declaration-face L2)Metadata-protocol: none
Premise (thread, read on main
493ad095, filebuild-seat1/36075/premise-read.mdin the project folder): holds. The comment data lives inRecordDetailViewbehindDiscussionContextProvider, 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
RecordTopBarandNavigationOverlay; 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.mjsbefore each push. L1 at L1-c. The PR carriesFixes #36075.objectstack-fleet commentedon Nov 21, 2026
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.
feat(record-page): tests, docs and changeset for the desktop comment …
objectstack-fleet commentedon Nov 21, 2026
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.
project-detail,sys-queue,sys-audit-log) keep the discussion block in the footer, where their authors placed it.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, atRecordDetailView.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.objectstack-fleet commentedon Nov 21, 2026
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-salesBranch: claude/project-thread-5vdwwn (from fresh main after #36114 merges; not stacked)
File surface: plugin-detail
comments/*(CommentsPanel,useRecordComments,CommentHoverActionsresolve wiring),DiscussionContext(resolve write; whether the reader may manage others' comments), the feed item type, a three-state record-editable read, app-shellRecordDetailView.tsxcomment mapping and write handlers only; i18n keys in every locale; tests, docs, README, changeset.Container & model:
M, card thread,model: opus,effort: highClause-②: yes (widening): new
DiscussionContextmembers, new feed item fields, a new exported hook, new i18n keys.Metadata-protocol: none
Premise (thread, file
build-seat1/36075/pr2/premise-read.mdin the project folder): holds. #36104'sis_resolved,resolved_byandresolved_atalready arrive on both comment reads, so no server change. The check mark and filters appear only where the row carriesis_resolved. The resolver's name is resolved on the client from names the page already has.Scope, the seat's reading:
threadsInvolvingUser's rule), not remembered in the browser.Resume-from: none
Fold-or-serial: overlap on
RecordDetailView.tsxwith 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112, 自定义记录页只在电脑整页生效:手机和右侧预览一律用平台标准记录页 #36150 (PR feat(app-shell): an authored record page is drawn on the desktop full page only; a phone and the side drawer draw the standard page (#36150) #36174), 记录的字段区统一成一列:右侧预览、手机记录页、宽屏左栏共用一个组件,不管多宽都只排一列;分组箭头在右 #36147, 手机记录页底部按钮条只在有主要动作时出现;「编辑」不再占一个按钮,放进「更多」 #36151, in a different region (comment mapping and writes).overlap-check.mjsbefore each push. Declaration L2 atTIER_DEFAULTon the green head; L1 at L1-c. The PR carriesFixes #36075.test(plugin-form): enter handleResolveComment in the affordance grant…
fix(record-page): offer ✓ and Edit on others' comments only where the…
objectstack-fleet commentedon Nov 21, 2026
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.
objectstack-fleet commentedon Nov 21, 2026
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
本机验收 · 2026-11-21T22:15Z · objectstack
6c7c6db250(界面和后端同一提交),HotCRM 6.5.0 客户记录页,1440 宽。通过:头部评论图标打开右侧评论栏;发评论后图标显示未解决数;点「回复」光标直接进回复框(#36070);回复缩进在第一条下面;点对勾后这一串从栏里消失、数字清零;筛选里有「显示已解决」「只看我参与的」。
一处请席位判断,不重开卡:记录页「概览」中间那张「最近动态」卡片,标题仍写「讨论 (3)」,并且把刚发的评论和「1 条回复」也列了出来,数字 3 = 2 条系统记录 + 1 条评论。评论栏打开时,同一条评论在屏幕上出现两次。卡上写的是评论从「动态」里拿出来、动态只留系统记录;这张概览卡片算不算「动态」,我没有读代码确认,只是界面上看到的。
没有核对的:别人评论上的对勾和编辑权限(本机只有一个账号);抽屉里的评论栏;回复通知(#36074)。
docs(changeset): name the row floor where the #36075 note's Edit line…
chore(changeset): leave the #36075 panel note as it is; this PR's own…
docs(changeset): leave the #36071 and #36075 notes as written and car…
fix(comments): Reply focuses the reply box, author avatars with initi…
feat(plugin-audit): a comment thread can be marked resolved and reope…
feat(record-page): a desktop comment panel beside the record, opened …
feat(record-page): the comment panel resolves, reopens and filters th…
feat(record-page): on a wide full page the details are pinned left be…