No description
Find a file
lila ce6dc4fa32 feat(shared): add quiz session Zod schemas
Add the shared schemas for the quiz request/response cycle, defining
the contract between the API and the frontend.

- Reorganise packages/shared: move schemas into a schemas/ subdirectory
  grouped by domain. Delete the old flat schema.ts.
- Add AnswerOption, GameQuestion, GameSession, AnswerSubmission, and
  AnswerResult alongside the existing GameRequest.
- optionId is an integer 0-3 (positional, shuffled at session-build
  time so position carries no information).
- questionId and sessionId are UUIDs (globally unique, opaque, natural
  keys for Valkey storage later).
- gloss is  rather than optional, for a predictable
  shape on the frontend.
- options array enforced to exactly 4 elements at the schema level.
2026-04-10 21:43:53 +02:00
apps formatting 2026-04-10 20:09:46 +02:00
data-sources formatting 2026-04-10 20:09:46 +02:00
documentation formatting 2026-04-10 20:20:09 +02:00
packages feat(shared): add quiz session Zod schemas 2026-04-10 21:43:53 +02:00
scripts formatting 2026-04-10 20:09:46 +02:00
.dockerignore infra: add Docker Compose setup for local development 2026-03-25 18:56:04 +01:00
.env.example infra: add Docker Compose setup for local development 2026-03-25 18:56:04 +01:00
.gitignore setting up python env, download word data 2026-03-26 11:41:46 +01:00
.prettierignore chore: configure root eslint with react and tanstack router rules 2026-03-21 19:32:38 +01:00
.prettierrc chore: configure prettier with ignore rules and format scripts + running format 2026-03-20 18:37:38 +01:00
docker-compose.yml adjusting path where the database file is saved, so the data persists after reboot 2026-03-31 10:04:50 +02:00
eslint.config.mjs chore: configure root eslint with react and tanstack router rules 2026-03-21 19:32:38 +01:00
mise.toml setting up python env, download word data 2026-03-26 11:41:46 +01:00
package.json extraction datafiles with cefr annotations 2026-04-08 13:09:47 +02:00
pnpm-lock.yaml extraction datafiles with cefr annotations 2026-04-08 13:09:47 +02:00
pnpm-workspace.yaml formatting 2026-03-21 19:33:07 +01:00
README.md initial commit 2026-03-20 08:57:09 +01:00
tsconfig.base.json formatting 2026-03-21 19:33:07 +01:00
tsconfig.json chore: configure prettier with ignore rules and format scripts + running format 2026-03-20 18:37:38 +01:00
vitest.config.ts chore: configure vitest with project-based setup and coverage 2026-03-20 19:25:00 +01:00

glossa