Commit Graph

8 Commits

Author SHA1 Message Date
Jonas Bark
8a4d2d6bb0 feat: front-shift config fields on ShiftingConfig
Add frontShiftEnabled, smallChainringTeeth, and largeChainringTeeth fields
to ShiftingConfig with defaults (false, 34, 50) and proper serialization.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 15:37:56 +02:00
Jonas Bark
f44111f02a config: surface cadenceFilterEnabled on ShiftingConfig
Default off; forwarded to FitnessBikeDefinition in the proxy seed path.
The UI affordance is intentionally not added here — observe in-the-wild
behaviour before exposing a knob most users won't need.
2026-05-13 08:35:32 +02:00
Jonas Bark
d8116eb118 fix reported issues 2026-04-28 10:38:04 +02:00
Jonas Bark
f9f61a3d83 feat(shifting): add maxGear field on ShiftingConfig (default 24, clamped 1..30) 2026-04-20 10:06:17 +02:00
Jonas Bark
6ef8fe49fc refactor(shifting): accept any 1..30 gear-ratios list per config 2026-04-20 09:36:10 +02:00
Jonas Bark
4e179c1de8 refactor(shifting): use foundation.listEquals; test clearGearRatios sentinel 2026-04-20 07:31:09 +02:00
Jonas Bark
4ce516ca26 fix(shifting): restore 24-entry guard on gearRatios fromJson
Round-trip test updated to use a full 24-entry ratio list; added a
separate test asserting that wrong-length lists are dropped during
deserialisation so downstream callers (setGearRatios) never see
malformed data.
2026-04-20 07:28:33 +02:00
Jonas Bark
66272c99b0 feat(shifting): add ShiftingConfig model with JSON round-trip 2026-04-20 07:25:52 +02:00