Commit Graph

94 Commits

Author SHA1 Message Date
Jonas Bark
8f221245cc new unlock method 2026-06-06 19:54:00 +02:00
Jonas Bark
bd7cb80014 feat: reload emulator advertisement when trainer app changes
- Settings.trainerAppListenable fires from setTrainerApp.
- Connection.initialize listens and restarts ftmsEmulator + each
  ProxyDevice's _proxyEmulator so the new advertisement name (e.g.
  "Zwift Hub" for Rouvy) appears on the wire without reconnect.
- ProxyDevice.restartProxyEmulator no-ops in VS mode (ftmsEmulator
  handles itself).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-31 18:33:33 +02:00
Jonas Bark
75dd10371a show default OBP actions 2026-05-11 20:53:25 +02:00
Jonas Bark
6d83c78892 some fixes 2026-05-09 10:26:52 +02:00
Jonas Bark
7a88d2d200 fix(overlay): use Set<OverlayField> typing in Settings accessors
The prop package re-exports protocol/zp.pb.dart which defines a protobuf
`class Set`, shadowing the built-in Set type. Added `hide Set` to the
prop import so Dart's Set is visible and the overlay accessors can use
proper Set<OverlayField> types instead of dynamic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 22:57:14 +02:00
Jonas Bark
661b63107a feat(overlay): persist overlay enabled, fields, and desktop position 2026-05-08 22:55:13 +02:00
Jonas Bark
4cf347580d warn when connecting smart trainer 2026-05-07 15:57:02 +02:00
Jonas Bark
847a2962f5 UI, support adjustments 2026-05-05 15:27:28 +02:00
Jonas Bark
bfc21510ad feat: persist Di2 BLE enabled flag in settings 2026-04-28 19:03:46 +02:00
Jonas Bark
e999795655 feat: surface unread support-chat replies on the HelpButton
Adds a sticky 'support_chat_active' bool to Settings, flipped to true
the first time SupportChatService.openChat succeeds. HelpButton becomes
a StatefulWidget; if the flag is set in initState it kicks off a
background fetchChat() and counts admin-side messages whose createdAt
is later than the chat's lastSeenAt. When at least one is found, a
small destructive-coloured dot appears both on the button's leading
icon (top-right corner) and as the trailing slot of the inline 'Chat
with Support' menu entry.

Opening the chat clears the dot locally and re-runs the unread check
on return so the indicator stays in sync with what the user has now
seen. All checks are best-effort: missing auth, network errors, and
edge-function failures are swallowed and the dot just stays off.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 08:44:01 +02:00
Jonas Bark
c6ddfc7a3e fix 2026-04-26 13:02:06 +02:00
Jonas Bark
0dc041737a feat: wire ReviewPromptService into app startup
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 12:09:56 +02:00
Jonas Bark
596c89bbb5 feat: add settings keys for in-app review prompt tracking
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 12:06:16 +02:00
Jonas Bark
9f3e418649 feat: default smart trainers to Virtual Shifting on first connect
Adds ProxyDevice.defaultRetrofitMode that returns RetrofitMode.bluetooth or
RetrofitMode.wifi when the device advertises FTMS and the user has a
matching Trainer Connection enabled (resolved via preferredBridgeTransport).
Power-meter-only and HRM-only devices, plus smart trainers with no enabled
Bridge transport, fall back to RetrofitMode.proxy.

Threads the device default through Settings.getRetrofitMode as a `fallback`
parameter so the auto-connect path, the tap-to-connect handler in
ProxyPage, and the picker's initState all surface VS first.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 22:40:36 +02:00
Jonas Bark
ddfc44ce24 feat(proxy): remember intent to connect; auto-start on next scan
Persist a per-trainer auto_connect_<trainerKey> flag via Settings. Set
to true whenever the user explicitly starts the emulator (tap in the
Trainer & Accessories list, or the Connect button on the disconnected
card). Clear to false when they tap Disconnect (or Disconnect & forget).

