mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
3c575a06f4
New shared component rather than a ninth copy of the swatch grid that is already inline in eight places. Selection is drawn with var(--accent) so it follows whatever accent the user runs. The custom-colour cell listens for the native change event instead of React's onChange: for a colour input React maps onChange to input, which fires on every drag inside the OS picker — dozens of writes, each one a 409 candidate against the base-version header. The auto cell previews the colour you would get back, not the one currently set, which is a different value as soon as anything is picked. The row sits next to the track stats block, not inside it: that block returns null on unparsable geometry and the colour control has no business disappearing with it. The elevation chart and the distance pin follow the track colour too, otherwise the panel and the map read as two unrelated objects. In the places list the track icon becomes a stroke in the colour the line is drawn in. The map has no legend of its own, so that stroke is the only thing tying a line back to a row. Undo after deleting a track now restores its geometry and colour instead of bringing back a bare point.