Add MessageEditor component
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 283
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
It would be great if AI Elements could also expose a MessageEditor component that would allow users to edit messages with the same / similar interface of our existing <PromptInput /> component so that one can e.g., delete file attachments or other context attachments from a previous message before sending it again.
Here is a reference to how a simple version (that doesn't match PromptInput) looks like in Chat SDK:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing PromptInput component and comparing its interface with the referenced Chat SDK implementation at components/message-editor.tsx. Add a MessageEditor that follows the PromptInput-style interface and lets users remove file or context attachments before resending; done means the component is exposed and supports that editing flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100