Commit Graph

12 Commits

Author SHA1 Message Date
Jonas Acker
9bd4be3b8e fix(ride): badge on the outline, no empty SRAM card, short locked label
- The setup warning badge is pinned to the controller outline's own
  top-right corner (ControllerCanvas.cornerBadge), not the card's, so it
  stays on the contour at phone, tablet and desktop widths; the outline
  fades under it via ControllerCanvas.dimmed.
- A controller that needs its setup but has nothing to draw yet (a SRAM
  AXS before its guided setup has heard its paddles) gets no Ride card:
  the banner already lists the step and the setup opens by itself. With
  only such controllers the section is left out instead of claiming
  there is no controller. The card returns once it has buttons.
- The locked warning row reads a short new rideControllerLocked
  (all six locales) instead of the long unlock_deviceIsCurrentlyLocked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 23:25:00 +02:00
Jonas Acker
6e8d580989 fix(ui): second design review fixes
- Ride's activity preview (840-1199) renders the same ActivityRow as the
  Activity tab and the activity column, error fix links included.
- Connection methods under the "Recommended" header no longer repeat a
  Recommended pill, so the title gets the row beside the switch. The
  protocol announcement is a card in the new card language; its en/it/pl
  copy uses a proper dash.
- Pod buttons read "P", "SB", a power or zap icon instead of arrow
  initials like "P→"; a single right pod is framed on the art and its
  buttons so the picture sits centred in its card.
- The last-press strip keeps the action whole: it follows "Just pressed
  X →" on the same line when it fits, else on the next.
- Snapshot harness captures a beta controller in the light theme.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 12:43:45 +02:00
Jonas Acker
22eb24fbf0 feat(ui): Ride tab with virtual shifting card and your buttons
Ride now shows what the rider rides with instead of the setup chain:

- The ready banner as a card: a green tick, "Ready to ride" and who is
  receiving; trouble keeps its wash, outline and Fix / Show. With one step
  left Show opens its fix; with several it switches to Devices and makes
  those cards jump out there (ChainRevealController). The pending subtitle
  no longer says "below".
- Trial, VS budget, Pro-unregistered and health-ride banners as before,
  without their neutral outlines.
- Virtual shifting: title and trainer (opens the trainer page), a SIM / ERG
  indicator that only reports the mode, the drivetrain, the gear numeral
  with "of 24", − / + (48 dp, labelled, same shiftUp / shiftDown), and
  power / cadence / ratio. In ERG the numeral is the target power and − / +
  step it; the drivetrain dims. The front ring toggle is shared with the
  trainer page. Without a live trainer: Connecting…, a lost trainer with
  Connect, one line when the trainer app handles shifting, or an invitation
  to connect one; nothing in sensors-only mode.
- Your buttons: the controller picture with its action badges (tap to
  reassign), "Edit buttons", the hint, and "Just pressed X -> action ·
  Change" fed by the existing press notifier, so a press still rebuilds
  only the strip and the button. Several controllers get a block each with
  name, battery and Edit; none gets an invitation to pair one.
- From 840 up to the activity column Ride is two columns (shifting left,
  buttons and the latest activity right); one-column wide windows list each
  button's action beside the picture and drop the strip where the activity
  column already shows every press.

The chain cards (controllers, trainer or sensors, trainer app) move to the
top of Devices, unchanged. Offstage sections turn heroes off so the two
copies of a controller's buttons don't collide.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 10:00:13 +02:00
Jonas Bark
c47667af94 UI adjustments, BLE advertisement fix 2026-04-26 09:14:00 +02:00
Jonas Bark
eabe519188 UI improvements 2026-04-25 22:36:25 +02:00
Jonas Bark
1a9559d67d use proper visuals for controllers 2026-04-25 10:39:22 +02:00
Jonas Bark
b6442d6937 ui adjustments, DRY fixes 2026-04-24 14:13:05 +02:00
Jonas Bark
bfe5fa6b25 UI adjustments 2026-04-24 12:41:00 +02:00
Jonas Bark
299ab8f6b6 fix(controller): lighter contour fill + IgnorePointer so it can't swallow taps 2026-04-24 12:30:36 +02:00
Jonas Bark
b163d771d4 fix(controller): match button positions by name + fill contour with light gray 2026-04-24 12:25:39 +02:00
Jonas Bark
ccbc9ff740 UI adjustments 2026-04-24 11:40:13 +02:00
Jonas Bark
61314fad22 feat(controller): ControllerCanvas widget with positioned buttons 2026-04-24 10:54:43 +02:00