feat(desktop): add Revert and Fork actions to user messages#9665
Closed
bilalbayram wants to merge 8 commits intoanomalyco:devfrom
Closed
feat(desktop): add Revert and Fork actions to user messages#9665bilalbayram wants to merge 8 commits intoanomalyco:devfrom
bilalbayram wants to merge 8 commits intoanomalyco:devfrom
Conversation
- Fix icon name from dots-horizontal to dot-grid - Wrap trigger in span for data-slot attribute - Use role-based selectors for menu items (data-slot gets overwritten) - Fix message ID access pattern (message.info.id) - Simplify fork test to verify navigation without prompt check
- Add context-menu.css with proper styling for right-click menu - Fix icon placement to be inside message content area - Use ghost variant for trigger button - Restructure DOM for correct absolute positioning
Move the three-dot menu button from a separate overlay to inside the user message actions area, next to the existing copy button. Both now appear together on hover over the user message text. - Add actions prop to Message, UserMessageDisplay, and SessionTurn - Create MessageActionsMenu component for the dropdown trigger - Simplify MessageActions to just be the context menu wrapper - Update CSS to use flex layout for action buttons
Contributor
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
6 tasks
Contributor
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
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.
What does this PR do?
Fixes #9661
Adds Revert and Fork message actions to the desktop/web app, bringing feature parity with the CLI TUI.
Screenshots
Hover Button
Right-Click Menu
Changes
packages/app/src/components/message-actions.tsx- New MessageActions and MessageActionsMenu componentspackages/ui/src/components/context-menu.tsx- New ContextMenu component (wraps Kobalte)packages/ui/src/components/message-part.tsx- Addedactionsprop to render custom action buttonspackages/ui/src/components/session-turn.tsx- Pass actions through to Message componentpackages/app/e2e/message-actions.spec.ts- E2E tests for all actionsHow did you verify your code works?