dawarich/app/views
Claude 9fba3ce4ca
Refactor: Move trip sharing management to trips#update
Simplifies architecture by using the existing trips#update route for
sharing settings management instead of a separate route.

## Changes

**Routes**
- Removed: PATCH /trips/:id/sharing → shared/trips#update
- Now uses: PATCH /trips/:id (existing route) with sharing params

**Controllers**
- Shared::TripsController: Simplified to only handle public view (show)
- TripsController: Added update_sharing private method to handle
  sharing params when present

**Views**
- Updated JavaScript in _sharing.html.erb to use trip_path with
  nested sharing params

**Tests**
- Updated request specs to use trip_path instead of sharing_trip_path
- All params now nested under sharing key

## Benefits
- Cleaner namespace separation (Shared:: only for public access)
- Follows Rails conventions (one update route handles everything)
- Simpler routing structure
- Reduced code duplication

## Backwards Compatibility
This is a breaking change for the sharing API endpoint, but since
this feature was just implemented and hasn't been released yet,
no migration path is needed.
2025-11-05 15:54:42 +00:00
..
active_storage/blobs Add Trix editor to trips 2024-11-28 12:00:54 +01:00
application Add staging environment configuration 2025-09-26 19:48:52 +02:00
devise Fix confirmation dialogs to show only once. 2025-10-21 20:01:13 +02:00
exports Fix confirmation dialogs to show only once. 2025-10-21 20:01:13 +02:00
families Add titles to family views for better SEO and UX and update map tile URLs to use the planet dataset. 2025-10-26 11:59:06 +01:00
family/invitations Fix remembering family members layer state and refreshing locations 2025-10-21 19:54:25 +02:00
family_mailer Fix some minor stuff 2025-10-11 14:17:48 +02:00
home Fetch countries for a trip via geocoding service 2025-05-13 19:43:02 +02:00
imports Fix confirmation dialogs to show only once. 2025-10-21 20:01:13 +02:00
layouts Updte map view 2025-10-30 19:16:38 +01:00
map Updte map view 2025-10-30 19:16:38 +01:00
notifications Fix confirmation dialogs to show only once. 2025-10-21 20:01:13 +02:00
places Fix confirmation dialogs to show only once. 2025-10-21 20:01:13 +02:00
points Fix confirmation dialogs to show only once. 2025-10-21 20:01:13 +02:00
settings Fix confirmation dialogs to show only once. 2025-10-21 20:01:13 +02:00
shared Add collapsible footer to map controls and update location search icon 2025-10-14 17:30:53 +02:00
stats Updte map view 2025-10-30 19:16:38 +01:00
trips Refactor: Move trip sharing management to trips#update 2025-11-05 15:54:42 +00:00
users_mailer Add missing email templates for post-trial reminders 2025-09-13 15:37:09 +02:00
visits Fix visits overlapping issue 2025-05-17 20:10:03 +02:00