refactor: declaratieve vraagstekst-mapping per quizType #70
Labels
No labels
blocked
bug
design
documentation
duplicate
enhancement
future
good first issue
help wanted
invalid
question
refactoring
tracker
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jelmer/topoquiz#70
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Probleem
In
renderQuestion()staan hardgecodeerde if-blokken voor de vraagstekst:Bij elk nieuw quizType of fase-variant moet je dit if-blok uitbreiden.
Oplossing
Declaratieve mapping:
Nieuwe quizTypes voegen één regel toe aan de mapping zonder if-blokken te editten.
Impact
Risico
Laag. Playwright smoke tests voor set 72 ("Welk gewest is dit?") en set 71 zijn de regressiecheck.
Zie REFACTORING.md voorstel #7
Meegenomen in #67: QUESTION_TEXT-mapping geïmplementeerd in renderQuestion().