Closed bsekachev closed 5 days ago
The recent update to the SingleShapeSidebar
component in the CVAT UI introduces an optional forceSave
parameter to the finishOnThisFrame
function. This enhancement allows more controlled saving behavior when completing tasks on the current frame. The onClick handlers for the relevant buttons in the component have been updated to utilize this new parameter appropriately.
File Path | Change Summary |
---|---|
cvat-ui/src/components/annotation-page/single-shape-workspace/single-shape-sidebar/single-shape-sidebar.tsx | Modified the finishOnThisFrame function to accept an optional forceSave parameter and updated button onClick handlers to pass this parameter as needed. |
sequenceDiagram
participant User as User
participant UI as SingleShapeSidebar
participant Backend as Backend System
User->>UI: Click "Finish on This Frame" Button
UI->>UI: finishOnThisFrame(forceSave = true)
alt forceSave is true
UI->>Backend: Save current frame state
Backend->>UI: Acknowledge Save
end
UI->>User: Confirmation/Update UI
In a sidebar sleek, on the frame of today,
A new forceSave dances, ensuring no delay,
With clicks so precise, and handlers in tune,
The shapes are saved, beneath the coding moon.
Bravo to the bytes, and the logic we hail,
For now, our annotation, shall never fail.
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?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.62%. Comparing base (
2a720f4
) to head (898b942
).
Motivation and context
How has this been tested?
Checklist
develop
branchLicense
Summary by CodeRabbit
SingleShapeSidebar
component to include an option for forced save during frame completion. Users can now control the saving behavior more precisely when working within the sidebar.