In Connection._handleConnectionQueue's proxy branch, after the shared
listener setup finishes, check the flag for the scanned ProxyDevice —
if set and nothing else is in flight, pick up the saved retrofit mode
and fire startProxy() so the emulator is ready by the time the user
opens the details page (or without opening it at all).
2026-04-21 10:55:33 +02:00
Jonas Bark
1e79c31ff8 feat(settings): per-trainer retrofit-mode persistence 2026-04-21 09:32:39 +02:00
Jonas Bark
f75fc6dd69 feat(settings): re-apply trainer settings on connected proxies when keymap changes 2026-04-20 09:43:38 +02:00
Jonas Bark
22d603aac0 refactor(settings): drop legacy proxy_* accessors
All call sites now go through core.shiftingConfigs and the active
ShiftingConfig. Remove the global getProxy*/setProxy*/clear helpers
and the associated clamp constants; these lived at lib/utils/settings/settings.dart:488-568.
The unused fitness_bike_definition import it pulled in drops with
them.
2026-04-20 07:46:27 +02:00
Jonas Bark
650b4737c4 feat(settings): persist custom 24-step gear ratios
Adds getProxyGearRatios/setProxyGearRatios/clearProxyGearRatios on
the Settings class, bumps the prop submodule to pick up the mutable
table and public gear constants on FitnessBikeDefinition, and covers
the roundtrip + edge cases with tests.
2026-04-15 23:02:19 +02:00
Jonas Bark
f14c9ff01e feat(settings): add proxy bike/rider weight, grade smoothing, VS mode 2026-04-15 21:02:38 +02:00
Jonas Bark
8ede62aed1 cleanup 2026-04-15 11:14:21 +02:00
Jonas Bark
e955d81fce connection settings adjustments 2026-03-18 10:07:22 +01:00
Jonas Bark
91f693ec0d new ui #5 2026-03-10 21:02:41 +01:00
Jonas Bark
809596d397 revise logic 2026-03-06 18:18:23 +01:00
Jonas Bark
92e80647d2 login with facebook, UI fixes 2026-03-06 14:40:30 +01:00
Jonas Bark
7c0d2cd25c UI adjustments 2026-02-27 12:33:18 +01:00
Jonas Bark
ba0af42129 user settings fix 2026-02-23 22:13:47 +01:00
Jonas Bark
98e7eaf51a work on issue #310 2026-02-23 15:18:17 +01:00
Jonas Bark
184cc5d671 Merge remote-tracking branch 'origin/copilot/allow-key-presses-to-rouvy' into login 2026-02-23 14:27:05 +01:00
copilot-swe-agent[bot]
1a19d740e7 Add target app name setting to send key presses to a specific app on macOS
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2026-02-23 08:26:10 +00:00
Jonas Bark
9dfc4fd608 user settings sync implementation 2026-02-22 10:12:52 +01:00
Jonas Bark
3abbae24d7 user settings sync implementation 2026-02-22 09:17:45 +01:00
Jonas Bark
a9f52dbbd0 sign in with google, apple 2026-02-16 16:26:22 +01:00
Jonas Bark
6686278457 add new remote keyboard connection method 2026-02-05 17:22:21 +01:00
copilot-swe-agent[bot]
3b69fdd510 Implement media key detection persistence
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2026-02-04 14:07:07 +00:00
Jonas Bark
b7536a9c1b update translations 2026-01-28 09:59:18 +01:00
Jonas Bark
8997b54a9a group buttons by device, add new unlock mechanism 2026-01-23 15:27:32 +01:00
Jonas Bark
d01cb51ffb fix issue #258 2026-01-16 00:20:30 +01:00
Jonas Bark
2fc0bd880d Web fixes 2026-01-03 20:50:06 +01:00
Jonas Bark
18bd75715d make notifications optional on macOS & iOS 2026-01-03 09:42:03 +01:00
Jonas Bark
1d57c18dd9 onboarding for new users 2025-12-31 15:52:30 +01:00
Jonas Bark
4adbae5fb3 revenue cat changes, italian translation 2025-12-28 13:12:20 +01:00
Jonas Bark
d28d8515f3 bugfixes and clarifications 2025-12-20 10:01:37 +01:00
Jonas Bark
b48b135043 SRAM AXS support 2025-12-19 20:41:27 +01:00
Jonas Bark
be1a0f472d implement functionality, refactoring 2025-12-18 11:33:14 +01:00
Jonas Bark
8efe7c0863 cleanup, translations 2025-12-16 10:14:48 +01:00
Jonas Bark
e580b2beaf iap adjustment 2025-12-15 08:37:56 +01:00
Jonas Bark
03185af169 in app purchase implementation on macOS / iOS 2025-12-14 19:32:23 +01:00
Jonas Bark
3ead85e560 Merge branch 'main' into copilot/implement-in-app-purchase
# Conflicts:
#	lib/bluetooth/devices/base_device.dart
#	lib/pages/configuration.dart
#	lib/utils/settings/settings.dart
2025-12-14 16:42:50 +01:00
Jonas Bark
5a67f2ee76 remove remains of swift_control 2025-12-14 16:22:07 +01:00