mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
feat(tours): the obstacle checklist, the decision panel and the safety note in the planner
PAD-06 and PAD-09 on screen. A paddle tour open in the planner or shown as recorded carries a checklist card: the obstacles of the data along its route in route order with the paddler's own portages and locks among them, each with its status, its paddling rule and the SUP advice at a lock, and the earlier decisions the route or the data no longer carries behind a fold. A row moves the camera onto the obstacle and the other parts of its lock and opens its card on the map, where the decision panel sits: four choices, the notices that stay after a choice (a ban, the SUP advice, a portage still to plan), the date of the last check on site, a note and who decided when. An object the map does not hold opens in a dialog instead. Deciding waits while the route has unsaved changes, and a stale or dirty list is dimmed, never hidden. The tours list, the desktop day plan and the phone day plan show the bench as one pill, the tour detail shows it with the data's date, and every paddle tour reaches the safety note from its footer. Nothing reads as safe where TREK knows nothing, and nothing blocks.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// A tour answer written to the cache (PAD-06): its control points, and where it
|
||||
// came from and its checklist kept from the cached row when the answer lacks them.
|
||||
import type { TourListItem } from '@trek/shared';
|
||||
import type { TourListItem, TourProvenance } from '@trek/shared';
|
||||
import 'fake-indexeddb/auto';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
|
||||
@@ -32,10 +32,10 @@ const waypoints = [
|
||||
{ lat: 49.2, lng: 12, role: 'start' as const, sequence: 0 },
|
||||
{ lat: 49.2, lng: 12.01, role: 'end' as const, sequence: 1 },
|
||||
];
|
||||
const provenance = {
|
||||
origin: 'trek' as const,
|
||||
const provenance: TourProvenance = {
|
||||
origin: 'trek',
|
||||
createdAt: null,
|
||||
source: null,
|
||||
source: { kind: 'trek' },
|
||||
derivedFrom: null,
|
||||
plannedOver: false,
|
||||
editedLocally: null,
|
||||
|
||||
Reference in New Issue
Block a user