Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bigstones
Copy link

@bigstones bigstones commented Sep 7, 2025

Motivation and context

#7370

and I wanted to be able to view a specific attribute on the page all at once while inspecting.

How has this been tested?

Test reorder

setting order(text, strikethrough, underline, is_last_in_line) -> check in canvas
스크린샷 2025-09-07 오후 11 44 04
스크린샷 2025-09-07 오후 11 44 39

setting order(text, is_last_in_line, strikethrough, underline) -> check in canvas
스크린샷 2025-09-07 오후 11 44 53
스크린샷 2025-09-07 오후 11 45 08

Test always show selective attribute

Non Check Enable selective object details display
스크린샷 2025-09-07 오후 11 46 10

Check Enable selective object details display
스크린샷 2025-09-07 오후 11 46 15

Set Attribute want to always show
스크린샷 2025-09-07 오후 11 46 25

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

- Added drag-and-drop support for reordering attributes in the label form.
- Introduced utility functions for safe array manipulation and validation.
- Enhanced the UI with visual feedback for drag handles and tooltips.
- Updated tests to cover new reordering features and ensure functionality remains intact after reordering.
- Added Cypress commands for streamlined attribute manipulation in tests.
- Updated the attribute submission logic to use the current order from form values instead of fieldInstances.
- Added debug logging to track attribute order before and after reordering actions.
- Ensured re-rendering of the component after attribute reordering to reflect changes immediately.
- Updated the attribute rendering logic in CanvasView to use the order defined in the label constructor, ensuring consistency with the label's attribute definitions.
- Introduced a new utility function to order attributes based on job configuration, allowing for dynamic attribute ordering in ObjectItemDetails.
- Modified the ObjectItemDetails component to utilize the new ordering function, improving the display of attributes according to the job's specifications.
- Introduced selective display settings in the canvas model, allowing users to enable or disable the display of specific labels and attributes.
- Updated the canvas view to filter attributes based on the new selective display settings, ensuring only relevant details are shown.
- Added action creators and reducers to manage selective display settings in the Redux store.
- Enhanced the workspace settings modal to include options for configuring selective display preferences.
- Implemented utility functions to filter attributes and labels according to the selective display settings, improving the user experience in the annotation workflow.
- Updated the CanvasView implementation to manage selective display changes more effectively.
- Added logic to re-render text elements based on updated selective display settings, ensuring accurate representation of labels and attributes.
- Improved the condition for recreating text elements to include selective display configurations, enhancing user experience in the annotation workflow.
- Introduced a selective display feature allowing users to show object details based on specific labels and attributes in workspace settings.
- Added UI controls for selecting labels and attributes, with immediate application of changes without needing to reload the workspace.
- Implemented action creators and reducers to manage selective display settings in the Redux store.
- Created comprehensive tests for actions, reducers, and utility functions related to selective display.
- Documented the feature in the changelog and user documentation for clarity on usage and functionality.
@bigstones bigstones requested a review from nmanovic as a code owner September 7, 2025 15:23
- Removed debug logging for attribute order comparisons in the label form to streamline the submission process.
- Updated error handling comments for clarity when rendering attribute inputs.
- Enhanced comments in the attribute ordering utility to improve code readability and understanding of the mapping process.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 8, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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