-
Notifications
You must be signed in to change notification settings - Fork 887
feat: allow users to duplicate workspaces by parameters #10362
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9e4f999
chore: add queries for workspace build info
Parkreiner 112bc95
refactor: clean up logic for CreateWorkspacePage to support multiple …
Parkreiner 15fdfbf
chore: add custom workspace duplication hook
Parkreiner d007b86
chore: integrate mode into CreateWorkspacePageView
Parkreiner 294156e
fix: add mode to CreateWorkspacePageView stories
Parkreiner 4554895
refactor: extract workspace duplication outside CreateWorkspacePage file
Parkreiner 25bacf2
chore: integrate useWorkspaceDuplication into WorkspaceActions
Parkreiner 0947031
chore: delete unnecessary function
Parkreiner 1d4d4d7
Merge branch 'main' into mes/workspace-clone-feat
Parkreiner d71acf6
refactor: swap useReducer for useState
Parkreiner c0a8c56
fix: swap warning alert for info alert
Parkreiner 0b3e954
refactor: move info alert message
Parkreiner 7a763a9
refactor: simplify UI logic for mode alerts
Parkreiner da488fa
fix: prevent dismissed Alerts from affecting layouts
Parkreiner 5c7242f
fix: remove unnecessary prop binding
Parkreiner 98d1b1b
docs: reword comment for clarity
Parkreiner aeacda5
chore: update msw build params to return multiple params
Parkreiner 230a4f1
chore: rename duplicationReady to isDuplicationReady
Parkreiner 75b1839
chore: expose root component for testing/re-rendering
Parkreiner 7cf446f
chore: get tests in place (still have act warnings)
Parkreiner bf21656
refactor: move stuff around for clarity
Parkreiner 38ba3b2
chore: finish tests
Parkreiner 923d080
chore: revamp tests
Parkreiner 8b3d4dd
chore: merge main into branch
Parkreiner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor: clean up logic for CreateWorkspacePage to support multiple …
…modes
- Loading branch information
commit 112bc95473612dee352a27f4df13010bca5be904
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't see this function get used anywhere, but also, one concern I have with the function is that even though it groups the mutable/immutable params, they're still all in one array, so you have to iterate through it to see where one group starts, and the other stops
I feel like, if this does need to get added back down the line, I'd consider these changes:
mutable
property is alwaystrue
inside themutable
array, and alwaysfalse
inside theimmutable
array