feat: flag books for metadata review and mark barcode-scanned books #88
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!88
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/review-and-scan-flags"
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?
Closes #78
Closes #80
One migration (
20261025220000_add_review_and_scan_flags_to_books) adds three columns tobooks:needs_metadata_review(bool, default false),metadata_review_note(text, max 2000 chars) andscanned_via_barcode(bool, default false), plus a partial index on flagged books. Migrations run on app start, so deploys need no extra step.#78 Metadata review
/books?needs_review=true), kept across search and the grid/list switch.#80 Scanned via barcode
POST /books/scan), the batch scanner (POST /books/batch-add) and the camera scan (the JS addsscanned=trueto the ISBN lookup, and the single-result add form carriesbook[scanned_via_barcode]).Tests:
book_review_and_scan_flags_test.exs(12 cases covering each scan path, the negative paths, the edit → show round trip, the list filter and the note limit).mix precommitis green. Browser check (desktop + phone width): flag + note on the edit page, alert on the book page, list filter on/off, unflag.Not covered by a browser check: the real camera scan (needs a camera); its server side is under test.