-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix: LEAP-1957: Fix implementation of readonly behavior for controls and audio regions #7412
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
Conversation
Introduced regression integration and e2e tests to ensure annotations in "view all" mode are non-editable. Covered use cases for Rating, Taxonomy, and Audio regions. Added a new helper for accessing the "view all" button in the ToolBar component.
Ensure that controls respect the `isReadOnly` property across components. - Enabled `isEditable` for Taxonomy and linked it to disabled prop. - Updated tests to verify readonly functionality. - Applied the `isReadOnly` check in AudioRegionModel, Rating control, and associated UI elements to restrict user interactions properly.
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for label-studio-docs-new-theme ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for heartex-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/fm sync |
Refined conditions to handle `updateable` state across multiple interactions, adding ability to select region without editing it. - Removed unnecessary `updateable` checks for mouse events where not required. - Added conditional guardrails for edge dragging and region selection to ensure consistent behavior. - Simplified and enhanced readability of related conditional statements.
Introduce a new test to validate audio region selection functionality. - Added `audioPerRegionConfig` to support per-region choices. - Updated the test spec to verify selection and visibility of per-region choices in the UI.
…o fb-LEAP-1957/view-all-tests
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.
Audio changes look good, not as familiar with the other changes but based on the tests and code also look good!
/git merge
|
Reason for change
This update addresses the need to enforce readonly functionality across components, ensuring that the
isReadOnly
property is respected as intended. Additionally, the features ensure that annotations in "view all" mode remain non-editable, improving the application's integrity.Solution
isReadOnly
checks across Rating controls, Taxonomy, and Audio regions, restricting user interactions appropriately.Testing
Risks
No significant risks have been identified, as this change enforces UI constraints without altering the core application logic.