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

feat(schema-validation): add confirmation modal when applying rules, add explicit editing state COMPASS-8861 #6766

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Mar 4, 2025

This is most of COMPASS-8861, I'd like to do the toasts separately as they can be in a separate pr from this work without any conflicts.

Designs: https://www.figma.com/design/CBHJriBQZ2qxMxtnXFgDxJ/EXPO-3174-%3A-Export-Schema-%2B-Validation-Detection?node-id=1309-40813&t=ouDByoHIQallPTXr-1

Screenshots
Screenshot 2025-03-03 at 3 49 42 PM Screenshot 2025-03-03 at 3 49 48 PM Screenshot 2025-03-03 at 3 49 55 PM

We could refactor the store here to have fewer reducers to simplify some of the actions here. Probably not worth making part of this work, but something that is on the mind with these changes. Removing some of the debouncing and cleaning up the fetching of existing validation would be nice as well.

@paula-stacho
Copy link
Contributor

paula-stacho commented Mar 4, 2025

I'm seeing a different copy + option to not show the modal again in the designs, are we looking at the same version?

Screenshot 2025-03-04 at 14 06 57

@Anemy
Copy link
Member Author

Anemy commented Mar 4, 2025

@paula-stacho I just with Misba on the designs. We might use this wording in the pr instead of whats in the designs to be more inline with other confirmation modals in Compass (save aggregation for instance). I did miss that option not to show the modal again though thanks! I'll push up a commit today.

@Anemy
Copy link
Member Author

Anemy commented Mar 4, 2025

@paula-stacho I created a new ticket for the "don't show this message again" checkbox: https://jira.mongodb.org/browse/COMPASS-9076
I think we probably want something generic there that's on the useConfirmation hook and didn't want to hack in a confirmation modal into this pr as there are already a lot of changes.

Copy link
Contributor

@paula-stacho paula-stacho left a comment

Choose a reason for hiding this comment

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

Look great! Thanks for fixing additional details!

@Anemy Anemy merged commit dad404d into main Mar 5, 2025
55 checks passed
@Anemy Anemy deleted the COMPASS-8861 branch March 5, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants