Inbox: quick labels on a selected passage, editable and synced like the reaction tray

未关闭
#4,511 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
full-stack

调研方向

Start by tracing the Inbox selection toolbar and Comment box, then compare them with plan review’s quick-label picker and its localStorage key plannotator-quick-labels. Read how inboxReactions are stored in config.json and how the INBOX_SAVED_REACTIONS_MAX limit is applied. The requested outcome includes synced, editable labels that can be applied to selected text and the two tray behavior changes.

由索引模型根据 Issue 内容生成。

描述

Version: 0.29.18 (macOS, desktop browser)

The Inbox reaction tray is great: a saved emoji with a name, or bound to a skill, lets me answer a whole message in one click, and the name reaches the agent word for word. I'd like the same one-click answers for part of a message, plus a way to configure them.

What happens today
  • Selecting text in an agent's message shows: Copy, Delete, Comment, 👍, Side chat, Cancel. The Comment box has a text field, attach and expand, but no quick-label picker.
  • Plan review's selection toolbar does have quick labels (⚡, keys 1–9 / 0), but they live only in the browser's localStorage (plannotator-quick-labels) and there is no UI to edit them. Writing a custom label there does not make it appear in the Inbox.
Requests
  1. Quick labels on a selection in the Inbox. Same picker as plan review, in the selection toolbar or the Comment box, so a label can be applied with or without a comment (close to what #2626 asks for). The label's tip should reach the agent along with the quoted text.
  2. Edit quick labels in Settings, stored on the server. Emoji, short text and tip, kept in config.json like inboxReactions, so the same set shows on every browser and on the phone.
  3. Tray details:
    • The tray is capped at 5 saved emoji (INBOX_SAVED_REACTIONS_MAX). An option to raise it would help people who use reactions as short commands; 6–8 would cover most cases.
    • Hovering a skill-bound emoji opens a large description card that covers the other emoji in the tray, so it looks like the tray has only one option. A smaller card, or showing it above the row instead of beside it, would keep the rest visible.

Thanks!

主要语言
TypeScript
星标
8.7k
派生
649
平均合并
16 小时 26 分钟
30 天内合并 PR
799

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

backnotprop/plannotator 的其他 Issue

查看 backnotprop/plannotator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。