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!65
Loading…
Reference in a new issue
No description provided.
Delete branch "batch/2026-11-05-2"
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?
Second batch on top of #64 (
batch/2026-11-05; fast-forwarddeployto this AFTER #64).Local verification (spl-vm05, Node 24): svelte-check 0 errors (2 old a11y warnings); vitest 1121 passed / 13 skipped, no unhandled errors (closes #57).
Closes #57, closes #61, closes #63. Refs #51.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgP
- Add a "Use pace estimate" button that copies the estimator's moving time and D+/D- into the Basic-info fields (kept until the route changes). - Suggest the name ("<start> – <end>" or "<start> loop", loop = ends <= 200 m apart) and location from the reverse-geocoded start/end, debounced and cached per ~110 m cell; only empty or untouched fields are filled, and typing claims a field. - Pre-select difficulty and category from track heuristics (effort km, max/avg climb gradient, recorded speed, routing profile, SAC floor) in the pure, tested trail_heuristics module, mapped to the DB categories with fallbacks; only while the user has not chosen. - Fix the read-only elevation_loss hidden input posting elevation_gain. Refs #49 Claude-Session: https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgP Co-Authored-By: Claude Opus 5.5 <[email protected]>- Treat filename-like and device/app default names from uploaded files ("Morning_Run.gpx", "Activity_123", "Track 001", "Current Track: …", date-only names, Strava EN/FR/DE/IT and Garmin defaults) as unfilled, so the route-based name replaces them. Detection is a narrow, pure, unit-tested function; anything unrecognised is kept. - For drawn routes (no recorded speed), the pace estimator's run/hike mode decides Running vs the walk/hike rule; recorded tracks keep the speed rule and bicycle routing still wins. Refs #49 Claude-Session: https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgP Co-Authored-By: Claude Opus 5.5 <[email protected]>Garmin names activities "<start locality> <Activity>". Treat such a name as a placeholder only when its prefix matches a locality of the reverse-geocoded start (case-, accent- and hyphen-insensitive; short place, hamlet, village, suburb, town, city, municipality). Without a match, or when the lookup fails, the name is kept, so "Gorges du Verdon Hiking" starting in Castellane survives. A bare activity ("Hiking") stays a placeholder. Refs #49 Claude-Session: https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgP Co-Authored-By: Claude Opus 5.5 <[email protected]>GET /trail/{id}/surface map-matches the stored GPX track with Valhalla trace_attributes (thinned to 10 m, chunks of <=2000 points / 50 km) and aggregates the matched edges into contiguous per-kind segments in track distances, with normalised types (surface, way, sac) and the raw values. Results are cached in the new superuser-only trail_surface collection (one record per trail, keyed by geometry hash and algorithm version) and computed lazily on first view. Access follows the trails view rule; every refusal is a 404. Valhalla is read from VALHALLA_URL. Refs #51, #49 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgPAdds the GET /api/v1/trail/{id}/surface proxy (forwards only the share token), the TrailSurface types and trail_surface_get plus helpers that split segments and totals by kind and find the segment at a distance, for the #51 trail view and #49 track colouring. Refs #51, #49 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgPThe "stops an authorised oversized body" test built its request from a FormData body. Cancelling a FormData-backed Request body makes Node's undici enqueue the trailing multipart boundary into the already cancelled stream, an unhandled ERR_INVALID_STATE ("ReadableStream is already closed") on Node 24 that made vitest exit 1 intermittently. Use a hand-built stream instead and assert reading stops near the cap. Refs public/wanderer#57 Co-Authored-By: Claude Opus 5.5 <[email protected]>GPX.toGeoJSON() keeps <ele> as the XML string ("1528.0"), and buildTrackMetricContext only accepted numbers, so every track read from a stored GPX counted as having no elevation: no gradient or elevation colouring for the trail view's profile, nor in the chart for an imported track. Coerce the elevations to numbers (missing ones stay 0 = none, like the GPX parser). Found on the local preview of #61; tests follow with the trail-view commit. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XMf4EGfBC9xbQ6rjD6HxgP