Skip to content

feat: add icon and description to preset dropdown - #21694

Merged
jakehwll merged 4 commits into
mainfrom
jakehwll/20598-task-preset-icons
Jan 28, 2026
Merged

jakehwll merged 4 commits into
mainfrom
jakehwll/20598-task-preset-icons

Conversation

@jakehwll

@jakehwll jakehwll commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #20598

This pull-request implements a very basic change to also render the icon of the Preset when we've specifically defined one within the template. Furthermore, theres a ⓘ icon with a description.

Preview

CleanShot 2026-01-27 at 20 15 29@2x

@github-actions

github-actions Bot commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

<SelectContent>
{presets?.toSorted(sortByDefault).map((preset) => (
<SelectItem value={preset.ID} key={preset.ID}>
<span className="overflow-hidden text-ellipsis block">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will note here, I've removed the overflow and text-ellipsis classes, however these don't work in main either. I am currently looking at how to resolve this issue (and I'll raise something follow-up later).

Image

@coderagents

coderagents Bot commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

Documentation Check

No Changes Needed

This PR adds icon display support to the Tasks preset dropdown, bringing UI parity with the workspace creation screen. The existing documentation in docs/admin/templates/extending-templates/parameters.md already covers how to define icons for workspace presets using the icon field.

Since this is a UI-only enhancement with no new configuration or API changes, no documentation updates are required. Users who have already defined icons in their workspace presets will automatically see them displayed in the Tasks UI after this change.


Automated review via Coder Tasks

@jakehwll jakehwll changed the title feat: implement icon to preset dropdown feat: add icon and description to preset dropdown Jan 27, 2026
@jakehwll
jakehwll merged commit 7a8d8d2 into main Jan 28, 2026
27 of 29 checks passed
@jakehwll
jakehwll deleted the jakehwll/20598-task-preset-icons branch January 28, 2026 07:51
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tasks presets do not show icons and descriptions

2 participants