feat(trail-edit): centre on the user, maximise map, stats overlay, colour (#49) #58
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
public/wanderer!58
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/49-map-layout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part 1 of #49 (trail editor,
/trail/edit/new): the Map & layout items. Doesn't close #49.PR 1 of 2. The profile and track-colouring PR is stacked on this one.
#49 checklist items covered
GeolocateControl.trigger()does nothing until the control's async setup has finished. On load that hadn't happened yet, soautoGeolocateOnDrawingnever centred the map. Later it put the map into tracking mode on every "Edit route". The editor now uses a one-shot helper (util/map_geolocation.ts) instead:Fkey;Escleaves) puts the map over the whole page, top bar and sidebar included. The route toolbars stay visible. This is separate from the existing immersive mode, which also hides the toolbars.Scope notes
class.web/src/lib/components/trail/editor/*andweb/src/lib/util/{map_geolocation,trail_editor_stats}.ts. The page only wires them in.Tests
npm run check: 0 errors, 2 warnings. Both warnings were already there (the pace-table<tbody>click).map_geolocation.test.ts(cache parsing, zoom, "user moved", "route exists", denial/throw) andtrail_editor_stats.test.ts. Full suite, run on the stacked head (this PR plus the next one): 874 passed.ReadableStream is already closedrejection fromsrc/lib/server/trail_analyze.test.ts. That file is untouched here and the rejection reproduces on it alone..sveltefiles compile with the Svelte compiler for both client and server.🤖 Generated with Claude Code
Shipped via batch PR #64 (
deploy0d0d85a4), which merged this branch head unchanged; live since 2026-11-05 ~19:30 CET inwanderer-web:deploy-676a7c62(homelab-flux #843). Forgejo does not mark stacked PRs as merged, so I am closing this by hand.🤖 Generated with Claude Code
Pull request closed