mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user