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

feat: create experimental CreateWorkspacePage and dynamic-parameters experiment#17240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jaaydenh merged 4 commits intomainfromjaaydenh/dynamic-params-experiment
Apr 3, 2025

Conversation

jaaydenh
Copy link
Contributor

@jaaydenhjaaydenh commentedApr 3, 2025
edited
Loading

The purpose of the PR is to make a copy of the CreateWorkspacePage and create an experimental version that will use when the dynamic-parameters experiment is enabled.

The Figma designs for this page are still in progress but this first PR will start to move to the new designs.

Figma design:https://www.figma.com/design/SMg6H8VKXnPSkE6h9KPoAD/UX-Presets?node-id=2121-2383&t=CtgPUz8eNsTI5b1t-1

Much of the existing code will be left behind and will slowly migrated over the course of several PRs to make sure no existing functionality is forgotten in the migration to dynamic paramaters.

Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR introduces an experimental workspace creation page and enables a dynamic-parameters experiment mode. Key changes include:

  • Routing update in site/src/router.tsx to use an experimental router component.
  • Creation of a new experimental workspace page (CreateWorkspacePageExperimental) with enhanced dynamic parameter and auto-create logic.
  • Updates to experiment flags and documentation across API, deployment, and apidoc files.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
site/src/router.tsxUpdates the route to reference the experimental workspace creation router.
site/src/pages/CreateWorkspacePage/CreateWorkspacePageExperimental.tsxAdds a new experimental workspace creation flow with dynamic parameters and auto-creation logic.
site/src/pages/CreateWorkspacePage/CreateWorkspaceExperimentRouter.tsxRoutes to the experimental or standard workspace page based on the dynamic-parameters flag.
site/src/api/typesGenerated.tsRegisters the new "dynamic-parameters" experiment.
docs/reference/api/schemas.mdDocuments the new "dynamic-parameters" experiment.
codersdk/deployment.goIntroduces the dynamic parameters experiment flag in deployment settings.
coderd/apidoc/docs.goUpdates API documentation to include the dynamic parameters experiment.
Files not reviewed (1)
  • coderd/apidoc/swagger.json: Language not supported
Comments suppressed due to low confidence (2)

site/src/pages/CreateWorkspacePage/CreateWorkspaceExperimentRouter.tsx:3

  • [nitpick] Consider aligning naming conventions between CreateWorkspacePageExperimental and CreateWorkspaceExperimentRouter for consistency, such as using 'Experimental' in both component names.
import CreateWorkspacePage from "./CreateWorkspacePage";

site/src/pages/CreateWorkspacePage/CreateWorkspacePageExperimental.tsx:122

  • Consider adding tests to cover the automatic workspace creation logic and dynamic parameter processing to ensure correct behavior under various scenarios.
const automateWorkspaceCreation = useEffectEvent(async () => {

@jaaydenhjaaydenh requested a review fromaslilacApril 3, 2025 11:01
Copy link
Member

@aslilacaslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

looks good!

@jaaydenhjaaydenh merged commit54ff17b intomainApr 3, 2025
36 checks passed
@jaaydenhjaaydenh deleted the jaaydenh/dynamic-params-experiment branchApril 3, 2025 20:39
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 3, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

Copilot code reviewCopilotCopilot left review comments

@aslilacaslilacaslilac approved these changes

Assignees

@jaaydenhjaaydenh

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jaaydenh@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp