Skip to content

Conversation

csm-thu
Copy link
Member

@csm-thu csm-thu commented Jan 31, 2025

This commit adds an 'elementsMetadata' prop, that can be used to define the desired order of attributes when selecting a node or edge in the visualization tool. The expected format for this prop is:

   {
     attributesOrder: {
       nodes: { nodeType1: ['someImportantAttribute', 'attribute1', 'attribute2'] },
       edges: { edgeType1: ['attributeA', 'attributeB']}},
     }
   }

If some attributes are missing in the list, they will be displayed after all the other attributes.

@csm-thu csm-thu requested review from esasova and nborde-CSM January 31, 2025 16:09
…onent

This commit adds an 'elementsMetadata' prop, that can be used to define the
desired order of attributes when selecting a node or edge in the visualization
tool. The expected format for this prop is:
   {
     attributesOrder: {
       nodes: { nodeType1: ['someImportantAttribute', 'attribute1', 'attribute2'] },
       edges: { edgeType1: ['attributeA', 'attributeB']}},
     }
   }

If some attributes are missing in the list, they will be displayed after all the
other attributes.
@csm-thu csm-thu force-pushed the THU/configurable_attributes_order_in_digital_twin_view_PROD-14225 branch from bb102d1 to 6936f32 Compare January 31, 2025 16:15
Copy link
Collaborator

@esasova esasova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Collaborator

@nborde-CSM nborde-CSM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :+1

@csm-thu csm-thu merged commit 6936f32 into release/9.5.x Feb 4, 2025
2 checks passed
@csm-thu csm-thu deleted the THU/configurable_attributes_order_in_digital_twin_view_PROD-14225 branch February 4, 2025 08:39
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.

3 participants