Files
DeepTutor/web/contracts
Frank-zhu2000 9a04808c33 fix: follow the OS theme until the user picks one
The first visit stored the detected palette and never listened for
prefers-color-scheme changes, so the theme stopped tracking the OS and
Settings had no System choice.

Do not write that fallback. Subscribe while the preference is missing or
"system", and add a System option in Appearance. New accounts default to
system so Apply does not freeze the snow palette.
2026-10-28 16:31:49 +08:00
..

Generated frontend contracts

The backend owns the wire contract. Do not edit files under schema/ or generated/ by hand.

From the repository root, refresh both layers after a backend contract change:

python scripts/export_frontend_contracts.py
cd web && npm run contracts:generate

CI runs python scripts/export_frontend_contracts.py --check in backend contract tests and npm run contracts:check before frontend typechecking. A drift failure means the committed artifacts must be regenerated with the commands above.