-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Improve Workspace timeout settings error UX #18925
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
Improve Workspace timeout settings error UX #18925
Conversation
Thanks for working on this, @Siddhant-K-code! The error message actually already showed the important part "Invalid custom unit", but swallowed by the rest of the message so people miss it. Could we change the text to something like "Timeout unit is invalid. Make sure to use Let me loop in @loujaybee so I don't butcher our error messages. |
I agree with your observation, @laushinka, At the moment, the error message originates from the server side, with the prefix ( gitpod/components/gitpod-protocol/src/gitpod-service.ts Lines 346 to 353 in 2a217ae
|
@selfcontained Could you have a look please whether it makes sense? |
/gh run recreate-vm=true |
/unhold |
@@ -70,10 +71,11 @@ export default function Preferences() { | |||
); | |||
} | |||
} | |||
// Reset creationError to avoid displaying the error message and toast the success message |
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.
This would have been a good opportunity to refactor this into a react-query mutation, which handles the error state for us automatically.
@@ -70,10 +71,11 @@ export default function Preferences() { | |||
); | |||
} | |||
} | |||
// Reset creationError to avoid displaying the error message and toast the success message | |||
setCreationError(undefined); |
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.
I probably would have gone with a toast here for the error instead of an inline one.
Description
Screen.Recording.2023-10-14.at.5.00.03.PM.mov
Screen.Recording.2023-10-14.at.4.56.34.PM.mov
Summary generated by Copilot
🤖 Generated by Copilot at b1a8634
Improve error handling and feedback for custom workspace timeout in user preferences. Refactor
Preferences.tsx
to use vertical flex layout.Related Issue(s)
Fixes EXP-755
How to test
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold