Closed bsekachev closed 3 months ago
[!IMPORTANT]
Review skipped
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The recent update introduces a new workspace type, Workspace.SINGLE_SHAPE
, to the CanvasWrapperComponent
class, enhancing its functionality. Changes in the single-shape workspace include new action types, refactored event handlers, and UI adjustments. The styles have been updated to reflect these changes, and documentation and tests have been modified to align with the new workflow.
File Path | Summary |
---|---|
cvat-ui/src/components/annotation-page/canvas/views/canvas2d/... |
Added Workspace.SINGLE_SHAPE to condition checks in CanvasWrapperComponent . |
cvat-ui/src/components/annotation-page/single-shape-workspace/... |
Added SET_NEXT_FRAME action, refactored event handlers, and updated UI interactions. |
cvat-ui/src/components/annotation-page/single-shape-workspace/styles.scss |
Renamed class .cvat-single-shape-annotation-sidebar-skip-wrapper to .cvat-single-shape-annotation-sidebar-finish-frame-wrapper . |
site/content/en/docs/manual/advanced/single-shape.md |
Updated List of Hints section to reflect new interface usage and undo functionality. |
tests/cypress/e2e/features/single_object_annotation.js |
Updated button action from 'Skip' to 'Next' and modified control flow in tests. |
sequenceDiagram
participant User
participant UI as Annotation UI
participant Canvas as CanvasWrapperComponent
participant Sidebar as SingleShapeSidebar
User->>UI: Select SINGLE_SHAPE workspace
UI->>Canvas: Initialize with SINGLE_SHAPE
Canvas->>Sidebar: Notify workspace change
User->>Sidebar: Annotate shape
Sidebar->>Canvas: Update annotation
Sidebar->>Sidebar: Handle SET_NEXT_FRAME action
Sidebar->>Canvas: Finish frame and move to next
Canvas->>UI: Update display
UI->>User: Show next frame
In the realm of shapes, a new type's found,
SINGLE_SHAPE workspace, where annotations abound.
With actions refined and frames to skip,
The sidebar's ready for a smoother trip.
Next frame awaits, the journey's bright,
Annotate with ease, from day to night.
🎨✨🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.52%. Comparing base (
5d36d10
) to head (1a2b56a
). Report is 3 commits behind head on develop.
BTW, we probably need to add changelog
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Motivation and context
How has this been tested?
Checklist
develop
branchLicense
Summary by CodeRabbit
New Features
Workspace.SINGLE_SHAPE
for more flexible annotation options.Refactor
Documentation
Single Shape
annotation mode guide with improved hints for using the interface.Tests