Commit graph

5 commits

Author SHA1 Message Date
44bc6207a9 feat(ui): polish pass - visual refresh, dark mode, smoother map, mobile sheet
Visual
- Design tokens (spacing, radius, type, motion) with a dark theme that follows
  prefers-color-scheme; map palette in theme.ts (exports/print stay light)
- Segmented controls (language, colour scheme), switches, styled slider/select,
  icon buttons, cards, focus rings, hover/active states, reduced-motion support
- Info panel card with animation, tooltip that stays on screen, grouped zoom buttons

Map
- Redraws batched per animation frame; animated zoom/fit, pan inertia,
  trackpad pinch, pointer cursor and outline for the hovered building
- Hovering a legend row highlights that category on the map

Loading & feedback
- Progress bar + "Loading n/m" pill; status line with icons, collapsible
  basemap failure details, success messages fade
- A newer load supersedes one in flight; a failed buildings query is reported
  immediately instead of after the basemap retries

Convenience
- Keyboard: +/- zoom, 0 fit, arrows pan, Esc closes
- Legend All/None, double-click or Alt-click to show only one category
- Settings and last location remembered; #lat,lon,radius in the URL to share,
  copy-link button, "my location" button
- Mobile: full-screen map with a draggable bottom sheet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:01:08 +01:00
5a3ee9ab86 refactor: render the UI with Preact and signals
- Sidebar, legend, status, info panel and tooltip are Preact components (src/components)
- App state that the UI or map depends on is held in @preact/signals; the map redraws
  through a signal effect, pan/zoom still redraw directly
- Classification is a computed signal (buildings) instead of manual classifyAll calls
- index.html is just a mount point; CSS is imported from main.tsx

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:41:17 +01:00
4f9c11039b refactor: split into TypeScript modules built with Vite
- Move the single-file app into src/ as typed ES modules
- Vite for dev server and minified production build (bun run dev / build)
- oxfmt/oxlint config; rename useName -> ruianUseName (hooks lint false positive)
- Fix horizontal overflow in the sidebar (range input default margin)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:32:26 +01:00
3d75509a6e feat(index): language, colors 2026-11-07 10:21:47 +01:00
41698e338c initial commit 2026-11-07 10:05:19 +01:00