Skip to content

fix: show error when creating a new group fails #11560

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 3 commits into from
Jan 12, 2024
Merged

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Jan 10, 2024

Screenshot 2024-01-10 at 2 56 16 PM

Closes #10928

  • show errors on new group page
  • add a storybook case to prevent regression
  • improve the errors reported from the backend

- show errors on new group page
- add a storybook case to prevent regression
- improve the errors reported from the backend
const onCancel = () => navigate("/groups");

return (
<Margins>
<FullPageForm title="Create group">
<form onSubmit={form.handleSubmit}>
<Stack spacing={2.5}>
{Boolean(error) && <ErrorAlert error={error} />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think showing an alert + inline field errors is too much 🤔

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

Just a minor comment

@aslilac aslilac merged commit 4c3f05b into main Jan 12, 2024
@aslilac aslilac deleted the new-group-errors branch January 12, 2024 23:06
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

creating group with same name as existing group does not return error
2 participants