Skip to content

评论(四)小修:点「回复」后光标进回复框;没设头像的显示姓名首字;提到人的选单跟着光标;删除后给提示 #36070

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

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

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

本卡和「评论(一)」互不依赖,在现在的界面上就能改,可以先做。评论栏做出来之后这些行为要带过去。

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

  • 回复:点评论上的「回复」,回复框出现,但光标不在里面,页面焦点停在「回复」按钮上(查了页面当前焦点)。协调席用自动操作直接打字,文字进了上面的主输入框,发成了一条独立评论而不是回复。原评论已有回复且收起时,点「回复」看不到回复框。
  • 头像:设了头像的显示 16 大小的头像;没设的显示一个评论小图标(ui/packages/plugin-detail/src/RecordActivityTimeline.tsx:870)。
  • 提到人:输入 @ 弹出的人员选单在输入框左上角,不在光标旁边。
  • 删除:确认后评论消失,没有任何提示。

现状:点「回复」后回复框出现在评论下面,但光标不在里面;评论前面是小图标不是头像

参照:Attio 每条评论带作者头像,没设头像的显示姓名首字

要做的

  1. 点「回复」后,光标直接在回复框里,可以马上打字。原评论有收起的回复时,先展开回复,再显示回复框并把光标放进去。
  2. 每条评论和回复前面显示作者头像,大小 20;没设头像的显示姓名首字的圆形色块(和别处的人员小块用同一套)。
  3. 提到人的选单出现在光标位置的下方;靠近底部放不下时出现在上方。
  4. 删除评论成功后,给一条提示「评论已删除」。

不做的

  • 不改评论的位置和结构(「评论(一)」「评论(三)」)。
  • 不改提到人的候选范围和通知。

验收

  • 发一条评论,点「回复」,不点任何地方直接打字再提交:文字出现在回复框里,提交后它收在原评论下面,显示「1 条回复」;刷新后仍然在原评论下面。
  • 对一条已有 1 条回复且收起的评论点「回复」:回复展开,回复框出现,光标在里面。
  • 没设头像的用户发的评论:前面是姓名首字的圆形色块,不是评论图标。
  • 在输入框中间一行的末尾输入 @:选单贴着光标出现。
  • 删除一条评论:出现「评论已删除」提示。
  • PR 正文附回复和头像的改动前后截图。

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

  • 第 2 项头像大小 20;第 3 项放不下时出现在上方。

没有核对的

  • 真人用键盘时,点「回复」后直接打字,文字落在哪里,自动操作测不出来。现状里「进了主输入框」是自动操作的结果;焦点不在回复框是确认的。

Reader: domain:ui 车道。ui/packages/plugin-detail/src/ThreadedReplies.tsx(回复框)、RecordActivityTimeline.tsx(:853 起回复开合、:870 头像)、提到人选单在评论输入框组件里。

Dedupe: 评论 头像 首字、回复 光标 评论(objectstack,open)→ 0。

附图补于 2026-11-21T12:24Z。

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 (4) small fixes: focus the reply box after Reply, initials for users without an avatar, the mention menu follows the caret, a notice after delete; phase 1 of topic #36062 (maintainer: 「同意」) → p2 as set by the coordinator · size S. Independent of comments (1); can go first.

  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:17Z · area b1-CM (epic #36062 phase 1; the maintainer took the epic for this seat on its decision card).
    Area: b1-CM
    Session: session_01L6bhgU81jVj4Jk1kQNvLJ5 (card thread)
    Account: os-sales
    Branch: claude/project-thread-jue0uh
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: ui/packages/plugin-detail/src/RecordActivityTimeline.tsx, ThreadedReplies.tsx, a new CommentAuthorAvatar in plugin-detail, RichTextCommentInput.tsx (mention menu position), RecordDetailView.tsx (handleDeleteComment success toast), @object-ui/fields entry (export getPersonInitials), the 11 locale packs (detail.commentDeleted), tests, changesets.
    Container & model: S/M, card thread, model: opus, effort: medium
    Clause-②: yes (widening) (a new i18n key, an optional ThreadedRepliesProps prop, and a new @object-ui/fields export; measured on the built declarations; the seat runs the declaration-face L2)
    Metadata-protocol: none
    Premise (thread, read on main 493ad095): all four hold. "Reply" only toggles the reply box, which has no focus and does not expand collapsed replies; a comment with no avatar draws a 16px comment icon (replies draw their own 24px initials); the mention menu is fixed at the input's top-left; delete success shows nothing.
    Basis: card #36070; epic #36062.
    Scope, the seat's reading: the card's four items as written; one shared avatar (components Avatar + fields getPersonInitials, the person-chip set) at 20px for comments and replies; the mention menu follows the caret, flipping above near the bottom; no change to where comments live (#36075 moves them and reuses these pieces).
    Resume-from: none
    Fold-or-serial: serial, lands first in the epic. #36075 (desktop panel, same files) builds in parallel and merges main after this lands. overlap-check.mjs before each push. L1 at L1-c. The PR carries Fixes #36070.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  6. added a commit that references this issue on Nov 21, 2026
  7. added 2 commits that reference this issue on Nov 22, 2026
    3543b51
    04f9861
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