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

Preferences: Add confirmation modal when saving org preferences #59119

Merged
merged 2 commits into from Nov 22, 2022

Conversation

JoaoSilvaGrafana
Copy link
Contributor

What is this feature?

This adds a confirmation modal so the user recognizes that they are making changes to the whole org and not just their own preferences:

Screenshot 2022-11-22 at 14 00 30

Why do we need this feature?

At the moment if you save org preferences it is easy to forget that that will change preferences for everyone in the organization (it has happened that someone changed the language for the whole organization).

Who is this feature for?

Everyone who uses org preferences

Which issue(s) does this PR fix?:

Fixes #58635

commit 2590aeef7216ce19415b86ebb4533bc84297a881
Author: Joao Silva <joao.silva@grafana.com>
Date:   Tue Nov 22 13:55:27 2022 +0000

    user essentials mob! :trident:

    lastFile:packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.story.tsx

commit 5318737da24ba109fddecef2d6c26b1564af3ba9
Author: Leodegario Pasakdal <leodegario.pasakdal@grafana.com>
Date:   Tue Nov 22 11:37:37 2022 +0100

    user essentials mob! :trident:

    lastFile:public/app/features/org/OrgDetailsPage.tsx

commit f0f7a7e92bb41c337e0da1068d21f2e27523c304
Author: Ashley Harrison <ashley.harrison@grafana.com>
Date:   Tue Nov 22 10:24:52 2022 +0000

    user essentials mob! :trident:

    lastFile:public/app/core/components/SharedPreferences/SharedPreferences.tsx

commit ed80e498ef72e2945bdf2202da6e50abafc0b546
Author: joshhunt <josh@trtr.co>
Date:   Tue Nov 22 10:11:43 2022 +0000

    user essentials mob! :trident:

commit 435efbfca67a41714c9ca2c6c2d8a02be5685425
Author: Joao Silva <joao.silva@grafana.com>
Date:   Tue Nov 22 09:59:05 2022 +0000

    user essentials mob! :trident:

    lastFile:public/app/core/components/SharedPreferences/SharedPreferences.tsx

Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Leodegario Pasakdal <leodegario.pasakdal@grafana.com>
@JoaoSilvaGrafana JoaoSilvaGrafana added this to the 9.3.0 milestone Nov 22, 2022
@JoaoSilvaGrafana JoaoSilvaGrafana requested review from a team, joshhunt, ashharrison90, jackw, mdvictor and supilee and removed request for a team November 22, 2022 14:02
Copy link
Contributor

@ashharrison90 ashharrison90 left a comment

Choose a reason for hiding this comment

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

mob! 🔱

@JoaoSilvaGrafana JoaoSilvaGrafana merged commit f8dc333 into main Nov 22, 2022
@JoaoSilvaGrafana JoaoSilvaGrafana deleted the ue-org-preferences branch November 22, 2022 15:47
@grafanabot
Copy link
Contributor

The backport to v9.3.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-59119-to-v9.3.x origin/v9.3.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x f8dc333ee468d2d38257b867724d26dcf621b0ac
# Push it to GitHub
git push --set-upstream origin backport-59119-to-v9.3.x
git switch main
# Remove the local backport branch
git branch -D backport-59119-to-v9.3.x

Then, create a pull request where the base branch is v9.3.x and the compare/head branch is backport-59119-to-v9.3.x.

@grafanabot grafanabot added the backport-failed Failed to generate backport PR. Please resolve conflicts and create one manually. label Nov 22, 2022
JoaoSilvaGrafana added a commit that referenced this pull request Nov 22, 2022
GuYounes pushed a commit to paul-wurth/BIXpert that referenced this pull request Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/frontend backport v9.3.x backport-failed Failed to generate backport PR. Please resolve conflicts and create one manually. mob session Something solved during a mob session
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OrgPreferences: Show confirm modal when making changes to the org preferences
3 participants