Commit Graph
20 Commits
Author SHA1 Message Date
jessikitty 4f26360cf2 Send the options marker, warn on an empty label 2026-10-12 22:12:55 +11:00
jessikitty b8571697dd Apply catalogue skin to the label form 2026-10-12 21:33:06 +11:00
jessikitty dea750927c Apply catalogue skin to the categories page 2026-10-12 21:32:42 +11:00
jessikitty 86b3f5a481 Add tape printer settings panel and catalogue skin 2026-10-12 21:32:14 +11:00
jessikitty 70443028e3 Reskin label list and add tape printing entry points 2026-10-12 21:31:49 +11:00
jessikitty 60f83fc002 Add tape printing page with live preview and printer probe 2026-10-12 21:29:20 +11:00
jessikitty b1c071ff88 Add catalogue browse page with the Update button 2026-10-12 21:28:45 +11:00
jessikitty ee8806c2a6 Add shared catalogue header and tab strip 2026-10-12 21:27:57 +11:00
jessikitty 88fdfe0169 Add printable label sheet template 2026-10-03 00:57:26 +10:00
jessikitty e36331e2d6 Add label settings page 2026-10-03 00:56:52 +10:00
jessikitty a4c760beac Add category management page 2026-10-03 00:56:37 +10:00
jessikitty a7ba8e511e Add label create/edit form 2026-10-03 00:56:17 +10:00
jessikitty 527f354f4a Add parts labels browse page 2026-10-03 00:55:54 +10:00
jessikitty f7c20de5ac Add owner-only logging and Brickset API call tracking
LIM configured no logging at all, so the instruction fetcher had no trail to follow. Adds a rotating file handler on the root logger plus two owner-only admin pages.

- Admin > Logs: filter by level, source and text; tracebacks kept with their error; auto-refresh, raw download, rotated-file browsing and rotate-now

- Admin > Logs > Brickset API calls: every outbound call recorded with method, params, caller, duration, result count and error, plus daily quota accounting (only getSets counts) and a comparison against getKeyUsageStats

- New owner concept (services/ownership.py): a single account, distinct from is_admin, since these pages expose other admins activity. Defaults to the first admin; flask owner show/set to change

- Services now log through module loggers; retention setting and pruning for call records

- New CLI: flask owner show/set, flask logs path/prune

- New table brickset_api_calls, created automatically at boot; LOG_* env vars, /data/logs in Docker
2026-09-27 10:42:49 +10:00
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 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 b16106db7d Add Backup and Restore admin page 2026-09-24 14:33:00 +10:00
jessikitty 63496b1ccd Initial commit - LEGO Instructions Manager v1.5.0 2025-12-09 17:20:41 +11:00