Skip to content

Commit c64f5c3

Browse files
authored
Merge branch 'main' into jaaydenh/checkbox-component
2 parents d38f133 + 54ff17b commit c64f5c3

File tree

9 files changed

+807
-7
lines changed

9 files changed

+807
-7
lines changed

coderd/apidoc/docs.go

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codersdk/deployment.go

+1
Original file line numberDiff line numberDiff line change
@@ -3194,6 +3194,7 @@ const (
31943194
ExperimentNotifications Experiment = "notifications" // Sends notifications via SMTP and webhooks following certain events.
31953195
ExperimentWorkspaceUsage Experiment = "workspace-usage" // Enables the new workspace usage tracking.
31963196
ExperimentWebPush Experiment = "web-push" // Enables web push notifications through the browser.
3197+
ExperimentDynamicParameters Experiment = "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

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/typesGenerated.ts

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

0 commit comments

Comments
 (0)