pdf-quiz-generator/frontend/src
Daniel 77361816d8
Some checks failed
Tests / backend (push) Failing after 4s
Tests / frontend (push) Failing after 26s
Tests / e2e (push) Failing after 37s
fix: the "Add to library" block in a question preview was three faults at once
It said library and meant collection. Its dropdown was always empty,
because the only page that renders this preview passes no collections —
so it read "Choose collection…" with nothing under it. And the "New
library…" input called setCollections, which does not exist in that
component: typing a name and pressing Enter created the collection,
added the question to it, and then threw a ReferenceError. Twelve lines,
none of which worked as written.

Removed rather than repaired. This preview is a moderator's editing
surface; putting a question aside is a learner's act and already lives
in the session and reading flows, where the collections are actually
loaded.

While there, the same word elsewhere: the Collections page called its
own contents "the question libraries you keep", which is the mislabel
the user spotted, on the page named after the other word. A library here
is the article library or an image library; a collection is what a
learner puts aside.

Found by the ped-ai session; the ReferenceError is mine to have missed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TqXevQJhxFrM7jJg82cgZN
2026-09-13 15:35:14 +02:00
..
api feat: authorize tutor context and protect uploaded media 2026-09-07 15:04:00 +02:00
components fix: the "Add to library" block in a question preview was three faults at once 2026-09-13 15:35:14 +02:00
context fix: Reading cannot edit, and the menu button reaches the menu everywhere 2026-09-13 04:36:44 +02:00
hooks fix: drawers that close, sources that are sources, and a model that does not haggle 2026-09-12 23:34:24 +02:00
pages fix: the "Add to library" block in a question preview was three faults at once 2026-09-13 15:35:14 +02:00
test Remove coach modes and improve quiz audio 2026-05-10 01:24:06 +02:00
utils fix: Tidy says Tidy, and takes the shake out when pressed 2026-09-13 04:50:19 +02:00
App.jsx feat: no account creation here — the provider makes accounts 2026-09-13 14:37:10 +02:00
App.test.jsx fix: a page you cannot open says so; a section row fits its card 2026-09-12 01:21:20 +02:00
index.css fix: the figures route handed out the answer side to anybody signed in 2026-09-13 15:29:29 +02:00
main.jsx Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00