eclipse-basyx / basyx-aas-web-ui

Web-based user interface for managing and interacting with Asset Administration Shells (AAS)
MIT License
9 stars 7 forks source link

Showing name of AAS in submodel list component and autoscrolling to selected AAS #97

Closed seicke closed 1 week ago

seicke commented 1 week ago

Description of Changes

aas-name-aas-tree-view

Related Issue

Closes #86

BaSyx Configuration for Testing

https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples/BaSyxMinimal

seicke commented 1 week ago

There is still another bug: If you open the GUI with aas query parameter, the AAS is selected (in the AAS list), but the name is not shown in the AASTreeView/SubmodelList.

aaronzi commented 1 week ago

You are right, good find. I will try to fix this.

Update: On initial load, the needed information is not present because only the endpoint can be constructed out of the query param coming from the address bar:

{
  "endpoints": [
    {
      "protocolInformation": {
        "href": "http://localhost:8081/shells/aHR0cHM6Ly9leGFtcGxlLmNvbS9pZHMvYWFzLzkyMDRfNjA5MV84MDQyXzczNzQ"
      },
      "interface": "AAS-3.0"
    }
  ]
}
seicke commented 1 week ago

Right, opening the GUI with aas query parameter is resulting in

  1. dispatchingSelectedAAS as object only containing the endpoint (via AASList.vue | mounted())
  2. dispatchingSelectedAAS as object only containing the endpoint (viaApp.vue)

From my point of view it should be sufficient if mounted() of AASList.vue will dispatch not just the endpoint of the AAS.