mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 21:46:49 +00:00
789a95de92
The planner's two time edits of a visit called the time route straight: saving the place dialog opened from a visit, and removing a visit's time before a reorder. They skipped the visit repo's check for an older write to the same visit still in the queue, so with such a write parked or backing off the new time landed first and Try again (or the next flush) replayed the older time over it, with no version token to refuse it. Both now use the store's setAssignmentTimes, which writes through assignmentRepo.setTimes, queues behind the older write when there is one and keeps the optimistic update and rollback the other time edits have. The dialog no longer reloads the days afterwards, since the store already holds the new time and a reload would show the server's older one while the new one waits in the queue; a changed day note is set on the visit in place instead. The retry docs drop the exception they made for these two paths.
25 lines
1004 B
JSON
25 lines
1004 B
JSON
{
|
|
"api/client.ts": 1685,
|
|
"components/Admin/AdminPluginsPanel.tsx": 2274,
|
|
"components/Budget/CostsPanel.tsx": 2107,
|
|
"components/Map/MapView.tsx": 1482,
|
|
"components/Map/MapViewGL.tsx": 2572,
|
|
"components/Map/RouteCalculator.ts": 1190,
|
|
"components/PDF/TripPDF.tsx": 1025,
|
|
"components/Planner/DayPlanSidebar.tsx": 3051,
|
|
"components/Planner/PlaceFormModal.tsx": 1633,
|
|
"components/Planner/PlaceInspector.tsx": 1273,
|
|
"components/Planner/TransportModal.tsx": 1199,
|
|
"components/Studio/autoLayout.ts": 1676,
|
|
"components/Studio/bookTemplates.data.ts": 1279,
|
|
"components/Studio/TravelElements.tsx": 1745,
|
|
"mobile/screens/admin/MAdminPluginsPanel.tsx": 2105,
|
|
"mobile/screens/journey/MJourneyEntrySheet.tsx": 1060,
|
|
"mobile/screens/trip/sheets/MTransportFormSheet.tsx": 1127,
|
|
"mobile/screens/trip/tabs/MCostsTab.tsx": 1011,
|
|
"mobile/screens/trip/tabs/MPackingListTab.tsx": 1017,
|
|
"pages/atlas/useAtlas.ts": 1246,
|
|
"pages/LoginPage.tsx": 1340,
|
|
"pages/TripPlannerPage.tsx": 1081
|
|
}
|