fizzy
fizzy copied to clipboard
Replace turbo confirmation dialogs with custom delete modals
Description
This PR improves the deletion UX for cards and boards by replacing the browser-native turbo_confirm dialogs with custom, styled modals.
Changes
- Card Deletion: Added
app/views/cards/_delete.html.erbto implement custom delete confirmation modal. - Board Deletion: Updated
app/views/boards/edit/_delete.html.erbto use the same accessible modal pattern. - Cleanup: Removed the now unused
button_to_delete_cardhelper method fromapp/helpers/cards_helper.rb.
Before
After
Lovely work, @jstarner! I'd suggest centering the buttons, but this looks great otherwise. Thanks for taking initiative.
Lovely work, @jstarner! I'd suggest centering the buttons, but this looks great otherwise. Thanks for taking initiative.
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 🙌