WIP 2.0.0: React Compiler lint rules back to errors; docs

- The 192 places the rules flagged are fixed and the rules are errors
  again (npx eslint src: nothing). lib/hooks.ts: useStateSync (state
  that follows other state, set while rendering), useExternalEffect
  (API loads and browser reads), useNow; lib/navigation.ts hardNavigate
  for full reloads after sign-out or identity switches; other pages use
  the router. Resets moved into the handlers that cause them.
- The banner shows and hides at its times on open pages.
- HANDOVER, roadmap, README, FEATURES, SETTINGS, CHANGELOG updated;
  2.0.0 section drafted in WHATS-NEW.

e2e 102/102 (PayFast sandbox skipped); production build passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 17:45:25 +02:00
co-authored by Claude Opus 5.5
parent 3f59164ab2
commit abd2c36e97
102 changed files with 613 additions and 354 deletions
+11
View File
@@ -77,6 +77,17 @@ and this project follows [Semantic Versioning](https://semver.org/).
Playwright waits for `/api/v2/setup/needed`.
- Documented shapes corrected: the access log's `actions` (action → label) and a cash-up's
`cashDenominations` (notes and coins).
- **The React Compiler lint rules are errors again** (`set-state-in-effect`, `purity`,
`immutability`, `refs`, `static-components`); the 192 places they flagged are fixed, and
`npx eslint src` reports nothing. New hooks in `frontend/src/lib/hooks.ts`: `useStateSync` (state
that follows other state, set while rendering), `useExternalEffect` (loading from the API or
reading the browser), `useNow` (the time, refreshed each minute); `hardNavigate` in
`lib/navigation.ts` for the full reloads after signing out or switching who is signed in. Other
pages navigate with the router. Several resets moved into the handlers that cause them.
- Small behaviour fixes from that work: the site banner now appears and goes at its set times
without a reload; lists of past/upcoming events stay right on a page left open; registering
goes to the next page without a full reload; popups keep the latest close handler without
writing it during render.
## [1.52.3] - 2026-11-02