dawarich/app/views/trips
Claude 0c538de698
Refactor: Improve trip sharing UX with Turbo and better controls
Major improvements:
1. Use Turbo for sharing updates - no page reload, modal stays open
2. Add Stimulus copy button controller - clean implementation with 'Copied!' feedback
3. Allow updating notes/photos toggles without disabling sharing
4. Add 'Update Sharing' button to save changes while keeping sharing enabled
5. Use 'true'/'false' strings consistently instead of '1'/'0'
6. Update all request specs to use 'true'/'false' values

Technical changes:
- Wrap form in turbo_frame_tag for seamless updates
- Controller responds with turbo_stream to replace form content
- Create copy_button_controller.js for proper copy feedback
- Checkboxes now editable when sharing is enabled
- Separate 'Update Sharing' and 'Disable Sharing' actions
2025-11-07 13:01:44 +00:00
..
_countries.html.erb Show visited countries in a modal window on the Trip page 2025-10-07 21:49:58 +02:00
_distance.html.erb Fix request to a user in partial 2025-07-26 12:37:46 +02:00
_form.html.erb Properly provide default distance unit in user settings 2025-10-20 19:42:24 +02:00
_path.html.erb Properly provide default distance unit in user settings 2025-10-20 19:42:24 +02:00
_sharing.html.erb Refactor: Improve trip sharing UX with Turbo and better controls 2025-11-07 13:01:44 +00:00
_trip.html.erb Properly provide default distance unit in user settings 2025-10-20 19:42:24 +02:00
edit.html.erb Fix margins on some pages 2024-11-28 15:54:36 +01:00
index.html.erb Move trip to partial 2024-11-28 16:11:04 +01:00
new.html.erb Fix margins on some pages 2024-11-28 15:54:36 +01:00
show.html.erb UI: Move sharing controls to DaisyUI modal 2025-11-07 12:30:22 +00:00