pour application android simpl-liste
- TypeScript 78.5%
- JavaScript 19.3%
- Python 2%
- Dockerfile 0.1%
- CSS 0.1%
Every sync now goes through one scheduler (src/services/syncSchedule.ts, pure and import-free): one sync at a time, a request during a sync gives a single relaunch, a sliding budget of 6 real HTTP requests per 60 s (each POST batch and each GET counted, initialMerge and initialReset included), pushChanges sends the batches the budget allows (MAX_PUSH_BATCHES becomes a ceiling) and the rest of the queue follows once the window frees, a 429 suspends the scheduler until Retry-After, and no sync starts during initialMerge / initialReset. The repositories call requestSync() (src/services/syncTrigger.ts, 2 s debounce, single subscriber registered by _layout.tsx) after each outbox write and after the Inbox repair transaction; outbox.ts and syncClient.ts never do. _layout.tsx syncs on launch, every 30 s in the foreground, on return to the foreground and on write through scheduleSync(); the Settings button too. REVIEW.md and scripts/review-levels.py list the two new files in the Sync row. test: reproduces #178 (tests/syncSchedule.test.mjs, smoke guards) Refs #178 Refs #167 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .vscode | ||
| app | ||
| assets | ||
| patches | ||
| scripts | ||
| src | ||
| tests | ||
| web | ||
| .gitignore | ||
| app.json | ||
| babel.config.js | ||
| CLAUDE.md | ||
| DECISIONS.md | ||
| drizzle.config.ts | ||
| eas.json | ||
| index.js | ||
| masterplan.md | ||
| metro.config.js | ||
| nativewind-env.d.ts | ||
| package-lock.json | ||
| package.json | ||
| REVIEW.md | ||
| SECURITY.md | ||
| spec-decisions-sync-suites.md | ||
| spec-plan-sync-delai-comptes-etiquettes.md | ||
| spec-plan-sync-suites.md | ||
| spec-simpl-liste-web.md | ||
| sql-transformer.js | ||
| STATE.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||