-
Notifications
You must be signed in to change notification settings - Fork 2
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
John conroy/update workspace templates #3350
Conversation
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.
A few small questions 👍🏻
} finally { | ||
reset(); | ||
close(); | ||
} |
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.
Does this finally
clause execute even if handleSubmit
fails? Should we catch errors here as well, even if we don't do anything with them?
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.
Moved the error handling outside of the fetch hook and into the submit callback using a similar recipe to the one used in the Copy
button from an earlier PR.
context/app/static/js/components/workspaces/EditWorkspaceDialog/EditWorkspaceDialog.tsx
Outdated
Show resolved
Hide resolved
context/app/static/js/components/workspaces/EditWorkspaceDialog/EditWorkspaceDialog.tsx
Outdated
Show resolved
Hide resolved
context/app/static/js/shared-styles/cards/SelectableCard/SelectableCard.tsx
Outdated
Show resolved
Hide resolved
…tableCard.tsx Co-authored-by: Nikolay Akhmetov <[email protected]>
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.
👑
* Add hooks to update workspaces * Add store to control edit dialog * Create basic workspace name dialog * Reset form on open * Handle disabled button tooltip * Pass mouse events to tooltip button * Fix update types * Handle update errors * Dedupe workspace stores * Share workspace form fields * Jump through typescript hoops * Add step styling to modal * Pull template select step into own component * Pull out create templates hook for reuse * Add edit templates dialog * Match templates in current workspace details * Add comment * Disable templates already in workspace * Do not select disabled templates when selecting all * Add tooltip if template is already in workspace * Create reusable edit workspace dialog * Move workspace templates and datasets into swr hook * Handle reset after submit successful * Consolidate edit dialogs * Add changelog * Pass workspace datasets to new templates * Fix TS errors related to template form types (#3353) * Update context/app/static/js/shared-styles/cards/SelectableCard/SelectableCard.tsx Co-authored-by: Nikolay Akhmetov <[email protected]> * Use store instead of props * Use padding prop in stack in step * Use promise chain to avoid async submit callback * Console error error --------- Co-authored-by: John Conroy <[email protected]> Co-authored-by: Nikolay Akhmetov <[email protected]>
Towards HPM-465.
A few known issues:
mutate
request returns to refresh the workspace data. We will likely have to handle this using SWR with an optimistic UI approach.