openreader/tests
Richard R 62c913e96d feat(pdf): refactor parse operation orchestration and client readiness flow
Introduce startPdfParseOperation to encapsulate worker operation creation, job rate tracking, and parse state initialization for PDFs. Replace scattered operation setup logic in register-upload, docx-to-pdf upload, and parse-state-backfill with this unified helper. Update job enqueuing to propagate initial opId/jobId/status for accurate state tracking.

Change getParsedPdfDocument to throw on non-ready states and remove polling logic from usePdfDocument, shifting readiness detection to event streams. Switch API responses for non-ready parses from 202 to 409 to clarify client expectations and simplify error handling.

Add targeted tests to verify legacy backfill behavior and ensure no worker operation is created for pure data fetches of pending legacy PDFs.

BREAKING CHANGE: API now returns 409 Conflict for non-ready parsed PDFs instead of 202, and clients must subscribe to event streams for parse progress.
2026-06-04 10:52:49 -06:00
..
files refactor(pdf-layout): streamline viewer layout settling and harden pdf document loading 2026-05-19 23:02:41 -06:00
unit feat(pdf): refactor parse operation orchestration and client readiness flow 2026-06-04 10:52:49 -06:00
accessibility.spec.ts Redesign: shared UI design system + app-wide migration (#96) 2026-06-01 16:17:12 -06:00
delete.spec.ts refactor(env): remove legacy no-auth mode and enforce required auth env vars 2026-05-31 12:09:37 -06:00
export.spec.ts tests: harden pdf readiness waits and extend tts/pdf timeouts 2026-05-24 20:58:57 -06:00
folders.spec.ts fix(onboarding): prevent no-auth auto settings modal races 2026-05-29 09:20:34 -06:00
global-teardown.ts refactor(env): remove legacy no-auth mode and enforce required auth env vars 2026-05-31 12:09:37 -06:00
helpers.ts feat(pdf): introduce parser versioning and playback readiness state 2026-06-03 18:51:29 -06:00
landing-routing.spec.ts refactor(settings): remove enableDestructiveDeleteActions runtime flag and related UI 2026-06-01 20:38:54 -06:00
navigation.spec.ts feat(pdf): introduce parser versioning and playback readiness state 2026-06-03 18:51:29 -06:00
play.spec.ts tests: harden pdf readiness waits and extend tts/pdf timeouts 2026-05-24 20:58:57 -06:00
upload.spec.ts feat(upload): implement presigned token-based upload with finalize step 2026-06-03 20:14:18 -06:00