MosswartOverlord/frontend
Erik a59296867d fix(v2): player zoom + dot blink + version + sidebar links + dungeon radar + rare emojis
1. Player click → zoom: clicking a player in sidebar or on map dot
   zooms to their position at 3x zoom, centered on screen. Click
   again to deselect. Uses direct DOM transform (no React state).

2. Selected dot blink: selected player dot gets 10px size + blink
   animation (0.6s step-end infinite) matching v1's .dot.highlight.

3. Version display: fetches /api-version on mount, shows "vX.Y.Z"
   in small text positioned just right of sidebar (fixed, top: 6px).

4. Missing sidebar buttons: added Combat Stats (⚔️) alongside
   existing Issues (📋) and Vital Sharing (🤝) in SidebarWindowButtons.

5. Rare notification: added 🎆 emojis to "LEGENDARY RARE!" title
   matching v1's notification text.

6. Dungeon map in radar — verbatim port from v1 lines 3596-3930:
   - loadDungeonTiles(): fetches dungeon_tiles.json, processes each
     tile image (color remap: UB source colors → display colors,
     white → transparent, black → semi-transparent)
   - cellRotation(): maps rotation values to radians (v1's exact logic)
   - Dungeon rendering: sorts z_levels (current floor on top at 85%
     opacity, others at 12%), draws each cell with per-cell rotation,
     uses processed tile canvases or colored rectangle fallback
   - Requests dungeon map via WebSocket when radar detects dungeon
   - Caches dungeon maps on window.__dungeonMapCache
   - Overworld map: fixed srcSize calculation to use range * pixPerCoord

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 12:04:27 +02:00
..
src fix(v2): player zoom + dot blink + version + sidebar links + dungeon radar + rare emojis 2026-04-13 12:04:27 +02:00
.gitignore feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
index.html feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
package-lock.json feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
package.json feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
tsconfig.json feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
tsconfig.tsbuildinfo feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
vite.config.ts feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00