Trail view: adopt the signed gradient scale from the editor #61

Closed
opened 2026-11-05 16:46:32 +00:00 by maximus · 0 comments
Member

Follow-up to #56 (trail view layout) and #59 (editor colour menu). The editor's "Gradient" metric uses a new signed scale (util/track_metrics.ts: descents blue, flat green, climbs red, bands at ±3/10/20 %). The trail view still uses the old purple-to-yellow palette (PROFILE_GRADE_COLOURS in vendor/maplibre-elevation-profile/elevationprofile.ts, copied as GRADE_PALETTE in #56's trail_route_insights).

Decision (Bear, 2026-11-05): the trail view adopts the new scale.

  • Profile, gradient breakdown bar and legend in the trail view use track_metrics (one source; remove the copied palette).
  • Optionally the same colour menu in the trail view.

Do after #56 and #59 are merged.

🤖 Generated with Claude Code

Follow-up to #56 (trail view layout) and #59 (editor colour menu). The editor's "Gradient" metric uses a new signed scale (`util/track_metrics.ts`: descents blue, flat green, climbs red, bands at ±3/10/20 %). The trail view still uses the old purple-to-yellow palette (`PROFILE_GRADE_COLOURS` in `vendor/maplibre-elevation-profile/elevationprofile.ts`, copied as `GRADE_PALETTE` in #56's `trail_route_insights`). Decision (Bear, 2026-11-05): the trail view adopts the new scale. - [ ] Profile, gradient breakdown bar and legend in the trail view use `track_metrics` (one source; remove the copied palette). - [ ] Optionally the same colour menu in the trail view. Do after #56 and #59 are merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jmz closed this issue 2026-11-05 18:15:50 +00:00
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#61
No description provided.