Driving mode ("Drive": big buttons — follow, zoom, 2D/3D, night, route overview — the sidebar hidden); palettes instead of the inversion (the UI's greys onto --ui-*, MapLibre's controls too, night → Night, new ◑ Dusk); the navigated route magenta, the driven part dimmed; route progress only forward (locate near the last position first); rerouting on the server off its own GNSS (TripStore#follow), the browser's only without the shared trip; the overview map hidden while following in 3D; the topbar's items apart
This commit is contained in:
1 parent
12b4ac6725
commit
07a4d363ec
13 files changed
+520
-219
No files matched your search
@@ -92,9 +92,10 @@ plan from — the server does the heavy lifting. The UI is built for a mouse tod
|
||||
* [ ] Nothing reachable only by hover — tooltips and flyouts must open on tap too
|
||||
* [ ] A touch substitute for the Alt+click debug inspector (e.g. long-press)
|
||||
* [x] Side panels as an overlay in portrait instead of a pinned column — under 640 px the pin is ignored and the panel floats over the map at full width (a pinned 300 px panel left the phone a sliver of map); a real bottom sheet still open
|
||||
* [ ] Driving mode (field test in the car, 2026-11): tiny icons and lists can't be hit while driving — a separate big-button UI for the few things needed on the road (navigate/follow, night mode, zoom, layer presets) rather than enlarging every planning panel
|
||||
* [x] Driving mode (field test in the car, 2026-11): tiny icons and lists can't be hit while driving — a separate big-button UI for the few things needed on the road (navigate/follow, night mode, zoom, layer presets) rather than enlarging every planning panel. Done: "Drive" in the topbar (`driving.js`), per device — Follow, zoom, 2D/3D, night, route overview, exit down the left side; the sidebar and panels hidden
|
||||
** [ ] Layer presets on the driving bar
|
||||
* [x] Night mode — topbar button cycles auto (sun below the horizon at the map center) / on / off. The map has its own night palette (`NightMap` in `public/js/map_themes.js`, switched live with setPaintProperty): dark blue-gray ground, roads a step lighter, muted ochre motorways, light-gray labels on dark halos; raster overlays dimmed, our own track/point colors kept
|
||||
** [ ] The rest of the UI is still one invert+dim filter — CSS color tokens and a real dark set instead
|
||||
** [x] The rest of the UI is still one invert+dim filter — CSS color tokens and a real dark set instead
|
||||
* [x] Tracker as a top-down vehicle (car / motorbike / bicycle from its icon) rotated by the GNSS course, kept while standing still; "Navigate" (tracker card or Overlays status) follows it heading-up, tilted 60°, vehicle in the lower third — panning by hand ends it
|
||||
|
||||
== NPS parks & maps
|
||||
@@ -227,7 +228,10 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
the route panel routes from the position to the points not reached yet (via points passed
|
||||
by km along the route, `legs_km`), at most every 15 s and only moving
|
||||
*** [ ] Step advance like Ferrostar's DistanceEntryExit (30 m to the step's end, 5 m past it)
|
||||
instead of "the first maneuver ahead by km"; arrival at 30 m
|
||||
instead of "the first maneuver ahead by km"; arrival at 30 m. Done: progress only forward —
|
||||
the position looked for near the last one first (`locate`, 0.1 km back to 3 km ahead), so a
|
||||
route along the same road twice or crossing itself doesn't jump; the step still advances 5 m
|
||||
past the maneuver. Arrival still to do
|
||||
** [x] The navigation banner across the top (Dashboard widget, on by default): the next
|
||||
maneuver's arrow (Valhalla's maneuver type), distance and street, "then …" when the next one
|
||||
follows within 300 m, its lanes from 1 km, the street being driven; `/api/route` maneuvers
|
||||
@@ -244,7 +248,7 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
PBF), and only for the direction driven (`traffic_signals:direction`)
|
||||
** [ ] The "Navigate" follow mode for the CAN GNSS position (today the MQTT tracker and the
|
||||
browser's GNSS control), the dashboard as part of the driving-mode UI
|
||||
** [ ] `locate()` scans the whole route each fix — a window around the last hit on long routes
|
||||
** [x] `locate()` scans the whole route each fix — a window around the last hit on long routes
|
||||
** [ ] Shared trip — one itinerary per server for every screen (the cab's display, the tablet
|
||||
or display in the back, phones): the co-driver adds a stop, the driver's view reroutes on the
|
||||
fly without losing the map (no stop / reload / start like Android Auto between two phones)
|
||||
@@ -253,8 +257,10 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
unchanged), `PUT /api/trip` routes it on the server (not again when only names/nav
|
||||
changed). Logged in, the route panel edits it and polls it every 2 s — other screens'
|
||||
changes swapped in, the camera untouched, the old route shown until the new one is in
|
||||
*** [ ] Rerouting on the server: it has the GNSS (CAN), so off-route detection and the new
|
||||
route once for all screens, not per screen with a dashboard (today's, `dashboard.js`)
|
||||
*** [x] Rerouting on the server: it has the GNSS (CAN), so off-route detection and the new
|
||||
route once for all screens, not per screen with a dashboard. Done: `TripStore#follow` on
|
||||
every fix (3 fixes > 30 m off while moving, at most every 15 s), the browser's own reroute
|
||||
only without the shared trip
|
||||
*** [ ] An itinerary view: stops by day/night, notes, planned arrival times (Valhalla's leg
|
||||
times), "Add to the trip" from search, the library, park4night and other sources
|
||||
*** [ ] Brick ↔ the car: a trip planned at home on brick handed to the car's server (with
|
||||
@@ -288,8 +294,9 @@ Planning in the NPS look, driving in the cockpit look, joined by the Unigrid bla
|
||||
. [x] Colors: tokens on `:root` (`--band`, `--inst-*`: ok / caution / warning, magenta = what
|
||||
navigation follows, cyan = set by hand); the dashboard in them — a see-through black bezel,
|
||||
light values, inverted back in night mode
|
||||
. [ ] The route line magenta while it's navigated (follow mode), blue while planning; the next
|
||||
waypoint and maneuver magenta on the map too
|
||||
. [x] The route line magenta while it's navigated (follow mode), blue while planning; the next
|
||||
waypoint and maneuver magenta on the map too. Done for the line (the driven part dimmed,
|
||||
while the dashboard is on the route); the waypoint / maneuver marks still to do
|
||||
. [ ] The rest of the hard-coded colors → tokens (route, warnings, panel states), one place to tune
|
||||
. [ ] Panel headers as the Unigrid band: black, white title in National Park (headings weight
|
||||
to vendor), the same band as the topbar
|
||||
@@ -300,9 +307,11 @@ Planning in the NPS look, driving in the cockpit look, joined by the Unigrid bla
|
||||
`--inst-warning` fault)
|
||||
. [x] Palettes after IHO S-52: the same tokens in Day / Dusk / Night (`data-palette` on
|
||||
`<html>`), night dim with low blue and no white areas, the speed limit sign dimmed too
|
||||
. [ ] Switch them: by the sun (the night mode's auto) and by hand (the topbar button cycles
|
||||
. [x] Switch them: by the sun (the night mode's auto) and by hand (the topbar button cycles
|
||||
day / dusk / night / auto), replacing the inverting `html.night`; the planning UI's
|
||||
hard-coded colors onto `--ui-*` first, or a dark palette leaves light panels
|
||||
hard-coded colors onto `--ui-*` first, or a dark palette leaves light panels. Done: the
|
||||
greys onto `--ui-*` by role, MapLibre's controls/popups too; night mode sets Night, the new
|
||||
"◑" mode Dusk (the day map)
|
||||
. [ ] A Dusk map (between Park Tiles and `NightMap`), the map's palette following the UI's
|
||||
. [ ] Daylight: a full-opacity bezel preset for sun on the screen
|
||||
|
||||
|
||||
Reference in new issue
Block a user