pdf-quiz-generator/frontend
Daniel 5398342e3d Suspend pauses timer; hide timer-expired attempts from history
Suspend now pauses the timer instead of letting it run out:
- 'Suspend & Leave' sends suspended=true with time_left to backend
- On resume, backend re-anchors started_at to now with held time_left
- Closing tab without suspending continues to run the timer (unchanged)

Timer-expired auto-submits are marked with expired=1 and excluded from:
- Attempt history (GET /attempts/history)
- Dashboard stats (quiz count, total attempts, average score)
- Attempt list (GET /attempts)
- DDL: ALTER TABLE quiz_attempts ADD COLUMN expired INTEGER DEFAULT 0

Course-quiz decoupling is preserved — these changes only touch
non-course quizzes (Quiz.course_id IS NULL).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-19 19:27:46 +02:00
..
public Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
src Suspend pauses timer; hide timer-expired attempts from history 2026-04-19 19:27:46 +02:00
.dockerignore Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00
docker-entrypoint.sh Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
Dockerfile Fix course editor: field mismatches, TinyMCE, AI without save 2026-04-05 02:49:43 +02:00
index.html Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
nginx.conf Fix SCORM content blocked by CSP and X-Frame-Options 2026-04-11 02:08:51 +02:00
package-lock.json Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
package.json Decouple course quizzes, replace passlib, add security hardening 2026-04-06 21:31:05 +02:00
vite.config.js Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00