Skip to content

fix(dashboards): Alert on committing changes #93605

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

Conversation

narsaynorath
Copy link
Member

This fixes the issue where if a user submits changes and the saving is taking a long time, when the user attempts to refresh they'll query old data. Now we at least indicate to the user that there are possibly unsaved changes so they can wait. This will alert on dashboard saves (edit mode saving) to any updates by adding or editing widgets

This is only applied to the before unload listener because I think it's unnecessary to warn on this for navigations, since likely if you navigate away you're leaving the view long enough for it to commit properly before returning.

This fixes the issue where if a user submits changes and the saving is
taking a long time, when the user attempts to refresh they'll query old
data. Now we at least indicate to the user that there are possibly
unsaved changes so they can wait.

This is only applied to the before unload listener because I think it's
unnecessary to warn on this for navigations, since likely if you
navigate away you're leaving the view long enough for it to commit
properly before returning.
@narsaynorath narsaynorath requested a review from a team as a code owner June 16, 2025 14:55
@narsaynorath narsaynorath changed the title fix(dashboards): Store state when committing changes and alert fix(dashboards): Alert on committing changes Jun 16, 2025
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 16, 2025
@narsaynorath narsaynorath merged commit 621fff7 into master Jun 17, 2025
47 checks passed
@narsaynorath narsaynorath deleted the narsaynorath/dain-621-add-warning-during-ongoing-saves-to-alert-users-for branch June 17, 2025 18:11
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
This fixes the issue where if a user submits changes and the saving is
taking a long time, when the user attempts to refresh they'll query old
data. Now we at least indicate to the user that there are possibly
unsaved changes so they can wait. This will alert on dashboard saves
(edit mode saving) to any updates by adding or editing widgets

This is only applied to the before unload listener because I think it's
unnecessary to warn on this for navigations, since likely if you
navigate away you're leaving the view long enough for it to commit
properly before returning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants