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

Show a confirmation modal on reset changes and move reset changes button to next to the right #7562

Merged
merged 1 commit into from
May 25, 2022

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented May 25, 2022

This PR places both destructive edit actions in the same part of the UI to avoid potential errors from users clicking the reset changes button by accident instead of pressing save changes.

The confirmation modal is a second layer of protection in the event that the reset button was pressed accidentally.

It now looks like this:

screenshot of the Keystone Admin UI item view with "No changes" text next to a delete button at the bottom of the page
screenshot of the Keystone Admin UI item view with a "Reset changes" button next to a delete button at the bottom of the page
screenshot of a Keystone Modal that says Are you sure you want to reset changes? with buttons to cancel and reset changes

This has already been reviewed by @raveling together with #7561.

@emmatown emmatown requested a review from a team May 25, 2022 05:32
@changeset-bot
Copy link

changeset-bot bot commented May 25, 2022

🦋 Changeset detected

Latest commit: b59c789

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@keystone-6/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented May 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
keystone-next-docs ✅ Ready (Inspect) Visit Preview May 25, 2022 at 5:32AM (UTC)

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@emmatown emmatown merged commit 5ca0d00 into main May 25, 2022
@emmatown emmatown deleted the reset-changes-button-modal branch May 25, 2022 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants