feat: quiz bff and grading

This commit is contained in:
electron-rare
2026-06-11 00:12:08 +02:00
parent 2672cfce9b
commit 1fe2b18e97
4 changed files with 338 additions and 1 deletions
+10
View File
@@ -325,3 +325,13 @@ regeneration (must print 0):
```bash
grep -c '"correct"\|"feedback"' fixtures/quizbank-3.json
```
### Grist table `QuizAttempts` (doc `bPfitC7Poc4r2xGRx7FgHL`)
Created one-shot via the Grist API (`/apply` AddTable) on 2026-06-10 — the
app never creates tables. Columns: `user_sub` Text, `email` Text,
`course_slug` Text, `quiz_n` Int, `score` Int, `total` Int, `reponses`
Text (JSON `{questionId: [choiceIds]}`), `date` DateTime (epoch seconds),
`moodle_synced` Bool. One row per submitted attempt (retakes unlimited,
best wins); same Bool-filter caveat as Progression — filter `quiz_n` /
`moodle_synced` in app code, only Text equality filters via the API.