Overview
Users need a full-page view of all their documents with search, filtering, and pagination. The dashboard only shows a preview — this page is the complete document management interface.
Background
File to create: frontend/app/(protected)/documents/page.tsx
Features:
- Search bar (debounced, calls
GET /api/documents/search?q=)
- Status filter dropdown (ALL / PENDING / ANALYZING / VERIFIED / FLAGGED / REJECTED)
- Risk score range slider (0–100)
- Sort options: Newest first, Oldest first, Highest risk, Lowest risk
- Paginated table with columns: Name, Status (badge), Risk Score, Uploaded, Actions
Actions per row:
- View detail (link to
/documents/:id)
- Verify (button, only shown if status is PENDING)
- Archive (button)
- Download report (link to
/documents/:id/report)
Bulk actions:
- Select multiple documents → bulk archive, bulk download as ZIP (if implemented)
Acceptance Criteria
Overview
Users need a full-page view of all their documents with search, filtering, and pagination. The dashboard only shows a preview — this page is the complete document management interface.
Background
File to create:
frontend/app/(protected)/documents/page.tsxFeatures:
GET /api/documents/search?q=)Actions per row:
/documents/:id)/documents/:id/report)Bulk actions:
Acceptance Criteria
Badgecomponent from FE-05