refactor(filters): replace is_fully_proofread with proofread_status in ReviewFilters
Description:
This R updates the frontend review-filter flow to match the backend proofread status changes.
The backend replaced the old boolean field is_fully_proofread with a new enum field called proofread_status, which supports:
-
no- proofreading has not started -
partial- proofreading is in progress -
yes- proofreading is completed
Frontend changes made:
- Updated
ReviewFiltersinuseToolEventFilters.tsto supportproofread_statusinstead ofis_fully_proofread. - Updated event-filter normalization and sanitization so backend-provided
proofread_statusvalues are preserved. - Removed the old
is_fully_proofread: falsefallback from Document Digitization. - Document Digitization now sends only
media_type: ['document']by default. - This allows the backend
/records/for-reviewendpoint to apply its own proofread priority order:partialnoyes
- Added a regression test to ensure the removed
is_fully_proofreadfield is no longer sent from the Document Digitization review request.
Type of Change:
-
Bug Fix -
Feature Development -
Documentation
Testing:
-
Tested on desktop -
Tested on mobile -
Tested in different browsers
Screenshots (if applicable):
_Not applicable.
Video Demo
Not applicable.
Link to code walkthrough
To be added if required.
Checklist:
-
Code follows project style guidelines -
Self-review completed -
No console errors -
TypeScript types are correct