feat: add edit button to user messages for quick re-editing#513
Open
Keduoli03 wants to merge 1 commit intoEKKOLearnAI:mainfrom
Open
feat: add edit button to user messages for quick re-editing#513Keduoli03 wants to merge 1 commit intoEKKOLearnAI:mainfrom
Keduoli03 wants to merge 1 commit intoEKKOLearnAI:mainfrom
Conversation
Add a pencil edit button in the message meta bar (alongside copy and time) for user messages. Clicking it fills the message content back into the chat input, allowing users to quickly edit and re-send. - Add `pendingEditContent` ref to chat store for cross-component communication - Add edit button with pencil icon to MessageItem meta bar (user messages only, hidden in readonly contexts like HistoryMessageList) - Add `readonly` prop to MessageItem to suppress edit button in history views - Watch `pendingEditContent` in ChatInput to populate textarea and auto-focus - Add `editBubble` i18n key across all 8 locales
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.
在消息的元信息栏中添加一个“铅笔编辑按钮”(与复制按钮和时间显示并列),仅对用户消息生效。点击该按钮后,会将消息内容重新填入聊天输入框,方便用户快速修改并重新发送。