From 1b4463a3c1867ef8eda1d00a54b6d96ee2cf1f62 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Tue, 8 Sep 2026 00:10:02 +0200 Subject: [PATCH] Consolidate original/GeoJSON download into one menu button The file name doubling as a GeoJSON-only download link was easy to miss as a link at all, and only ever covered half of what's actually downloadable. One button next to delete now opens a small menu (Original file / GeoJSON) instead -- costs a click when downloading several files in a row, but both formats are reachable from one, discoverable place. Only one menu open at a time, closed on any outside click. Verified in a real browser: opens with both items, closes on outside click, no console errors. --- docs/architecture.adoc | 51 +++++++++--------- public/css/style.css | 41 ++++++++++++++ public/js/gpx.js | 119 ++++++++++++++++++++++++++++------------- 3 files changed, 149 insertions(+), 62 deletions(-) diff --git a/docs/architecture.adoc b/docs/architecture.adoc index 8205d8f..84d190b 100644 --- a/docs/architecture.adoc +++ b/docs/architecture.adoc @@ -342,30 +342,33 @@ Once a `.gpx`/`.fit` is cached, the tree shows it under its converted name instead — `"ride.gpx"` reads as `"ride.gpx.geojson"`, matching the real cache file sitting next to it on disk — since the GeoJSON, not the original, is what's actually rendered on the map from that -point on. The original is never deleted or re-parsed once cached, just -not re-shown as itself, so both forms need a way out of the app as an -actual file: the file name itself (`GET /api/gpx/file/?download=geojson`) -is a real link, not a `` — clicking it downloads the GeoJSON -rather than also toggling the row's checkbox, since a native -``/`