feat(sonner): 增加独立的编号文字复制动作 - #28
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
错误通知现在把完整 Request ID 作为可选中的普通文字显示,复制按钮位于右侧关闭按钮下方。复制使用与聊天 action row 相同的连续双框图标、方向和按钮规格;原 Retry 等业务动作仍独立保留。
本 PR 为 Sonner 增加可选 textAction,并把聊天已有的 CopyConnectedIcon 机械移入共享 UI。点击复制不关闭通知;pending 防止重复执行,成功短暂确认,失败原位反馈。替换、移除、卸载后的迟到结果不会污染新动作。无 textAction 时保留原通知内容和业务动作。
验证与边界
代码量审计
核对远端 base
72b18e0/ head03de78b:5 文件,+152/-21,净 +131。生产 4 文件 +151/-21;生成 barrel 1 文件 +1/-0;无新增测试文件(测试位于消费端)。生产去空行和独立注释后 +130/-16,净 +114。机械复用包含从原聊天 action row 搬入的 32 行 SVG,已计入生产,不重复累加;未另造复制图形或交互状态机。依赖
消费端 Memoh #378,控制面与人工清单 Cloud #375。先合 UI 再固定 Memoh gitlink,Memoh 合入后再更新 Cloud 指针。