Skip to content

feat(view): map is the default landing view (list when offline) - #27

Merged
Chartres merged 2 commits into
mainfrom
v1.2/map-default-view
Aug 10, 2026
Merged

Chartres merged 2 commits into
mainfrom
v1.2/map-default-view

Conversation

@Chartres

Copy link
Copy Markdown
Owner

Makes the map the landing view (the app's edge is times ON the map). Default when no ?zobrazeni: map if online, seznam if offline. Explicit ?zobrazeni round-trips. Unit + e2e migrated to be view-explicit; new map-default landing test added.

Tallies on branch: 234 unit + 50 e2e pass, tsc clean.

🤖 Generated with Claude Code

Chartres and others added 2 commits August 10, 2026 02:17
The app's edge is times shown ON the map without tapping, so lead with it.
Default view when no ?zobrazeni: map if online, seznam if offline (the map needs
a connection — the list is the offline-safe path). Explicit ?zobrazeni always
wins and now round-trips (setView records the choice). Unit tests updated to
start list-journey specs on the seznam explicitly; added map-default (online)
and seznam-fallback (offline) landing tests. e2e migration follows.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5AA9dRxCnS1eMCZfxa2bG
…nding

The map is now the default landing view when online (list only when
offline, per feat(view) abc11c0); every spec that exercises the SEZNAM
now navigates with `?zobrazeni=seznam` explicitly instead of relying on
a plain `/` landing there. URL round-trip assertions updated to match:
setView now always records the choice (?zobrazeni survives a toggle to
seznam too, not just mapa), so places that asserted a bare `/` or an
unqualified query string needed the explicit param folded in.

Also:
- map.spec.ts: added a test asserting the new online+geolocation default
  actually lands on the map, and that the seznam<->mapa toggle round-trips
  via the URL from there.
- map.spec.ts: the seznam/mapa toggle test's cathedral-marker click now
  targets a corner instead of the computed center — the center sits
  exactly on a neighboring church's invisible 44px tap-halo (::after,
  inset -8px); confirmed pre-existing on main via a baseline check, not
  something this branch introduced. Worth a UX follow-up (halo overlap
  between close markers can steal a tap) but out of scope here.
- preview-video.spec.ts: bounded the map-chip click's own timeout and gave
  the test more wall-clock room — an unbounded click against real
  (unmocked) data could eat the whole test budget before its .catch()
  ever ran, closing the browser mid-tour.
- src/App.en.test.tsx: the abc11c0 unit-test migration missed this sibling
  file; applied the same '/?zobrazeni=seznam' start as App.test.tsx.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5AA9dRxCnS1eMCZfxa2bG
@Chartres
Chartres merged commit a788bea into main Aug 10, 2026
2 checks passed
@Chartres
Chartres deleted the v1.2/map-default-view branch August 10, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant