-
Notifications
You must be signed in to change notification settings - Fork 974
refactor: replace task prompt by workspace name in the topbar #19531
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
base: main
Are you sure you want to change the base?
Conversation
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.
Things look really good overall! Just had some ideas for tweaking a few things
@@ -30,21 +37,71 @@ export const TaskTopbar: FC<TaskTopbarProps> = ({ task }) => { | |||
</Tooltip> | |||
</TooltipProvider> | |||
|
|||
<h1 className="m-0 text-base font-medium truncate">{task.prompt}</h1> | |||
<h1 className="m-0 ml-2 text-base font-medium truncate"> |
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.
I think that technically it won't be a huge deal, but could we swap the ml-2
for pl-2
? That would reduce the risk of CSS styling side effects
</RouterLink> | ||
</Button> | ||
<div className="ml-auto gap-2 flex items-center"> | ||
<TooltipProvider delayDuration={0}> |
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.
Do we want the duration to be set so aggressively low? Radix's default value is 700ms
return ( | ||
<Button | ||
disabled={showCopiedSuccess} | ||
onClick={copyToClipboard} | ||
size="sm" | ||
variant="subtle" | ||
className="p-0 min-w-0" | ||
> | ||
{showCopiedSuccess ? ( | ||
<> | ||
<CheckIcon /> Copied! | ||
</> | ||
) : ( | ||
<> | ||
<CopyIcon /> Copy | ||
</> | ||
)} | ||
</Button> | ||
); |
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.
In isolation, I think this is perfectly fine, but do we want to centralize the implementation for this, so we can make sure the UI stays more consistent?
I'm seeing a few other buttons in the codebase that are wired up very similarly (making a call to useClipboard
, using the CheckIcon
and CopyIcon
components), and I'm just worried about them drifting over time
Fixes #19524
Screenshot:
Demo:
Screen.Recording.2025-08-25.at.14.59.15.mov
Changes: