Skip to content

feat(sequences-review): add stage selector with seq_annotation_done default#122

Open
MateoLostanlen wants to merge 2 commits intomainfrom
feat/review-stage-selector
Open

feat(sequences-review): add stage selector with seq_annotation_done default#122
MateoLostanlen wants to merge 2 commits intomainfrom
feat/review-stage-selector

Conversation

@MateoLostanlen
Copy link
Copy Markdown
Member

  • /sequences/review previously listed only annotated sequences. It now exposes a stage dropdown covering Seq annotation done (default), In review, Annotated, and Needs manual, with the choice persisted in localStorage.
  • For annotated, behavior is unchanged (model accuracy, smoke/FP type filters, unsure filter, legend, row coloring). For the other three stages, the page mirrors /sequences/annotate (plain list).
  • Stage syncs into filters.processing_stage via a useEffect, resetting pagination on switch; user filters (date range, camera, etc.) persist across stage changes.
  • Codex review applied: explicit isReviewPage prop replaces the implicit "stageSelector defined" flag; key={stage} remount removed in favor of the effect.

Verified via tsc --noEmit, eslint (no new warnings), and vitest (615/615). Full UI walkthrough was not run since the Docker stack was not started locally.

…efault

Route /sequences/review now exposes a stage dropdown covering
seq_annotation_done (default), in_review, annotated, needs_manual.
The selected stage is persisted across reloads via localStorage.
Review-specific UI (model accuracy, smoke/FP filters, unsure, legend,
row coloring) stays gated on the annotated stage; the page behaves
like /sequences/annotate for the other three stages.
…a effect

- Replace implicit isReviewPage = (stageSelector !== undefined) with an
  explicit boolean prop so behavior is decoupled from the UI prop.
- Drop the key={stage} remount; sync filters.processing_stage via a
  useEffect that resets pagination on stage change. Avoids losing
  in-flight query state on stage switches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant