Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54ff17b

Browse files
authored
feat: create experimental CreateWorkspacePage and dynamic-parameters experiment (#17240)
The purpose of the PR is to make a copy of the CreateWorkspacePage andcreate an experimental version that will use when the dynamic-parametersexperiment is enabled.The Figma designs for this page are still in progress but this first PRwill start to move to the new designs.Figma design:https://www.figma.com/design/SMg6H8VKXnPSkE6h9KPoAD/UX-Presets?node-id=2121-2383&t=CtgPUz8eNsTI5b1t-1Much of the existing code will be left behind and will slowly migratedover the course of several PRs to make sure no existing functionality isforgotten in the migration to dynamic paramaters.
1 parentae44ecf commit54ff17b

File tree

9 files changed

+807
-7
lines changed

9 files changed

+807
-7
lines changed

‎coderd/apidoc/docs.go

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎codersdk/deployment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3194,6 +3194,7 @@ const (
31943194
ExperimentNotificationsExperiment="notifications"// Sends notifications via SMTP and webhooks following certain events.
31953195
ExperimentWorkspaceUsageExperiment="workspace-usage"// Enables the new workspace usage tracking.
31963196
ExperimentWebPushExperiment="web-push"// Enables web push notifications through the browser.
3197+
ExperimentDynamicParametersExperiment="dynamic-parameters"// Enables dynamic parameters when creating a workspace.
31973198
)
31983199

31993200
// ExperimentsAll should include all experiments that are safe for

‎docs/reference/api/schemas.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/api/typesGenerated.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import{useDashboard}from"modules/dashboard/useDashboard";
2+
importtype{FC}from"react";
3+
importCreateWorkspacePagefrom"./CreateWorkspacePage";
4+
importCreateWorkspacePageExperimentalfrom"./CreateWorkspacePageExperimental";
5+
6+
constCreateWorkspaceExperimentRouter:FC=()=>{
7+
const{ experiments}=useDashboard();
8+
9+
constdynamicParametersEnabled=experiments.includes("dynamic-parameters");
10+
11+
if(dynamicParametersEnabled){
12+
return<CreateWorkspacePageExperimental/>;
13+
}
14+
15+
return<CreateWorkspacePage/>;
16+
};
17+
18+
exportdefaultCreateWorkspaceExperimentRouter;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp