simpl-liste/tests
le king fu 0b8bf144df fix(sync): pulled rows keep local-only fields and newer offline edits
Move the construction of pulled rows into a pure, import-free module
(src/services/syncRules.ts) executed by node --test:

- pulled{List,Task,Tag}Values always build the full row; an existing row
  keeps its local createdAt, and a task keeps its calendarEventId (the
  server has no such column, so the pull used to null it);
- keepLocal: in a whole-account pull (since === SYNC_EPOCH), a local row
  strictly newer than the server copy is left untouched and re-queued in
  the outbox, so edits made while signed out survive the reconnection;
- server deletions still always apply; task-tag links are unchanged.

fullSync and initialReset use SYNC_EPOCH. REVIEW.md lists syncRules.ts
in the Haut table (Sync zone) with the new rules, and the smoke test
keeps the module import-free.

Refs #149

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:21:45 -04:00
..
feedback.test.mjs feat(feedback): integrate Feedback Hub widget in Settings (#68) 2026-07-27 19:43:12 -04:00
smoke.test.cjs fix(sync): pulled rows keep local-only fields and newer offline edits 2026-10-24 14:21:45 -04:00
syncRules.test.mjs fix(sync): pulled rows keep local-only fields and newer offline edits 2026-10-24 14:21:45 -04:00