Commit graph

7 commits

Author SHA1 Message Date
51d9985743 fix(build): standard Vite layout so Railpack finds dist/
Railpack resolved outDir '../dist' (with root 'src') to /dist and the
deploy failed at "copy /dist". index.html now lives at the repo root and
the build writes to the default ./dist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:09:25 +01:00
bb5ecbcd6d feat(hg3): align with the HG3 semester project assignment
- Default "Zadání HG3" mode with exactly the 16 categories of the assignment
  (9 built-up, 7 undeveloped) and its legend colours; replaces the old simple mode
- Whole map coloured: RÚIAN cadastral parcels are fetched and classified from
  land type / land use; built-up parcels take the category of their building
- Field corrections per building or parcel (info panel), saved locally and in a
  project file (save/open JSON) to move between devices
- A4 frame at 1 : 3 780 (300 dpi, landscape/portrait) shown on the map; data
  loading covers the frame
- Built-up territory meter against the 66 % rule (built-up areas + gardens +
  maintained greenery; strict legend share shown too) and area statistics
  per category with CSV export
- Submission print/PDF: 1 map (title, author, scale, source), 2 legend (only
  categories present), 3-4 commentary
- Commentary editor with the assignment's questions and a 3 600-character counter
- Field worksheet: blank A4 base map with house numbers and an empty legend
  to colour with crayons
- Buildings CSV gains HG3 category, correction flag and parcels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:48:42 +01:00
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