Skip to content

Conversation

@jstarner
Copy link
Contributor

@jstarner jstarner commented Dec 5, 2025

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

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.
@jstarner jstarner changed the title Replace native confirmation alerts with custom delete modals Replace turbo confirmation alerts with custom delete modals Dec 5, 2025
@jstarner jstarner changed the title Replace turbo confirmation alerts with custom delete modals Replace turbo confirmation dialogs with custom delete modals Dec 5, 2025
Copy link
Member

@jorgemanrubia jorgemanrubia left a 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

@jorgemanrubia jorgemanrubia requested a review from andyra December 5, 2025 16:24
@andyra
Copy link
Contributor

andyra commented Dec 5, 2025

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

Copy link
Contributor

@andyra andyra left a 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

@jstarner jstarner requested a review from andyra December 5, 2025 20:26
@jstarner
Copy link
Contributor Author

jstarner commented Dec 5, 2025

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 🙌

Copy link
Contributor

@andyra andyra left a comment

Choose a reason for hiding this comment

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

Bingo!

Copy link
Member

@jorgemanrubia jorgemanrubia left a 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

@jorgemanrubia jorgemanrubia merged commit 4a6f28b into basecamp:main Dec 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants