Files
swiftcontrol/lib/services
Jonas Bark 154ae178b8 fix(support): explain when a linked email already has an account
Linking an email to the anonymous support-chat session fails with GoTrue
email_exists (422) when the address belongs to another account. The card
showed its generic "try again" error, so riders kept retrying.

FeedbackSubmissionException now carries the auth error code, and
beginEmailLink throws EmailAlreadyInUseException for email_exists /
user_already_exists. The card shows a specific message: the address
already has an account, sign in under Pro > Account (the conversation
won't move over), or use a different email.

No in-card sign-in: support chats are one per user_id and nothing moves a
chat between users, so switching accounts would leave the current chat
behind.

The card tests' error listener now collects recorded errors so the
email_exists test can assert the failure is still recorded.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 21:18:24 +02:00
..
2026-03-08 15:03:36 +01:00
2026-02-19 12:42:27 +01:00
2026-02-23 22:13:47 +01:00