Skip to content

Enduro HUD template, unit-tracking labels, compact units - #45

Merged
walkersutton merged 1 commit into
mainfrom
feat/enduro-hud
Sep 30, 2026
Merged

walkersutton merged 1 commit into
mainfrom
feat/enduro-hud

Conversation

@walkersutton

Copy link
Copy Markdown
Owner

Summary

  • label.unit_of — a label can render a metric's unit (mph / km/h, mi / km, ft / m, °F / °C) and follows the unit-system setting instead of being frozen static text. Editor: new "Unit label" picker on labels; element list names these labels after their metric.
  • scene.compact_units — app-level Settings choice between km/h and kmh styles, applied to value suffixes, plot point labels, and unit labels. Stored on the device and injected at render like units; stripped from saved templates.
  • New bundled enduro_hud template with README, preview, and website listing.
  • tests/bundled_templates.rs — every bundled template must deserialize.

Independent of the rider-weight PR; the two merge cleanly in either order.

Test plan

  • cargo test in render-core (71 passing)
  • Frontend build + lint
  • Add a label with Unit label = Speed → shows km/h; switch Settings to Imperial → mph
  • Toggle speed unit style to kmh → value suffixes, plot labels, and unit labels update
  • Load Enduro HUD template against an activity and preview

🤖 Generated with Claude Code

- label.unit_of: a label renders a metric's unit ("mph"/"km/h") and follows
  the unit-system setting instead of frozen static text
- scene.compact_units: app-level "km/h" vs "kmh" style, applied to value
  suffixes, plot point labels and unit labels
- new bundled enduro_hud template (+ website listing)
- test that every bundled template deserializes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cyclemetry Ready Ready Preview Sep 30, 2026 4:13am UTC

Request Review

@walkersutton
walkersutton merged commit 0a566a5 into main Sep 30, 2026
3 checks passed
@walkersutton
walkersutton deleted the feat/enduro-hud branch September 30, 2026 04:14

This branch was successfully deployed

1 active deployment
Preview — 144ef1f7 Deployed Sep 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant