-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display shortcuts correctly in attribute annotation mode #8415
Conversation
WalkthroughThe changes involve enhancements to the Changes
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- cvat-ui/src/components/annotation-page/attribute-annotation-workspace/attribute-annotation-sidebar/attribute-editor.tsx (7 hunks)
Additional comments not posted (3)
cvat-ui/src/components/annotation-page/attribute-annotation-workspace/attribute-annotation-sidebar/attribute-editor.tsx (3)
35-35
: Approved: New utility functionmakeKey
.The introduction of
makeKey
enhances maintainability by centralizing key generation. This change aligns with the PR objectives to improve the handling of keyboard shortcuts.
37-39
: Approved: Consistent key generation in component shortcuts.Using
makeKey
within the loop ensures that keys are dynamically and consistently generated, which is crucial for the scalability and maintainability of shortcut handling.
Line range hint
214-325
: Approved: Enhanced handling and display of shortcuts inAttrValuesList
.The modifications in
AttrValuesList
utilize themakeKey
function for dynamic key generation and incorporatenormalizedKeyMap
for displaying key sequences. These changes significantly improve the clarity and functionality of the component, aligning with the PR's objectives to enhance user experience.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8415 +/- ##
===========================================
- Coverage 83.58% 83.58% -0.01%
===========================================
Files 396 396
Lines 41906 41906
Branches 3881 3881
===========================================
- Hits 35027 35026 -1
- Misses 6879 6880 +1
|
Motivation and context
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
New Features
AttrValuesList
component for improved management and display of attribute values and their associated shortcuts.Bug Fixes