v0.7.0 — map click → dossier target; fix "no owner" #19

Merged
kamilkrzywda merged 1 commits from map-click-dossier into master 2026-10-11 21:30:38 +02:00
Owner

v0.7.0

Map click now switches the dossier to the region's owning nation instead of opening a popup.

  • Clicking a choropleth region resolves its owner from the authoritative RegionMap by the feature's stable ISO_A3 code (properties.regionId) and sets viewingId to that nation — the same target as the manual "Inspect" selector, keeping them in sync.
  • The closeable popup on click is removed; the dossier is the single source of detail.
  • Fixes the MapLibre id-repacking "no owner" bug (#6): at click/hover time feature.id is repacked into a numeric index by MapLibre, so the owner must be resolved from RegionMap/regionId (the shared regionOwner() helper), never from the feature's top-level id. Unowned regions leave the current dossier target unchanged.

No LLM or engine logic changes — purely a client-side map interaction fix, plus the v0.7.0 version bump (package.json + CHANGELOG).

Fixes #6, Fixes #7

## v0.7.0 Map click now switches the **dossier** to the region's owning nation instead of opening a popup. - Clicking a choropleth region resolves its owner from the authoritative `RegionMap` by the feature's stable ISO_A3 code (`properties.regionId`) and sets `viewingId` to that nation — the same target as the manual "Inspect" selector, keeping them in sync. - The closeable popup on click is removed; the dossier is the single source of detail. - Fixes the MapLibre **`id`-repacking "no owner" bug (#6)**: at click/hover time `feature.id` is repacked into a numeric index by MapLibre, so the owner must be resolved from `RegionMap`/`regionId` (the shared `regionOwner()` helper), never from the feature's top-level `id`. Unowned regions leave the current dossier target unchanged. No LLM or engine logic changes — purely a client-side map interaction fix, plus the v0.7.0 version bump (package.json + CHANGELOG). Fixes #6, Fixes #7
kamilkrzywda added 1 commit 2026-10-11 21:28:38 +02:00
kamilkrzywda scheduled this pull request to auto merge when all checks succeed 2026-10-11 21:28:43 +02:00
kamilkrzywda merged commit f05ddb304d into master 2026-10-11 21:30:38 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/History#19