mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
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:
@@ -330,7 +330,8 @@ function EmptyLine({ summary }: { summary: PaddleCheck | null }) {
|
||||
/** The rows along the route, then the earlier decisions; dimmed, never hidden, while they may not match the route. */
|
||||
function CheckList({ checklist, check }: { checklist: PaddleChecklist; check: TourObstacleCheck }) {
|
||||
const { rows, earlier } = useMemo(() => checklistRows(check), [check]);
|
||||
const dimmed = checklist.dirty || checklist.stale;
|
||||
// Dimmed while it may not match the route, and while the list it came from reads again.
|
||||
const dimmed = checklist.dirty || checklist.stale || checklist.status === 'loading';
|
||||
return (
|
||||
<div data-testid="paddle-check-list" className={`flex flex-col gap-1.5 ${dimmed ? 'opacity-60' : ''}`}>
|
||||
{rows.length > 0 ? (
|
||||
|
||||
Reference in New Issue
Block a user