Trey t
2a8bfeeff8
refactor(itinerary): replace anchor-based positioning with day/sortOrder
Replace complex anchor system (anchorType, anchorId, anchorDay) with
simple (day: Int, sortOrder: Double) positioning for custom items.
Changes:
- CustomItineraryItem: Remove anchor fields, add day and sortOrder
- CKModels: Add migration fallback from old CloudKit fields
- ItineraryTableViewController: Add calculateSortOrder() for midpoint insertion
- TripDetailView: Simplify callbacks, itinerarySections, and routeWaypoints
- AddItemSheet: Take simple day parameter instead of anchor
- SavedTrip: Update LocalCustomItem SwiftData model
Benefits:
- Items freely movable via drag-and-drop
- Route waypoints follow exact visual order
- Simpler mental model: position = (day, sortOrder)
- Midpoint insertion allows unlimited reordering
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 09:47:11 -06:00
..
2026-01-08 20:20:03 -06:00
2026-01-13 13:16:40 -06:00
2026-01-16 00:31:44 -06:00
2026-01-13 19:18:55 -06:00
2026-01-09 10:30:09 -06:00
2026-01-13 19:18:55 -06:00
2026-01-13 19:18:55 -06:00
2026-01-17 09:47:11 -06:00
2026-01-16 00:31:44 -06:00
2026-01-13 18:27:56 -06:00
2026-01-13 22:03:22 -06:00
2026-01-08 11:31:04 -06:00
2026-01-08 20:20:03 -06:00
2026-01-12 11:04:52 -06:00
2026-01-12 20:36:36 -06:00
2026-01-08 13:25:27 -06:00
2026-01-08 13:25:27 -06:00
2026-01-13 19:18:55 -06:00
2026-01-11 22:22:29 -06:00
2026-01-14 23:59:40 -06:00
2026-01-08 20:20:03 -06:00
2026-01-12 09:24:33 -06:00
2026-01-08 20:20:03 -06:00
2026-01-08 20:20:03 -06:00
2026-01-13 13:16:40 -06:00
2026-01-14 11:36:13 -06:00
2026-01-13 19:18:55 -06:00
2026-01-16 19:00:52 -06:00
2026-01-08 20:20:03 -06:00