feat: Frontend manual extraction flow (#129) #145
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Relates to #129
Milestone 7: Frontend Manual Extraction Flow
Files
frontend/src/features/documents/components/DocumentForm.tsxfrontend/src/features/documents/hooks/useManualExtraction.ts(NEW)frontend/src/features/maintenance/components/MaintenanceScheduleReviewScreen.tsx(NEW)frontend/src/features/maintenance/hooks/useCreateSchedulesFromExtraction.ts(NEW)Flags: needs conformance check (mobile + desktop)
Requirements
scanForMaintenance=true, trigger manual extraction job viaPOST /api/ocr/extract/manualuseManualExtractionhook: submit job, poll status, track progress, handle completion/erroruseCreateSchedulesFromExtractionhook: batch POST /api/maintenance/schedules for each selected itemAcceptance Criteria
Tests
frontend/src/features/maintenance/components/MaintenanceScheduleReviewScreen.test.tsx(NEW)Milestone: Frontend Manual Extraction Flow
Phase: Execution | Agent: Developer | Status: PASS
Summary
Verified and completed the frontend manual extraction flow. All 4 implementation files were already in place from prior work on the branch. Identified and fixed 4 gaps against acceptance criteria.
Changes Made
useManualExtraction.ts - Added poll error handling including 410 Gone detection:
pollQuery.errornow surfaces asstatus: 'failed'instead of getting stuckDocumentForm.tsx - Added specific progress stage messages:
MaintenanceScheduleReviewScreen.tsx - Enforced 44px minimum touch targets:
minWidth: 44, minHeight: 44minHeight: 44minWidth: 44, minHeight: 44minHeight: 44MaintenanceScheduleReviewScreen.test.tsx - Added 3 missing test cases:
Quality Checks
Acceptance Criteria Status
Verdict: PASS | Next: QR post-implementation review