fizzy icon indicating copy to clipboard operation
fizzy copied to clipboard

Replace turbo confirmation dialogs with custom delete modals

Open jstarner opened this issue 3 weeks ago • 2 comments

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.erb to implement custom delete confirmation modal.
  • Board Deletion: Updated app/views/boards/edit/_delete.html.erb to use the same accessible modal pattern.
  • Cleanup: Removed the now unused button_to_delete_card helper method from app/helpers/cards_helper.rb.

Before Screenshot 2025-12-04 at 9 56 16 PM Screenshot 2025-12-04 at 9 56 08 PM

After Screenshot 2025-12-05 at 3 22 10 PM Screenshot 2025-12-05 at 3 22 38 PM

jstarner avatar Dec 05 '25 02:12 jstarner

Lovely work, @jstarner! I'd suggest centering the buttons, but this looks great otherwise. Thanks for taking initiative.

andyra avatar Dec 05 '25 20:12 andyra

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 🙌

jstarner avatar Dec 05 '25 20:12 jstarner