Trail creation page: map centring, profile/track colouring, auto-fill, prominent stats, design #49

Closed
opened 2026-11-05 16:18:53 +00:00 by maximus · 1 comment
Member

Ideas from Bear's first real use of the trail creation page (/trail/edit/new), 2026-11-05. Each item can ship on its own; tick items off as they land.

Map & layout

  • Centre on my position. When creating a new trail, centre the map on the user's current location (browser geolocation, ask once; fall back to the current default view if denied or unavailable).
  • Maximise the map. A control that expands the map to the full page (and back).
  • Stats overlay on the map. When the left sidebar is hidden or the map is maximised, show the main stats prominently on the map: distance, D+, D−, estimated time.
  • More colour and better design. The page is visually flat; give it a clearer hierarchy and more colour (stat tiles, section headers, accent colours). Keep it consistent with the rest of the app and with light and dark themes.

Elevation / pace profile

  • Toggle the profile. A way to show or hide the elevation profile at the bottom of the map.
  • Choosable colouring metric. The quantity that colours the elevation profile can be chosen (e.g. gradient, elevation, surface, pace). It is chosen independently for the elevation curve and the pace curve, where the pace curve applies.

Track line

  • Colour the track by a metric. Colour the route line on the map by a metric the user chooses, including the pace metrics from the pace estimator (estimated speed, pace, gradient, elevation, …). Add a legend.

Basic info

  • Persist estimated pace stats. A button that copies the estimated pace-related stats (e.g. estimated duration) from the estimator into the "Basic info" fields.
  • Auto-fill name and location. Default name = " – ", or " loop" if the route is a loop (start ≈ end, threshold to be decided). Location = the reverse-geocoded start (or main) place. Only fill empty fields; never overwrite what the user typed.
  • Auto-choose difficulty and category. Pre-select both from track heuristics: distance, D+, max/avg gradient, surface/path types (SAC scale where available), speed profile. Document the criteria, and let the user override them.

Related: route-editor work in #44 / #45.

🤖 Generated with Claude Code

Ideas from Bear's first real use of the trail creation page (`/trail/edit/new`), 2026-11-05. Each item can ship on its own; tick items off as they land. ## Map & layout - [ ] **Centre on my position.** When creating a new trail, centre the map on the user's current location (browser geolocation, ask once; fall back to the current default view if denied or unavailable). - [ ] **Maximise the map.** A control that expands the map to the full page (and back). - [ ] **Stats overlay on the map.** When the left sidebar is hidden or the map is maximised, show the main stats prominently on the map: distance, D+, D−, estimated time. - [ ] **More colour and better design.** The page is visually flat; give it a clearer hierarchy and more colour (stat tiles, section headers, accent colours). Keep it consistent with the rest of the app and with light and dark themes. ## Elevation / pace profile - [ ] **Toggle the profile.** A way to show or hide the elevation profile at the bottom of the map. - [ ] **Choosable colouring metric.** The quantity that colours the elevation profile can be chosen (e.g. gradient, elevation, surface, pace). It is chosen **independently** for the elevation curve and the pace curve, where the pace curve applies. ## Track line - [ ] **Colour the track by a metric.** Colour the route line on the map by a metric the user chooses, including the pace metrics from the pace estimator (estimated speed, pace, gradient, elevation, …). Add a legend. ## Basic info - [ ] **Persist estimated pace stats.** A button that copies the estimated pace-related stats (e.g. estimated duration) from the estimator into the "Basic info" fields. - [ ] **Auto-fill name and location.** Default name = "<start place> – <end place>", or "<start place> loop" if the route is a loop (start ≈ end, threshold to be decided). Location = the reverse-geocoded start (or main) place. Only fill empty fields; never overwrite what the user typed. - [ ] **Auto-choose difficulty and category.** Pre-select both from track heuristics: distance, D+, max/avg gradient, surface/path types (SAC scale where available), speed profile. Document the criteria, and let the user override them. Related: route-editor work in #44 / #45. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Member

All items of this ticket are live, as of 2026-11-05 ~22:55 CET (wanderer-web:deploy-c48b528d, homelab-flux #862):

  • map centring, maximise, stats overlay, design: #58;
  • profile toggle and colour-by-metric, independent per curve: #59;
  • track colouring by metric, plus surface / way type / SAC: #59 and batch #74;
  • pace stats into Basic info: #54, and pace-only access in #71;
  • auto-fill of name and location: #54 and #70;
  • suggested difficulty and category: #54, plus subcategories in #72.

The full live e2e suite passes 13/13 as claude_test.

🤖 Generated with Claude Code

All items of this ticket are live, as of 2026-11-05 ~22:55 CET (`wanderer-web:deploy-c48b528d`, homelab-flux #862): - map centring, maximise, stats overlay, design: #58; - profile toggle and colour-by-metric, independent per curve: #59; - track colouring by metric, plus **surface / way type / SAC**: #59 and batch #74; - pace stats into Basic info: #54, and pace-only access in #71; - auto-fill of name and location: #54 and #70; - suggested difficulty and category: #54, plus subcategories in #72. The full live e2e suite passes 13/13 as `claude_test`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/wanderer#49
No description provided.