pdf-quiz-generator/frontend
Daniel 3c7931a350
Some checks failed
Tests / backend (push) Failing after 4s
Tests / frontend (push) Failing after 27s
Tests / e2e (push) Failing after 36s
feat: find an article and drop its link, from wherever you are writing
The picker already existed and did the right thing — search by title,
expand an article to pick one section, click to get `[[264|Croup]]` or
`[[264#workup|the workup]]` on the clipboard. It was wired into exactly
one place: the article editor. Everywhere else, linking still meant
opening the library in another tab and reading the id out of the address
bar.

It is on the markdown toolbar now, so every field that has one gets it:
a question's stem, its explanation, and each option's reasoning — seven
buttons on the question editor, which is most of the places a
cross-reference is actually written. The marker lands at the caret
rather than at the end, and still goes to the clipboard, so it works the
same whether you insert it or paste it elsewhere.

The card editor has its own button, because its two faces are plain
textareas with no toolbar. It remembers which face the caret was last
in — a marker belongs where somebody was typing, not always on the back.

Lazily loaded: it carries a search box and a request, and most edits
link nothing.

Verified on the live question editor: search "croup" returns four
articles and clicking one appends the marker to the stem.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TqXevQJhxFrM7jJg82cgZN
2026-09-13 14:45:45 +02:00
..
public
src feat: find an article and drop its link, from wherever you are writing 2026-09-13 14:45:45 +02:00
.dockerignore
docker-entrypoint.sh
Dockerfile
index.html
nginx.conf feat: a versioned API, refresh tokens, and an end-to-end stack that found four bugs 2026-09-13 01:23:38 +02:00
package-lock.json
package.json
vite.config.js