Desktop redesign after the Design canvas' Desktop artboard: search is one field in the topbar (places, the library, coordinates; / focuses it, sources and results drop down under it), the side rail is labelled (Map, Overlays, Library, Import | Route, Offline | GNSS, Live, Status at the bottom), the map's buttons in one column on the right (zoom and compass, north lock, 3D, my position, measure, note, home; measure/note panels open to the left), a status bar under the map (center coordinates to copy, the point under the mouse, zoom, scale, revision) instead of the zoom-level control, the scale on the map and the coordinates in the topbar; the base map button on the map dropped (the rail has it). Route panel reordered: points with their legs, adding one, the totals as a card, vehicle and avoid, directions and reach folded, reverse/clear/save last. Drive unchanged: the search, the status bar and the right column hide there
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-03 01:28:49 +01:00
1 parent 60d7c825fc
commit 0a5548cd8f
4 files changed
+252 -214

No files matched your search

+37 -23
View File
@@ -1,8 +1,8 @@
<div id="app">
<header class="topbar">
<span class="topbar__brand" title="rev <%= revision %>">MapTool</span>
<div class="topbar__search"></div>
<span class="topbar__center">
<span class="topbar__coords"></span>
<span class="topbar__sun" title="Sun &amp; moon" hidden></span>
</span>
<div class="sun-chart" hidden></div>
@@ -23,6 +23,14 @@
<nav id="sidebar" class="sidebar"></nav>
<div id="map"></div>
</div>
<footer class="statusbar">
<span class="statusbar__coords"></span>
<span class="statusbar__cursor"></span>
<span class="statusbar__zoom"></span>
<span class="statusbar__scale"></span>
<span class="statusbar__rev">rev <%= revision %></span>
</footer>
</div>
<div id="profile-panel" class="profile-panel" hidden>
@@ -132,7 +140,9 @@
</div>
<!-- Filled by RoutePanelControl (public/js/route.js). -->
<div class="route-panel__body">
<p class="route-panel__hint">Click the map to add points (or "Add to route" on a search result or a library point); drag a marker to move it.</p>
<!-- The order of the Design canvas' Desktop artboard: the points
with their legs, adding one, the totals, the vehicle and what to avoid,
then the long parts folded; editing the whole route at the bottom. -->
<p class="route-panel__editing" hidden></p>
<ol class="route-panel__points"></ol>
<!-- Icons are added by RoutePanelControl (public/js/icons.js). -->
@@ -144,30 +154,10 @@
<input type="search" placeholder="Search saved points" aria-label="Search saved points">
<ul></ul>
</div>
<div class="route-panel__buttons">
<button type="button" data-action="reverse">Reverse</button>
<button type="button" data-action="clear">Clear</button>
<button type="button" data-action="save" hidden>Save to library</button>
</div>
<p class="route-panel__hint">Add a point: below, "+" on a search result or a library point, or click the map; drag a marker to move it.</p>
<p class="route-panel__summary"></p>
<ul class="route-panel__countries" hidden></ul>
<button type="button" class="route-panel__profile" hidden>Elevation profile</button>
<details class="route-panel__directions" hidden>
<summary>Directions</summary>
<ol></ol>
</details>
<div class="route-panel__reach">
<span>Reach in</span>
<select>
<option value="30">30 min</option>
<option value="60" selected>1 h</option>
<option value="120">2 h</option>
<option value="30,60,120">30 min · 1 h · 2 h</option>
</select>
<button type="button" data-action="reach">Show</button>
<button type="button" data-action="reach-clear" hidden>Hide</button>
</div>
<p class="route-panel__reach-status" hidden></p>
<div class="route-panel__vehicle-row">
<label>Vehicle <select class="route-panel__vehicle-select"></select></label>
<button type="button" data-action="vehicle-edit" hidden>Edit</button>
@@ -222,6 +212,30 @@
<button type="button" data-action="vehicle-add">+ New vehicle</button>
<button type="button" data-action="vehicle-delete">Delete</button>
</fieldset>
<details class="route-panel__directions" hidden>
<summary>Directions</summary>
<ol></ol>
</details>
<details class="route-panel__fold">
<summary>Reach</summary>
<div class="route-panel__reach">
<span>Reach in</span>
<select>
<option value="30">30 min</option>
<option value="60" selected>1 h</option>
<option value="120">2 h</option>
<option value="30,60,120">30 min · 1 h · 2 h</option>
</select>
<button type="button" data-action="reach">Show</button>
<button type="button" data-action="reach-clear" hidden>Hide</button>
</div>
<p class="route-panel__reach-status" hidden></p>
</details>
<div class="route-panel__buttons">
<button type="button" data-action="reverse">Reverse</button>
<button type="button" data-action="clear">Clear</button>
<button type="button" data-action="save" hidden>Save to library</button>
</div>
</div>
</div>