fix(tours): the checklist keeps to its tour, its state and its focus

A decision answered after another tour was opened no longer replaces that
tour's checklist. A decision made offline on a checklist already older than
the route stays marked as such, and once online a bench from a write made
offline waits for the queue to replay, then takes in the server's. While
the checklist reads again it stays in view, locked, so a panel open on the
map keeps its note. A saved tour turned into a paddle tour asks to be saved
first, a vanished obstacle stays among the rows, Next follows the list
order and keeps the focus in the panel, a note closes only once saved, the
earlier choice in review is named for screen readers too, planning a
portage is offered to editors only, and the map card scrolls within the
screen. A tooltip of several lines breaks at them. A page test waits for
the tours row instead of reading it at once.
This commit is contained in:
Maurice
2026-10-17 02:07:22 +00:00
parent 2a4b71b3d9
commit a7f5a114e6
15 changed files with 404 additions and 89 deletions
@@ -29,6 +29,7 @@ function checklistOf(
stale: false,
dirty: false,
canDecide: true,
canPlanPortage: true,
savingKey: null,
selectedKey: null,
dialogKey: null,
@@ -39,10 +40,10 @@ function checklistOf(
nextOf: () => null,
next: vi.fn<PaddleChecklist['next']>(),
planPortage: vi.fn<PaddleChecklist['planPortage']>(),
decide: vi.fn<PaddleChecklist['decide']>(() => Promise.resolve()),
setNote: vi.fn<PaddleChecklist['setNote']>(() => Promise.resolve()),
clear: vi.fn<PaddleChecklist['clear']>(() => Promise.resolve()),
keep: vi.fn<PaddleChecklist['keep']>(() => Promise.resolve()),
decide: vi.fn<PaddleChecklist['decide']>(() => Promise.resolve(true)),
setNote: vi.fn<PaddleChecklist['setNote']>(() => Promise.resolve(true)),
clear: vi.fn<PaddleChecklist['clear']>(() => Promise.resolve(true)),
keep: vi.fn<PaddleChecklist['keep']>(() => Promise.resolve(true)),
memberName: (id) => (id === 1 ? 'Anna' : null),
...overrides,
};