Commit Graph

16 Commits

Author SHA1 Message Date
b0txec 4c40c244df Add click-to-edit temperature badges on the Faktiskā map
CI / backend (push) Successful in 1m7s
CI / frontend (push) Successful in 41s
The "Rādīt stacijas" panel is the only way to fix a value today, and it
opens all 13 fields at once even when only one or two need a tweak. Since
most values are already correct, that's the wrong default interaction for
the common case.

Click a temperature badge directly on the map to edit it inline instead.
Scoped strictly to mode==="faktiska" (Kartes/Ūdens/Brīdinājumi share the
same MapView component and are unaffected). Mirrors Brīdinājumi's existing
canvas-coordinate pattern exactly (getBoundingClientRect scaling via
canvasPoint) rather than inventing a new one, hit-testing against
Faktiskā's already-fixed per-resolution marker positions (faktiskaTemplates)
-- no dragging or calibration needed, just a box test against 13 known
points. The floating input is a plain DOM element positioned over the
canvas, not drawn onto it, so it's preview-only like Brīdinājumi's drag
handles and never reaches the exported PNG.

Reuses the existing updateValue function via a new onEditValue callback
prop, so overrides/reset/the "Manuāli" badge in the stations panel all stay
in sync automatically -- no parallel state to maintain. Added a hover
cursor and a one-line hint ("Klikšķini uz temperatūras kartē, lai to
mainītu") for discoverability, since the whole point was fixing an
undiscoverable interaction, not trading it for another one.

Verified end-to-end: hover shows a pointer cursor over a badge; clicking
shows a correctly positioned input prefilled with the real current value;
Enter commits and the canvas redraws immediately; the change is reflected
in the "Rādīt stacijas" panel as a manual override; Escape cancels without
committing; works correctly at both 1920x1080 and 3840x1440 (different
badge size and marker positions per template); no console errors; Kartes
(a different MapView mode) is unaffected.
2026-08-25 11:21:11 +03:00
b0txec d7439a2bd5 Translate WindInputs to Latvian on Faktiskā, remove dead CSS
Found by a fresh-eyes review after today's design pass: WindInputs
had no productionTemplate branching, so it kept showing "Wind
direction"/"Wind speed"/"Gusts" in English right under the freshly-
translated "Temperatūra un vējš" heading. Threaded the same
productionTemplate flag MapView.tsx already uses for its other
labels. Also removed .assignedSymbol, an unreferenced CSS rule the
same review flagged as dead.
2026-08-23 13:41:02 +03:00
b0txec a1c2fd5d7d Declutter Faktiskā: collapse stations and map settings by default
Both "Jaunākās temperatūras" and "Kartes noformējums" dumped their
full content on load, forcing a scroll past both just to reach the
map/export on every visit. Both now collapse by default (Faktiskā
only; the older non-production Kartes overlay panel keeps its current
always-open behavior) behind a toggle that still surfaces a manual-
override count so nothing is silently hidden.

Also fixed a real bug found in the process: Faktiskā's resolution
buttons carried both "resolutionChoices" and "faktiskaResolutionChoices"
classes, and the former (defined in waterTemperature.css for a narrow
sidebar layout) was winning the cascade in this wide-content context,
forcing full-width, left-aligned buttons instead of the intended
compact pair.

Restructured "Kartes noformējums" into distinct bordered cards instead
of one continuous flow, translated the still-English "Weather symbols"
/"City assignments" block to Latvian ("Laikapstākļu simboli"/"Mākoņi
pilsētām"), and collapsed the city list to show only active exceptions
by default with a "Rādīt pārējās pilsētas" button to reveal the rest.
2026-08-23 13:31:12 +03:00
b0txec 06088653b1 Localize navigation and production UI 2026-08-22 14:48:16 +03:00
b0txec 16a8c685e7 Use approved production map and branding assets 2026-08-20 22:23:23 +03:00
b0txec 0d641bd38f Replace Daira glyphs with normalized weather icons 2026-08-20 10:46:26 +03:00
b0txec ffcf3a2595 Redraw map canvases after Monda loads 2026-08-19 22:07:16 +03:00
b0txec 340c370c46 Anchor Faktiska symbols to temperature badges 2026-08-19 17:44:46 +03:00
b0txec 632f377c2d Arrange wind controls horizontally 2026-08-19 17:34:04 +03:00
b0txec 01115936f5 Document Faktiska production contract 2026-08-19 17:23:07 +03:00
b0txec e726291bdb Build fixed Faktiska production workflow 2026-08-19 17:11:58 +03:00
b0txec ffb89024f1 Add dedicated Faktiska map production workflow 2026-08-18 22:31:56 +03:00
b0txec 67decb330b Refine broadcast map labels and overlays 2026-08-18 22:14:40 +03:00
b0txec bb1d9fc78c Add dashboard UI foundation and map export workflow 2026-08-18 21:44:09 +03:00
Guntis Smaukstelis 1742931a20 Map values toFixed(1) and round option 2025-03-20 22:17:28 +02:00
Guntis Smaukstelis a2d1608cb0 Refactor, move all pages to separate folder 2025-03-14 11:31:47 +02:00