-
Notifications
You must be signed in to change notification settings - Fork 522
Replace turbo confirmation dialogs with custom delete modals #1948
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
Replaces the standard turbo_confirm attribute with a custom dialog modal for a better user experience. - Removes `button_to_delete_card` helper in favor of inline markup. - Implements `keydown.esc->dialog#close:stop` to prevent the Escape key from inadvertently closing selected card.
Applies the custom dialog modal pattern to the board deletion workflow, matching the card deletion updates.
jorgemanrubia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks @jstarner. I like this change! Will ask for some designers here too
|
Lovely work, @jstarner! I'd suggest centering the buttons, but this looks great otherwise. Thanks for taking initiative. |
andyra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest centering the buttons via .justify-center
Thank you @andyra and appreciate the feedback! Love the work y'all are doing and happy to be able to contribute. I've updated the buttons to be centered and included updated screenshots 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bingo!
jorgemanrubia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @jstarner
Description
This PR improves the deletion UX for cards and boards by replacing the browser-native
turbo_confirmdialogs with custom, styled modals.Changes
app/views/cards/_delete.html.erbto implement custom delete confirmation modal.app/views/boards/edit/_delete.html.erbto use the same accessible modal pattern.button_to_delete_cardhelper method fromapp/helpers/cards_helper.rb.Before


After

