feat(R4): dismissible sync error banner in email list #23

Merged
guettlibot merged 1 commits from task/r4-sync-error-banner into main 2026-05-13 21:14:45 +00:00
1 Commits
Author SHA1 Message Date
Thomas SharedInboxandClaude Sonnet 4.6 cf6e9c9af3 feat(R4): show dismissible sync error banner in email list
When the most recent sync for an account fails, a MaterialBanner now
appears at the top of EmailListScreen showing the error message with
Retry and Dismiss actions. The banner disappears automatically once a
subsequent sync succeeds.

- SyncLogRepository.observeLastError() — new lightweight stream that
  emits the last error message (or null on success / no history).
- syncLastErrorProvider — Riverpod StreamProvider.family wiring it up.
- EmailListScreen tracks dismissed errors per-session to avoid re-showing
  the same message the user already acknowledged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 23:10:18 +02:00