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

Add reset customization cta inside modal #3323

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

nelsonkopliku
Copy link
Member

Description

This PR:

  • adds a Reset Button in the check customization modal actions
  • properly updated the state so that non customized values are shown
  • adds minor improvements

@nelsonkopliku nelsonkopliku self-assigned this Feb 21, 2025
@nelsonkopliku nelsonkopliku requested a review from EMaksy February 21, 2025 12:48
@nelsonkopliku nelsonkopliku added enhancement New feature or request user story javascript Pull requests that update Javascript code labels Feb 21, 2025
@@ -138,11 +136,9 @@ function ChecksSelection({
customized={selectedCheck?.customized}
selectedCheck={selectedCheck}
provider={provider}
onClose={() => {
setIsCheckCustomizationModalOpen(false);
setSelectedCheck(null);
Copy link
Member Author

Choose a reason for hiding this comment

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

Removing this setSelectedCheck(null); saves us from some flickering in the UI.
It is safe because every time we open the modal the current selected check is overwritten

Copy link
Member

@EMaksy EMaksy left a comment

Choose a reason for hiding this comment

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

Hey man nice lgtm

@nelsonkopliku nelsonkopliku merged commit 9a30f2d into main Feb 21, 2025
146 of 149 checks passed
@nelsonkopliku nelsonkopliku deleted the add-reset-customization-cta-inside-modal branch February 21, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code user story
Development

Successfully merging this pull request may close these issues.

2 participants