Skip to content

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 ReviewFilters in useToolEventFilters.ts to support proofread_status instead of is_fully_proofread.
  • Updated event-filter normalization and sanitization so backend-provided proofread_status values are preserved.
  • Removed the old is_fully_proofread: false fallback from Document Digitization.
  • Document Digitization now sends only media_type: ['document'] by default.
  • This allows the backend /records/for-review endpoint to apply its own proofread priority order:
    1. partial
    2. no
    3. yes
  • Added a regression test to ensure the removed is_fully_proofread field 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

Merge request reports

Loading