equinor / cc-components

Components and apps for CC.
MIT License
3 stars 0 forks source link

🎁 [handover] : Enable 3D in sidesheet #940

Closed kjellhaaland closed 5 months ago

kjellhaaland commented 5 months ago

The baseline 3D Model-viewer component is finished, and available for use in all cc-applications. Implemented in PR https://github.com/equinor/cc-components/pull/774

To use it in the rest of the applications, the following needs to be done:

  1. Create a new endpoint in each of the apps returning the relevant tags for a given entity. (/echo endpoint, see work-order implementation)
  2. Enable the model-viewer in application config.
  3. Add the ModelViewerTab to each sidesheet with relevant props.

In order to implement this, PO must provide a list of which types of tags that are relevant for 3D for each application.

kjellhaaland commented 5 months ago

@jone, which tags are relevant for 3D for this application?

atlewee commented 5 months ago

All tags in the selected commPk. completionTag.commissioningPackageId == selectedCommPk.sourceIdentity :)

kjellhaaland commented 5 months ago

Implementation note:

API endpoint for fetching tags relevant for Handover uses CompletionTagV3, and fetches all tags with a matching commissioningPackageId matching the commissioningPackageId of the Handover.

kjellhaaland commented 5 months ago

@JoneUE this is now ready for test.

Link: https://webserver-fusion-project-portal-test.radix.equinor.com/apps/handover/94dd5f4d-17f1-4312-bf75-ad75f4d9572c?tab=garden&item=113779282

JoneUE commented 5 months ago

image Where is the 3D tab?

JoneUE commented 5 months ago

Do you know if you get any matches in the model by using the CompletionRegister endpoint. This has all the dummyTags

atlewee commented 5 months ago

Info: There is no dummy-Tags in the 3D model, so wont be any match on those.

kjellhaaland commented 5 months ago

3D for Handover is now deployed to production. Closing this issue 🎉

FYI @JoneUE