Commit Graph

1218 Commits

Author SHA1 Message Date
Jonas Bark
58760b4312 Support intake form: "Something else" category + DE wording fix
Adds a fifth top-level intake category for problems that don't fit
the trainer-app / controller / smart-trainer / account buckets — no
follow-up dropdown, the user just continues to the composer.

Also renames "Anleitung lesen" → "Beitrag lesen" in the German
recommended-help button.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 19:32:11 +02:00
Jonas Bark
946790b22e Support intake form: use settings + connected controllers
Skip the "Which trainer app?" dropdown when one is already selected in
settings (pre-fill subcategory_value with its name). For "Which
controller?", restrict the catalogue to controllers actually paired
via core.connection.controllerDevices; fall back to the full list
when nothing is connected so users can still report pairing issues.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 19:16:56 +02:00
Jonas Bark
e91d19d7f8 Support intake form: use settings + connected controllers
Skip the "Which trainer app?" dropdown when one is already selected in
settings (pre-fill subcategory_value with its name). For "Which
controller?", restrict the catalogue to controllers actually paired
via core.connection.controllerDevices; fall back to the full list
when nothing is connected so users can still report pairing issues.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 19:16:56 +02:00
Jonas Bark
6f4bdad16c Support chat: intake form on new chats
Adds a small intake form to the new-chat empty state — users pick a
problem category (trainer app / controller / smart trainer / account)
plus a follow-up, see matching public issues with optional blog/video
links, and the answers ride along with the first message as JSON for
later analysis. Translations added for de/es/fr/it/pl.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 19:10:07 +02:00
Jonas Bark
29051daabe Support chat: intake form on new chats
Adds a small intake form to the new-chat empty state — users pick a
problem category (trainer app / controller / smart trainer / account)
plus a follow-up, see matching public issues with optional blog/video
links, and the answers ride along with the first message as JSON for
later analysis. Translations added for de/es/fr/it/pl.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 19:10:07 +02:00
Jonas Bark
75dd10371a show default OBP actions 2026-05-11 20:53:25 +02:00
Jonas Bark
952f866b9f 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
c847a10ed1 some fixes 2026-05-09 10:26:52 +02:00
Jonas Bark
3899c623a6 feat(review): suppress rate banner during trial period
Trial users haven't yet decided whether the app is worth paying for, so
prompting them to rate it produces noisy reviews. Hide the banner while
the trial is active; it returns once the user buys or the trial ends.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 09:19:20 +02:00
Jonas Bark
e36458e469 feat(review): suppress rate banner during trial period
Trial users haven't yet decided whether the app is worth paying for, so
prompting them to rate it produces noisy reviews. Hide the banner while
the trial is active; it returns once the user buys or the trial ends.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 09:19:20 +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
0259bc68e6 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
1ecf71cae1 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
72d26000e1 warn when connecting smart trainer 2026-05-07 15:57:02 +02:00
Jonas Bark
860a1b3523 fix trainer connection logic 2026-05-06 06:27:21 +02:00
Jonas Bark
aa1b9b5125 fix trainer connection logic 2026-05-06 06:27:21 +02:00
Jonas Bark
847a2962f5 UI, support adjustments 2026-05-05 15:27:28 +02:00
Jonas Bark
f7843f67e0 UI, support adjustments 2026-05-05 15:27:28 +02:00
Jonas Bark
b87056c20b support imperial / metric 2026-05-05 14:15:27 +02:00
Jonas Bark
f91333b2d2 support imperial / metric 2026-05-05 14:15:27 +02:00
Jonas Bark
fd870e356d adjustments 2026-04-28 20:15:38 +02:00
Jonas Bark
f3d473b820 adjustments 2026-04-28 20:15:38 +02:00
Jonas Bark
a880434709 fix: include Di2 BLE in hasRecommendedConnectionMethods so the off-target warning doesn't fire for Wahoo ELEMNT 2026-04-28 19:39:45 +02:00
Jonas Bark
0c55cc5085 fix: include Di2 BLE in hasRecommendedConnectionMethods so the off-target warning doesn't fire for Wahoo ELEMNT 2026-04-28 19:39:45 +02:00
Jonas Bark
7f04985a67 feat: treat dFly channel actions as active when Di2 BLE is enabled 2026-04-28 19:23:05 +02:00
Jonas Bark
d19eea9eb4 feat: treat dFly channel actions as active when Di2 BLE is enabled 2026-04-28 19:23:05 +02:00
Jonas Bark
996dfbd7a4 feat: wire Di2Emulator into Core connection-method registries
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 19:08:00 +02:00
Jonas Bark
3003bf63c8 feat: wire Di2Emulator into Core connection-method registries
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 19:08:00 +02:00
Jonas Bark
bfc21510ad feat: persist Di2 BLE enabled flag in settings 2026-04-28 19:03:46 +02:00
Jonas Bark
5fa96ddb8c feat: persist Di2 BLE enabled flag in settings 2026-04-28 19:03:46 +02:00
Jonas Bark
152ed69b16 feat: add Wahoo ELEMNT SupportedApp with di2Ble connection method 2026-04-28 18:49:03 +02:00
Jonas Bark
6a88e11863 feat: add Wahoo ELEMNT SupportedApp with di2Ble connection method 2026-04-28 18:49:03 +02:00
Jonas Bark
4766bff12f improve HID device logic 2026-04-28 18:48:32 +02:00
Jonas Bark
ed2853c2aa improve HID device logic 2026-04-28 18:48:32 +02:00
Jonas Bark
153c45dc3e feat: add dFlyChannel1..4 InGameActions for Wahoo ELEMNT target 2026-04-28 18:45:30 +02:00
Jonas Bark
d10c586456 feat: add dFlyChannel1..4 InGameActions for Wahoo ELEMNT target 2026-04-28 18:45:30 +02:00
Jonas Bark
6712a5803c fix reported issues 2026-04-28 10:38:04 +02:00
Jonas Bark
d8116eb118 fix reported issues 2026-04-28 10:38:04 +02:00
Jonas Bark
f8fb2749ff fix: stop reconstructing IconData on keymap decode (tree-shake fix)
The IconData(...) call in KeyPair.decodeButton — added to round-trip
ControllerButton.icon through SharedPreferences — is a non-const
constructor that defeats Flutter's icon-font tree-shaker, breaking
the release build:

    This application cannot tree shake icons fonts. It has non-constant
    instances of IconData at the following locations:
      - lib/utils/keymap/keymap.dart:511:18

In practice the round-trip was redundant: known buttons in
ControllerButton.values already carry their const icon in the static
definition, so they get the same icon back via copyWith on decode
just from the matched name. Unknown buttons never had a custom icon
in the first place, so dropping the encode side too is a no-op for
saved profiles.

Encode now emits only name (+ deviceId when set); decode never
constructs an IconData. Comment in both halves explains the
constraint so this doesn't regress.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 09:25:01 +02:00
Jonas Bark
5e4093107a fix: stop reconstructing IconData on keymap decode (tree-shake fix)
The IconData(...) call in KeyPair.decodeButton — added to round-trip
ControllerButton.icon through SharedPreferences — is a non-const
constructor that defeats Flutter's icon-font tree-shaker, breaking
the release build:

    This application cannot tree shake icons fonts. It has non-constant
    instances of IconData at the following locations:
      - lib/utils/keymap/keymap.dart:511:18

In practice the round-trip was redundant: known buttons in
ControllerButton.values already carry their const icon in the static
definition, so they get the same icon back via copyWith on decode
just from the matched name. Unknown buttons never had a custom icon
in the first place, so dropping the encode side too is a no-op for
saved profiles.

Encode now emits only name (+ deviceId when set); decode never
constructs an IconData. Comment in both halves explains the
constraint so this doesn't regress.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 09:25:01 +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
92756f1147 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
3962d4516b feat: persist ControllerButton.icon in encoded keymaps
Extends KeyPair.encode/decode to round-trip the optional ControllerButton
icon alongside the existing name + sourceDeviceId fields. Encoded as a
{codePoint, fontFamily, fontPackage} sub-map only when present, so a
button without an icon still serialises as the legacy plain-string
shape — backward compatible with profiles already saved to
SharedPreferences.

Decoding rebuilds the IconData via its codePoint + font family/package,
then applies it via copyWith on the matched ControllerButton or as a
constructor arg for unknown-button fallback. Buttons that previously
had a default icon from their static definition are preserved on
decode (the decoded value overrides only when serialised).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 08:25:08 +02:00
Jonas Bark
864e1a7e72 feat: persist ControllerButton.icon in encoded keymaps
Extends KeyPair.encode/decode to round-trip the optional ControllerButton
icon alongside the existing name + sourceDeviceId fields. Encoded as a
{codePoint, fontFamily, fontPackage} sub-map only when present, so a
button without an icon still serialises as the legacy plain-string
shape — backward compatible with profiles already saved to
SharedPreferences.

Decoding rebuilds the IconData via its codePoint + font family/package,
then applies it via copyWith on the matched ControllerButton or as a
constructor arg for unknown-button fallback. Buttons that previously
had a default icon from their static definition are preserved on
decode (the decoded value overrides only when serialised).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 08:25:08 +02:00
Jonas Bark
39ad7b8b49 feat: add Workout Pause/Resume trainer action and inline feedback prompt
Workout: Pause/Resume action is a new InGameAction in the trainer-control
group. It toggles core.workoutRecorder between recording and paused
states without requiring a connected proxy trainer (handled in
base_actions.dart before the proxy dispatch). No-op when the recorder
is idle.

Inline feedback prompt replaces the standalone "Provide Feedback"
button on the proxy device details page. It shows "Does it work?"
with a 3-cell grid (Yes / No difference / No). Yes and No navigate
to TrainerFeedbackPage with the rating pre-filled (TrainerFeedbackPage
now accepts an optional initialRating). "No difference" dismisses
the prompt for the current page session.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 16:29:07 +02:00
Jonas Bark
8dca2d9454 feat: add Workout Pause/Resume trainer action and inline feedback prompt
Workout: Pause/Resume action is a new InGameAction in the trainer-control
group. It toggles core.workoutRecorder between recording and paused
states without requiring a connected proxy trainer (handled in
base_actions.dart before the proxy dispatch). No-op when the recorder
is idle.

Inline feedback prompt replaces the standalone "Provide Feedback"
button on the proxy device details page. It shows "Does it work?"
with a 3-cell grid (Yes / No difference / No). Yes and No navigate
to TrainerFeedbackPage with the rating pre-filled (TrainerFeedbackPage
now accepts an optional initialRating). "No difference" dismisses
the prompt for the current page session.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 16:29:07 +02:00
Jonas Bark
c6ddfc7a3e fix 2026-04-26 13:02:06 +02:00