Dynamic Assets tab now uses new RE components since we want to be able to move RE into grafana and other platforms. Hence the RE components are now standalone in the react-components folder. We should remove duplication and use these components in the the dashboard.
Added in new RE components into Dynamic Assets tab (asset model explorer drop-down variant, asset explorer drop-down variant, asset
Removed edge explorer since the new RE has a ternary in its request functions that deals with missing APIs on edge
Fixed bugs with RE footer being misaligned
Fixed bug with disabling of add button in footer. It was not disabling Add button when no widgets were selected. useIsAddButtonDisabled hook was checking returning the wrong boolean on selectedWidget check.
added filter out composite models in asset explorer for dynamic assets to reflect changes made here 2948
Major decision: Because the asset drop down state is split between the preview and edit mode, we need to ensure that the state is synced. To do so we kept old API calls to update state for the selected asset Model and asset.
uses useModeledBasedQuery hook to get the current assetModelId on the query,
filter through a describe assetModel call to get assets and then find asset with same ID
Populate that as current selected asset
Added e2e tests for dropdowns and all existing tests for RE's are made to pass with new components.
Overview
Dynamic Assets tab now uses new RE components since we want to be able to move RE into grafana and other platforms. Hence the RE components are now standalone in the react-components folder. We should remove duplication and use these components in the the dashboard.
Major decision: Because the asset drop down state is split between the preview and edit mode, we need to ensure that the state is synced. To do so we kept old API calls to update state for the selected asset Model and asset.
Added e2e tests for dropdowns and all existing tests for RE's are made to pass with new components.
Verifying Changes
https://github.com/user-attachments/assets/bbae6fc6-1085-4904-a424-1d0b67e86b4a
Legal
This project is available under the Apache 2.0 License.