Skip to content
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

"Save" button in modals is never re-enabled in case of failure #4026

Closed
1 of 4 tasks
rolodato opened this issue May 24, 2024 · 3 comments · Fixed by #4058
Closed
1 of 4 tasks

"Save" button in modals is never re-enabled in case of failure #4026

rolodato opened this issue May 24, 2024 · 3 comments · Fixed by #4058
Assignees
Labels
bug Something isn't working

Comments

@rolodato
Copy link
Member

rolodato commented May 24, 2024

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

When saving changes within a modal (i.e. feature states, segments, segment overrides, possibly others), the Save button is disabled while requests are still pending. However, if a request fails, the button is never re-enabled and requires a page reload to be clickable again. This effectively means losing all your UI state, which can be very frustrating.

Steps To Reproduce

See video below.

  1. Force a request initiated by saving within a modal to fail somehow. For example, manually block a request needed to save a feature using developer tools:

image

  1. Save a feature, forcing a request to be blocked
  2. The Save button is never re-enabled and requires a full page reload to work again

Expected behavior

Saving within modals should have proper error handling and eventually always re-enable the Save button.

The error message should be displayed to the user, requiring manual dismissing to allow time to copy/paste or screenshot the error.

Screenshots

save.fail.mov
@rolodato
Copy link
Member Author

Even easier way to reproduce this issue: try to create a feature with a duplicated name.

@kyle-ssg
Copy link
Member

Just to clarify, I think you're just meaning within the feature modal?

@rolodato
Copy link
Member Author

@kyle-ssg Yes that's correct, I thought I had reproduced it elsewhere but it's only in the feature modal.

@kyle-ssg kyle-ssg linked a pull request Jun 4, 2024 that will close this issue
5 tasks
@kyle-ssg kyle-ssg removed a link to a pull request Jun 4, 2024
5 tasks
@kyle-ssg kyle-ssg linked a pull request Jun 4, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants