Commit Graph

24 Commits

Author SHA1 Message Date
Jonas Bark
ebe038e1e2 feat(help): link to the bikecontrol.app setup guide for the controller + app
Adds a "Use {controller} with {app}" link that opens the matching
bikecontrol.app/use-<controller>-with-<app>/ how-to page:
- as the first entry in the Help & Support dropdown (above Instruction
  Videos), using the connected controller + selected trainer app;
- on the controller detail page, for that controller + the selected app.

Each controller device and trainer app maps to its website slug
(SupportedApp.helpSlug + a controller lookup in help_article.dart), with a
generic "other-training-app" fallback when a combination has no dedicated
page and no entry when the controller type has none. New localized string
useControllerWithApp across all 6 languages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 20:31:23 +02:00
Jonas Bark
8bb86dce17 perf: open support chat instantly; gather diagnostics in background
debugText now runs a multi-second mDNS scan. Stop awaiting it before
navigating — kick it off as a future, open the chat immediately, and let
SupportChatPage await it lazily for the diagnostic preview and at send time.
2026-06-22 17:00:17 +02:00
Jonas Bark
6f6d98a311 make new support replies more prominent
Pulsing halo badge, destructive-color icon and border, and a bolded
"Chat with support" menu item when an unread admin reply is detected.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:41:49 +02:00
Jonas Bark
a335694f0a UI fixes 2026-05-13 09:45:09 +02:00
Jonas Bark
390d09b964 UI adjustments, add screenshot to support 2026-05-13 09:05:48 +02:00
Jonas Bark
9771d046fe show support chat indicator 2026-04-28 08:57: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
6dd0dd92a1 Support UI adjustments 2026-04-27 19:20:28 +02:00
Claude
14cbfb9b58 feat: replace trainer feedback and mail support with chat
Adds a Supabase-backed support chat that replaces the existing trainer
feedback page and the mail support entry in the help dropdown. The chat
captures the same telemetry snapshot (extracted into a shared
TelemetrySnapshot module) and supports threaded replies and attachments.

- New SupportChatService wrapping the four edge functions plus a signed
  URL helper for support-attachments storage.
- New SupportChatPage / SupportThreadPage with composer, attachment chips,
  optimistic send, sign-in gate, and pull-to-refresh.
- Help dropdown's Mail entry replaced with "Chat with Support" that
  pre-fills debugText() as freetext on the first message.
- Trainer device details "Provide Feedback" button now opens the chat
  with TelemetrySnapshot.fromDevice telemetry.
- Login screen gets a subordinate "Don't want to sign in? Write a mail
  instead" ghost button (mobile only) that opens the existing mailto.
- Telemetry helpers moved out of the deleted trainer feedback files into
  lib/services/telemetry_snapshot.dart; test rewritten for the new class.

https://claude.ai/code/session_0155Bb4kCYaxKh7zQfoQHZET
2026-04-27 08:18:23 +00:00
Jonas Bark
6435be973f new ui #19 2026-03-12 10:11:17 +01:00
Jonas Bark
0bb5f89457 new ui #17 2026-03-11 20:31:27 +01:00
Jonas Bark
beff562720 new ui #13 2026-03-11 18:26:57 +01:00
Jonas Bark
91f693ec0d new ui #5 2026-03-10 21:02:41 +01:00
Jonas Bark
7a649f0e6e UI Fixes 2026-03-01 12:36:08 +01:00
Jonas Bark
809150d37e vidoe instructions UI 2026-02-27 13:02:49 +01:00
Jonas Bark
dfa086f915 dynamically get instruction videos 2026-02-23 21:43:14 +01:00
Jonas Bark
a0cae79b70 no more material 2026-02-22 17:35:07 +01:00
Jonas Bark
7662192c18 video grid 2026-02-22 17:30:33 +01:00
Jonas Bark
563be65942 move repository, adjust references, license 2026-01-31 13:53:54 +01:00
Jonas Bark
2fc0bd880d Web fixes 2026-01-03 20:50:06 +01:00
Jonas Bark
ed1ce0da1c instructions UI change 2026-01-02 15:03:46 +01:00
Jonas Bark
e6ae6d3275 ui adjustments 2026-01-01 12:40:45 +01:00
Jonas Bark
fe4697f7c0 onboarding for new users 2025-12-31 16:16:37 +01:00
Jonas Bark
1d57c18dd9 onboarding for new users 2025-12-31 15:52:30 +01:00