- Notifications
You must be signed in to change notification settings - Fork1.1k
fix: show task display name in task topbar#20957
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -23,7 +23,7 @@ type TaskTopbarProps = { task: Task; workspace: Workspace }; | ||||||
| export const TaskTopbar: FC<TaskTopbarProps> = ({ task, workspace }) => { | ||||||
| return ( | ||||||
| <header className="flex flex-shrink-0 items-centergap-2p-3 border-solid border-border border-0 border-b"> | ||||||
| <TooltipProvider> | ||||||
| <Tooltip> | ||||||
| <TooltipTrigger asChild> | ||||||
| @@ -38,7 +38,9 @@ export const TaskTopbar: FC<TaskTopbarProps> = ({ task, workspace }) => { | ||||||
| </Tooltip> | ||||||
| </TooltipProvider> | ||||||
| <h1 className="m-0 pl-2 text-base font-medium max-w-[520px] truncate"> | ||||||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Just defaulting to the same value as in theTasks list view. In the backend, we also always guarantee that the display name is only 64 characters, which should not reach this maximum. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
We talked about this during our chat, unsure if we do this pattern elsewhere but it might look less magic to someone reading in the future ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. As discussed on Slack, it looks like this doesn’t exactly meet the 64-characters, which leads to the page width expanding, which isn’t ideal 🙁 | ||||||
| {task.display_name} | ||||||
| </h1> | ||||||
| {task.current_state?.uri && ( | ||||||
| <div className="flex items-center gap-2 flex-wrap ml-4"> | ||||||
Uh oh!
There was an error while loading.Please reload this page.