INTO-CPS-Association / DTaaS

:factory: :left_right_arrow: :busts_in_silhouette: Digital Twin as a Service
https://into-cps-association.github.io/DTaaS/
Other
116 stars 57 forks source link

Add Library page preview #1081

Open VanessaScherma opened 17 hours ago

VanessaScherma commented 17 hours ago

Title

Add Library page preview

Type of Change

Description

PR with the aim of solving issue #1080. It adds the Library page preview and integrates it with the existing creation functionality.

The Library page shows users the various assets by type and privacy. It displays a card for each asset, in a board similar to those used in the Manage tab and the Execute tab. The user can view the details (README.md file, if present) and add one or more assets to the shopping cart. The shopping cart keeps track of the assets added so that, when clicking on the Proceed button or opening the Create tab, the Editor sidebar presents new sections, one for each asset added. These sections contain the configuration files of the relevant asset so that the user can modify them to suit the use of the new digital twin.

When a digital twin is created with assets, the relevant DT folder that is created in the user's GitLab profile will include both the DT files and a folder for each asset added, with the relevant files (the configuration files are updated with the content specified by the user during creation).

The Create tab now includes a switch to specify whether to make the new DT common or private. If the DT is common, it is also added to the common/digital_twins folder in the user's GitLab profile.

A board search filter has also been added to simplify the search for assets or digital twins.

Testing

Unit and integration tests are currently in progress.

Impact

This change adds and integrates the use of the Library, completing the Build-Use-Share model on which the application is based.

Additional Information

None.

Checklist