Commit Graph

19 Commits

Author SHA1 Message Date
Jonas Bark
47ed186ced feat(auth): put email sign-in below the social buttons
The social logins are what most riders reach for, so they lead; the emailed
code is the fallback and now sits under the "or" divider. Covered by a test
asserting the form renders below the last social button, so the order cannot
drift back unnoticed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-20 09:04:54 +02:00
Jonas Bark
2eca5d4178 feat(auth): sign in with an emailed six-digit code
Riders without a Google, Apple, GitHub or Facebook account can now sign in
with their email address: Supabase mails a six-digit code and EmailLoginForm
redeems it via verifyOTP.

Deliberately code-only rather than a clickable magic link — a link has to
travel back through bikecontrol://, which is unreliable on Windows and Linux,
and corporate mail scanners routinely open (and thereby burn) one-shot links
before the rider ever sees the message. A typed code behaves the same on every
platform, including web.

The Supabase side is the send-auth-email hook in the website repo, which
renders the branded BikeControl mail through Resend.

Also folds the pop/onBack block that was duplicated across all four OAuth
handlers into _afterSignIn(), which adds the mounted guard those calls were
missing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-20 08:52:34 +02:00
Jonas Bark
a6f409f9ea misc fixes 2026-06-18 17:48:25 +02:00
Claude
360331a47b 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
85daae84ed new ui #13 2026-03-11 18:26:57 +01:00
Jonas Bark
baf98f21b3 privacy notice 2026-03-07 17:39:50 +01:00
Jonas Bark
6707d52874 google sign in fix 2026-03-07 08:20:53 +01:00
Jonas Bark
ca9836a1cb version++ 2026-03-06 15:52:26 +01:00
Jonas Bark
acc9ff6642 login with facebook, UI fixes 2026-03-06 14:40:30 +01:00
Jonas Bark
782dc235ce add login with github 2026-03-06 11:21:09 +01:00
Jonas Bark
d75f58a636 translations #1 2026-03-06 09:59:18 +01:00
Jonas Bark
8d1656dcf2 UI Fixes 2026-03-01 12:36:08 +01:00
Jonas Bark
c16e5f9cbd ui adjustments 2026-02-27 12:42:33 +01:00
Jonas Bark
43420e1e63 paywall for macOS + Windows 2026-02-25 23:19:38 +01:00
Jonas Bark
dfae1f021c user settings fix 2026-02-23 22:13:47 +01:00
Jonas Bark
4419a06599 user settings sync implementation 2026-02-22 10:12:52 +01:00
Jonas Bark
dcdd7a5bda user settings sync implementation 2026-02-22 10:00:42 +01:00
Jonas Bark
0c9d45815e user settings sync implementation 2026-02-22 09:17:45 +01:00
Jonas Bark
f08cebcee8 move subscription pages 2026-02-22 08:33:47 +01:00