Closed
Description
Acceptance Criteria
The template admin can configure an icon for their template, as part of the main.tf
Would be great if templates could optionally have icons instead of being limited to the first letter. Since there is already icon support for the Coder agent, I suggest using the same format, but for the Coder provider. The Coder provider already has one template-specific option: url
.
e.g:
provider "coder" {
url = "https://coder.bpmct.net" # optional: custom access URL for template
+ icon = "https://avatars.githubusercontent.com/u/2232217?s=200&v=4" # optional: custom icon for the template
}
I think this icon can also go next to the workspace. It provides more information and is more visually appealing than the letter itself.
Also somewhat interesting, templates could allow users specify a custom workspace icon
If the workspace list grabbed the icon from its own metadata and not the template's, templates can ask users for a custom icon. I don't know if anyone would use this
variable "custom_workspace_icon" {
default = ""
}
provider "coder" {
icon = var.custom_workspace_icon
}