feat(site): connect open_in parameter (#16036)

Second step to resolve [open_in
issue](https://github.com/coder/terraform-provider-coder/issues/297)

This PR improves the way the open_in parameter is forwarded across the
code, changing the last `string` to const everywhere.

Also make sure it is available and forwarded up to the `CreateLink`
component.
This commit is contained in:
Vincent Vielle
2025-01-07 18:08:03 +01:00
committed by GitHub
parent b5c85a8abd
commit 289338f19e
13 changed files with 510 additions and 466 deletions
+6 -6
View File
@@ -119,7 +119,7 @@ of the template will be used.
"hidden": true,
"icon": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"open_in": "string",
"open_in": "slim-window",
"sharing_level": "owner",
"slug": "string",
"subdomain": true,
@@ -350,7 +350,7 @@ curl -X GET http://coder-server:8080/api/v2/users/{user}/workspace/{workspacenam
"hidden": true,
"icon": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"open_in": "string",
"open_in": "slim-window",
"sharing_level": "owner",
"slug": "string",
"subdomain": true,
@@ -605,7 +605,7 @@ of the template will be used.
"hidden": true,
"icon": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"open_in": "string",
"open_in": "slim-window",
"sharing_level": "owner",
"slug": "string",
"subdomain": true,
@@ -835,7 +835,7 @@ curl -X GET http://coder-server:8080/api/v2/workspaces \
"hidden": true,
"icon": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"open_in": "string",
"open_in": "slim-window",
"sharing_level": "owner",
"slug": "string",
"subdomain": true,
@@ -1067,7 +1067,7 @@ curl -X GET http://coder-server:8080/api/v2/workspaces/{workspace} \
"hidden": true,
"icon": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"open_in": "string",
"open_in": "slim-window",
"sharing_level": "owner",
"slug": "string",
"subdomain": true,
@@ -1414,7 +1414,7 @@ curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/dormant \
"hidden": true,
"icon": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"open_in": "string",
"open_in": "slim-window",
"sharing_level": "owner",
"slug": "string",
"subdomain": true,