simpl-liste/app
le king fu 38bcf8b893 fix(sync): no merge across accounts, sync off until the first-sync choice
Refs #165

A device holding another account's data (dataOwnerId, persisted, kept at
sign-out) only offers « Charger ce compte » (initialReset) or « Annuler »
(sign-out, data untouched), at sign-in and on « Synchroniser ». The rule
lives in syncRules.ts (firstSyncChoice).

Sync stays off until initialMerge or initialReset has succeeded, and the
scheduler refuses every sync while the local data belong to another account
(canSync): the outbox of the old account is never pushed under the new one.
The sync's own outbox writes (kept rows, the Inbox of initialReset) no
longer depend on syncEnabled, and the token getter follows the session, so
that the first sync runs with sync still off.

Sign-out pushes the outbox first (10 s at most, in the first-sync state of
the scheduler, one request reserved outside its budget) and warns with the
number of changes still unsent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:06:10 -05:00
..
(tabs) fix(sync): no merge across accounts, sync off until the first-sync choice 2026-11-02 21:06:10 -05:00
list fix: replace broken swipe-to-refresh with toolbar refresh button (#61) 2026-04-09 09:37:26 -04:00
task fix(sync): read the app inbox from the database and repair split devices 2026-10-25 20:20:24 -04:00
+not-found.tsx feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
_layout.tsx fix(sync): no merge across accounts, sync off until the first-sync choice 2026-11-02 21:06:10 -05:00