Skip to content

Icons for templates #2221

Closed
Closed
@bpmct

Description

@bpmct

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
}

Screen Shot 2022-06-09 at 5 29 10 PM

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
}

Metadata

Metadata

Assignees

Labels

apiArea: HTTP APIsiteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions