Commit Graph
12 Commits
Author SHA1 Message Date
jessikitty 89f65e2d74 Add automatic instruction fetcher for official sets
Downloads official instruction PDFs from LEGO, located via the Brickset API, one set per interval (10 minutes by default) so neither API gets hammered. Official sets only; MOCs are excluded throughout.

- New admin page at /admin/instruction-fetch: queue builder, pacing controls, live countdown and per-set job history

- Database-backed queue (instruction_fetch_jobs) and last-run timestamp, so pacing survives restarts

- Background worker thread, plus 'flask instructions queue/run/status' for Task Scheduler or cron

- SHA-256 dedupe (instructions.sha256), PDF header check, size cap and streaming downloads via temp files

- brickset_api: getInstructions2 by set number and getInstructions by setID (the old code sent a set number to the setID method); getSets params now proper JSON; getKeyUsageStats added

- Schema top-ups applied automatically at boot: new table plus instructions.sha256/source

- Docker: fetcher env vars passed through compose, no worker thread in the entrypoint bootstrap
2026-09-26 13:43:17 +10:00
jessikitty a82c77b0ef Build out the Site Settings page: signup, visibility defaults, navigation, bulk apply 2026-09-25 00:46:23 +10:00
jessikitty 6d20037cdf Hide the register prompt when signups are closed 2026-09-25 00:45:57 +10:00
jessikitty ac38227dac Add drag-and-drop archive upload with progress to the backup page 2026-09-24 20:31:21 +10:00
jessikitty 1199ec4766 Link Backup and Restore from site settings 2026-09-24 15:47:17 +10:00
jessikitty 5e34840465 Fix footer crash (no Jinja date filter), add admin/backup nav links and credit 2026-09-24 15:47:05 +10:00
jessikitty b16106db7d Add Backup and Restore admin page 2026-09-24 14:33:00 +10:00
jessikitty 62acef92ff Enhanced home page with improved hero section, feature cards, detailed benefits, and CTA 2026-01-05 17:57:56 +11:00
jessikitty 7f583f1ac4 Enhanced dashboard with improved stat cards, better layout, getting started guide, and refined typography 2026-01-05 17:57:14 +11:00
jessikitty 9de38dfbe2 Enhanced base template with better fonts, icons in alerts, auto-hide messages, loading states, and micro-interactions 2026-01-05 17:56:32 +11:00
jessikitty 3aa81f5b6d Add auto-fill MOC number feature with refresh button 2025-12-15 07:58:47 +11:00
jessikitty 63496b1ccd Initial commit - LEGO Instructions Manager v1.5.0 2025-12-09 17:20:41 +11:00