mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: support icon and description in preset (#18977)
## Description This PR adds support for `description` and `icon` fields to `template_version_presets`. These fields will allow displaying richer information for presets in the UI, improving the user experience when creating a workspace. Both fields are optional, non-nullable, and default to empty strings. ## Changes * Database migration with the addition of `description VARCHAR(128)` and `icon VARCHAR(256)` columns to the `template_version_presets` table. * Updated the `CreateWorkspacePageView` in the UI Note: UI changes will be addressed in a separate PR
This commit is contained in:
Generated
+4
@@ -2914,7 +2914,9 @@ curl -X GET http://coder-server:8080/api/v2/templateversions/{templateversion}/p
|
||||
[
|
||||
{
|
||||
"default": true,
|
||||
"description": "string",
|
||||
"desiredPrebuildInstances": 0,
|
||||
"icon": "string",
|
||||
"id": "string",
|
||||
"name": "string",
|
||||
"parameters": [
|
||||
@@ -2941,7 +2943,9 @@ Status Code **200**
|
||||
|------------------------------|---------|----------|--------------|-------------|
|
||||
| `[array item]` | array | false | | |
|
||||
| `» default` | boolean | false | | |
|
||||
| `» description` | string | false | | |
|
||||
| `» desiredPrebuildInstances` | integer | false | | |
|
||||
| `» icon` | string | false | | |
|
||||
| `» id` | string | false | | |
|
||||
| `» name` | string | false | | |
|
||||
| `» parameters` | array | false | | |
|
||||
|
||||
Reference in New Issue
Block a user