feat(generate): review 步骤展示并编辑 AI 回复#32
Merged
Merged
Conversation
承接上一个 PR(后端已抓取每条指令配对的 AI 回复)。前端让用户在
review 步骤看到、编辑这段回复。
GenerateDialog
- ItemRow 非编辑态:用户指令下方加灰底小块显示「AI 回复:…」
- ItemRow 编辑态:指令 Textarea 之外,多一个 AI 回复 Textarea
(仅当该条目有 reply 时显示;手动新增条目无 reply)
- updateItemText 通用化为 updateItem(projectName, itemId, patch),
patch 是 { text?, reply? } 部分字段合并;onUpdate 改传 patch 对象
- 编辑保存时 reply 一并写回;改动随草稿自动保存
i18n
- zh-CN / en 加 generate.review.ai_reply
至此「纳入 AI 回复」全链完成:
后端抓取配对(末尾结论段,≤200 字)→ prompt 注入 → review 展示编辑
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.
概要
承接上一个 PR(后端已抓取每条指令配对的 AI 回复)。前端让用户在 review 步骤看到、编辑这段 AI 回复 —— 这是用户最初反馈「没有模型关键回复」的最终落地。
GenerateDialog
reply时显示;手动新增条目无 reply)updateItemText通用化为updateItem(projectName, itemId, patch),patch是{ text?, reply? }部分字段合并;onUpdate改传 patch 对象reply一并写回;改动随草稿自动保存i18n
zh-CN/en加generate.review.ai_reply「纳入 AI 回复」全链完成
验证
npm run build✓Generated by Claude Code