Skip to content

Various bugfixes and smaller edit updates#11

Merged
fwrise merged 20 commits into
mainfrom
dev-track
Mar 23, 2026
Merged

Various bugfixes and smaller edit updates#11
fwrise merged 20 commits into
mainfrom
dev-track

Conversation

@fwrise
Copy link
Copy Markdown
Member

@fwrise fwrise commented Mar 23, 2026

No description provided.

fwrise and others added 20 commits March 9, 2026 20:33
…riority items)

High priority:
- H1: Split TrackingService._track (263→154 lines) into _prepare_tracker,
  _check_edge_exit, _check_stationary_or_exit (+ M9 guard methods)
- H2: Extract paintEvent helpers in overlay.py (202→85 lines):
  _paint_relationships, _paint_bbox_label, _paint_bbox_handles, _paint_bbox_extras
- H3: Split _on_overlay_context_menu (132→20 lines) into
  _build_bbox_context_menu and _dispatch_bbox_context_action
- H4: Split mouseMoveEvent (155→65 lines) into _handle_hover_update,
  _handle_resize_drag, _handle_rotate_drag
- H5: Add pure-logic unit tests for _frames_to_ranges, cascade property
  description, and CascadeDeltaBBoxCommand do/undo
- H6: De-duplicate 3 cascade function pairs via shared _ask_next_frame_range
  and _execute_cascade_command helpers (~90 lines removed)

Medium priority:
- M1: Split annotation_ops.py (1834→452 lines) into 6 sub-modules:
  _annotation_helpers, _annotation_cascade_ops, _annotation_context_menu,
  _annotation_tracking_ops, _annotation_delete_ops, _annotation_relationship_ops
- M2: Extract _validate_tracking_preconditions from _start_tracking
- M3: Move _update_overlay_from_model to frame_sync.py, decouple render.py
- M4: Rename sidebar signal start_bbox_drawing→new_object_bbox_requested
- M5: Split _run_retrack_range in sidebar.py via _validate_retrack_inputs
  and _run_retrack_loop
- M6: Extract _point_in_rotated_rect from hit_test (111→30 lines)
- M7: Add BBoxResizedEvent, BBoxRotatedEvent, CascadeApplyEvent dataclasses
  for Overlay signals with 4+ parameters
- M8: Split markit passes.py (2964→25 lines) into 15 per-class files under
  postprocessing/_passes/ with __init__.py re-exports
- M9: Extract _check_edge_exit and _check_stationary_or_exit guard methods

Test count: 247 passed, 2 skipped (was 125 edit + 122 markit before)
Lint: 0 flake8 errors

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@fwrise fwrise merged commit 314548b into main Mar 23, 2026
3 checks passed
@fwrise fwrise deleted the dev-track branch March 23, 2026 16:36
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