Add a logged-in-only status/debug panel at the bottom of the sidebar

Dumps every read-only status endpoint (health, offline/terrain build
status, regions, caches, hiking trails, kiwix, plugins, GNSS, LiveTrack)
as JSON, refreshed every 5s while open so a running build's progress
shows live.
This commit is contained in:
randy committed 2026-11-12 11:37:42 +01:00
1 parent 0051a0337c
commit cf483d183c
6 files changed
+137

No files matched your search

+9
View File
@@ -94,6 +94,15 @@
<ul class="livetrack-panel__list"></ul>
</div>
<div id="debug-panel" class="basemap-panel" hidden>
<div class="basemap-panel__header">
<strong>Status / debug</strong>
<button type="button" class="basemap-panel__close" aria-label="Close">&times;</button>
</div>
<!-- Filled by DebugControl (public/js/debug.js), logged-in only. -->
<div class="debug-panel__body"></div>
</div>
<div id="offline-data-panel" class="basemap-panel" hidden>
<div class="basemap-panel__header">
<strong>Offline data</strong>
+1
View File
@@ -41,6 +41,7 @@
"/js/locate.js": "/js/locate.js?v=<%= ASSET_VERSION %>",
"/js/measure.js": "/js/measure.js?v=<%= ASSET_VERSION %>",
"/js/notes.js": "/js/notes.js?v=<%= ASSET_VERSION %>",
"/js/debug.js": "/js/debug.js?v=<%= ASSET_VERSION %>",
"/js/offline_data.js": "/js/offline_data.js?v=<%= ASSET_VERSION %>",
"/js/overlays.js": "/js/overlays.js?v=<%= ASSET_VERSION %>",
"/js/panels.js": "/js/panels.js?v=<%= ASSET_VERSION %>",