fix(tours): offer the map comparison only where the plan map can draw it (ACT-02)

The compare switch in a tour's detail showed whenever the detail sat beside
the plan map, but the map draws no comparison in road trip mode or with the
trip overview open. Pressing it there turned the switch on while nothing
appeared on the map.

The plan map now tells the compare store whether it can draw a comparison.
The detail offers the switch only then, and turning to the road trip or the
overview, or leaving the map, ends a running comparison.
This commit is contained in:
Maurice
2026-10-20 13:09:56 +02:00
parent 6a0c54cb2f
commit ae79ab8dad
7 changed files with 75 additions and 13 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export const UNRESET_STORES: Record<string, string> = {
useStudioStore: NOT_YET,
useSystemNoticeStore: NOT_YET,
useTourActivityCompareStore:
'the actual track compared on the map; the tests that read it clear it in their own beforeEach',
'the actual track compared on the map and whether the map can draw it; the tests that read it reset both in their own beforeEach',
useTourFerrataCrossingStore: 'set by the tour map stage; the tests that read it reset it in their own beforeEach',
useTourPlaceToolStore: 'reset in the tour tests themselves to initialTourPlaceToolState()',
useTourPoiStore: 'the places found along a tour; the tests that read it clear it in their own beforeEach',