-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Feat/issue 5293 share button next to start new task #5853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/issue 5293 share button next to start new task #5853
Conversation
daniel-lxs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of small suggestions
…ility (RooCodeInc#5293) - Added ShareButton component next to Start New Task button in ChatView - Share button only appears when currentTaskItem has an ID - Added comprehensive tests for the new functionality - Fixed linting issues in test file
- Simplify className logic by extracting showShareButton and buttonClassName variables as suggested by Daniel - Remove redundant null check for currentTaskItem (ShareButton handles it internally) - Create custom VSCodeButton for share functionality at the bottom to match Start New Task button style - Keep original ShareButton component unchanged for header usage - Update test mock to match actual ShareButton null-check behavior
- Extract className logic to a variable for better readability - Remove redundant null check for currentTaskItem - Style share button to match Start New Task button appearance - Add Share text with proper icon alignment - Ensure translations work correctly for all languages
- Remove text from share button (icon only) - Adjust button widths: Start New Task 90%, Share 10% - Change share button to primary appearance to match Start New Task - Maintain same height for both buttons
- Remove text from share button (icon only) - Change share button to primary appearance to match Start New Task - Ensure both buttons have the same height - Simplify layout to let buttons size naturally
- Extract className logic to a variable for better readability - Remove redundant null check for currentTaskItem - Add share button next to Start New Task with matching primary appearance - Hide original ShareButton and create custom VSCodeButton for consistent styling
5ebeab4 to
016e1b5
Compare
|
I'm not sure about this one. I pushed a tweak to the button padding/alignment, but a few other things I'm unsure about:
I'd probably pause on this one for now and reopen once we have a chance to discuss where we want to end up here from a product perspective. |

Description
Fixes #5293
This PR adds a share button next to the "Start New Task" button to provide quick access to the same share functionality currently available in the task header, improving discoverability as requested.
Changes Made
ShareButtoncomponent import toChatView.tsxcurrentTaskItemhas an ID (indicating there's a task to share)Testing
enableButtonsstateVerification of Acceptance Criteria
Checklist
Screenshots/Demo
The share button now appears as a square button with a link icon next to the shortened "Start New Task" button, providing improved discoverability for the share functionality.

Important
Adds a share button next to "Start New Task" in
ChatView.tsx, with tests for visibility and state management.ShareButtonnext to "Start New Task" inChatView.tsxifcurrentTaskItemhas an ID and primary button text is "Start New Task".ChatView.spec.tsxfor share button visibility and state management.enableButtonsstate.This description was created by
for 994350fb3dd16819fc2a5faea5b22a88926d9bab. You can customize this summary. It will automatically update as commits are pushed.