Commit Graph

3 Commits

Author SHA1 Message Date
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
106bea2857 show known open issues at the top of the Support chat
So users can spot already-tracked problems before opening a chat.
Each title links to https://bikecontrol.app/issues/{id}.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 08:40:50 +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