feat: metadata enrichment queue (#67) #77
Reference in New Issue
Block a user
Delete Branch "feature/67-metadata-enrichment-queue"
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?
Summary
Closes #67.
Adds a focused post-scan enrichment workflow: after bulk uploading documents, users can work through a queue of incomplete documents one by one without hunting through the main list.
Backend
metadata_complete BOOLEAN NOT NULL DEFAULT TRUE— existing rows are marked complete; new uploads start asfalseGET /api/documents/incomplete-count,/incomplete,/incomplete/next?excludeId=metadataCompletelogic by source:falsefalseonly if date + sender + receivers are all missing (heuristic)Frontend
/enrich(hidden when queue is empty)/enrich: list of incomplete documents, newest first; "Start reviewing" jumps to first item/enrich/[id]: full-height split view — PDF preview left, compact form right (title, date, sender, receivers, tags). Actions: Skip (advance without saving) · Save (partial save, stay incomplete) · Save & mark as reviewed (setsmetadataComplete=true, advances)/enrich/done: shown when no more incomplete documents remainTest plan
./mvnw test)/enrichlist shows all uploaded docs, newest first/enrich/[id]opens with PDF preview and form/enrich/doneshown; home page card disappearsmetadataComplete=true; rows with all three missing →falsenpm run checkto validate types🤖 Generated with Claude Code