john-okeefe
64e1ba87b9
Implement Part 1: Fix Scan Library button with progress UI
Implements the frontend scan button fix from TASKS-scanning-progress.md Part 1.
Changes:
1. web/src/admin.ts - Added 6 new TypeScript functions:
- scanAllLibraries(): Fetches all libraries, triggers scan for each
- showScanProgress(): Displays progress UI with per-library progress bars
- pollScanProgress(): Polls status every 2 seconds, updates progress
- updateLibraryProgress(): Updates individual library progress bar/status
- showScanResults(): Displays scan completion results
- hideScanProgress(): Hides progress UI
2. templates/admin.templ - Updated UI:
- Added admin.js script include (Step 2)
- Changed button onclick from quickScan() to scanAllLibraries() (Step 3)
- Removed broken inline quickScan() function (Step 3.5)
- Added progress UI HTML with slide-in animation (Step 4)
Key Features:
- Fetches all libraries via GET /api/libraries
- Triggers scan for each library via POST /api/libraries/{id}/scan
- Displays per-library progress bars
- Shows overall progress percentage
- Real-time status updates every 2 seconds
- Results summary with file counts and errors
- TailwindCSS animation (no custom CSS)
- Follows PROJECT_GUIDELINES.md: TypeScript only, TailwindCSS classes
TypeScript compiles successfully (npm run build:ts)
All guidelines verified (26/26 checks pass)
2026-02-25 12:20:48 -05:00
..
2026-02-19 21:05:59 -05:00
2026-02-25 12:20:48 -05:00
2026-02-18 16:40:51 -05:00
2026-02-18 16:40:51 -05:00
2026-02-23 17:02:35 -05:00
2026-02-18 16:40:51 -05:00
2026-02-18 16:40:51 -05:00
2026-02-18 16:40:51 -05:00
2026-02-19 21:22:15 -05:00
2026-02-24 17:00:11 -05:00
2026-02-16 09:18:02 -05:00
2026-02-18 16:40:51 -05:00
2026-02-18 16:40:29 -05:00
2026-02-18 16:40:29 -05:00
2026-02-24 10:25:06 -05:00
2026-02-24 16:10:33 -05:00
2026-02-18 16:40:51 -05:00
2026-02-22 18:40:22 -05:00
2026-02-18 16:40:51 -05:00
2026-02-18 16:40:51 -05:00
2026-02-18 16:40:29 -05:00
2026-02-24 12:57:54 -05:00
2026-02-24 13:00:14 -05:00
2026-02-16 16:50:19 -05:00
2026-02-24 16:36:49 -05:00
2026-02-24 16:36:49 -05:00