Skip to content

Highlight the active review mask and advance the shared fiber cursor - #14

Merged
KneeKin-crtl merged 1 commit into
collagen-baselinefrom
active-fiber-review-highlight
Nov 19, 2026
Merged

KneeKin-crtl merged 1 commit into
collagen-baselinefrom
active-fiber-review-highlight

Conversation

@KneeKin-crtl

Copy link
Copy Markdown
Owner

Summary

Make the currently reviewed fiber easy to locate. The editor previously marked its selected ID only with dashed bounds and left that target selected after Accept/Reject. Guided review now highlights the exact active mask in steady dark blue and advances through visible objects without saved human labels.

Changes

  • Enable Guided review (blue target, auto-advance) by default.
  • Draw the selected segmentation ID in #00008B with a white contrast halo on the existing temporary preview canvas. The layer shares original-image coordinates, zoom, scrolling and responsive sizing; it never intercepts pointer input.
  • Keep toolbar target names and the Object ID dropdown synchronized. Selection-only messages do not save corrections, modify measurement rows or create training examples.
  • Capture each decision's target before advancing, including rapid queued keyboard decisions. Restore the failed target if persistence fails.
  • Clear the blue layer when review is complete, background clears the selection, or Outline mode is entered. Guided Next does not fall back to already reviewed objects.
  • Retain the previous free-form inspection and outline-repair workflow when Guided review is switched off.
  • Use a steady highlight rather than blinking, avoiding flicker and animation/timer lifecycle work.
  • Document behavior and expose the active ID for browser diagnostics.

Preserved behavior

Segmentation, fiber IDs, original pixels, calibration, geometry, quality/acceptance rules and numerical exports are unchanged. Green approval and numerical eligibility remain separate. Blue is a temporary review cursor; it is absent from review_overlay.tiff, count_overlay.tiff and the measurement CSVs.

Validation

  • 192 tests passed on Python 3.12 and exact Python 3.15.2.
  • Source desktop smoke test passed: analysis, export, ImageJ comparison, workbook import, uploaded-image UI and server lifecycle.
  • Full Chromium checks passed on both source environments with 250 ms HTTP latency; the slower 1,000 ms interaction run also passed.
  • Verified visible composited blue pixels, exact-mask highlighting on a crossing rather than its bounding box, non-target pixels, zoom/scroll/resize alignment, initial selection, ID-dropdown synchronization, both decision directions, empty-queue cleanup, Undo/Redo and failed-save target restoration.
  • Rapid A/R/A decisions saved three distinct intended IDs; temporary blue was absent from downloaded QC overlays and raw geometry was unchanged in exported CSVs.
  • Existing free-form clicks, outlines, persisted review history, queue rollback and export checks remain enabled. Research Lab UI passed four responsive widths.

Native Windows packaging results: pending.

These are software-behavior checks, not scientific measurement validation.

@KneeKin-crtl
KneeKin-crtl merged commit 442328e into collagen-baseline Nov 19, 2026
7 checks passed
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