Show the artifact source of link evidence in a modal.
Why
To allow the user to view an artifact from the list of evidence on the Bio view subgraph.
How
Move the ModalDocument to the main component folder.
Update the ModalDocumentto accept both a CardInterface and a CosmosArtifactInterface.
Added the ModalDocument to the Bio view.
Screenshot
Testing
Go in the Bio view by opening a model
Create a subgraph by searching the graph
Click on the edge of the subgraph to see the list of evidences supporting that link
Click on an evidence to open the artifact source.
Anything else
As seen on the Screenshot, the CosmosArtifactInterface does not provide any images, at least on all the links or evidences I tried.
Some COSMOS types or API objects (CosmosSearchObjectsInterface and CosmosArtifactInterface) are used similarly but are entirely different. We should have a wrapper around COSMOS responses to clean that up and not have our front-end deeply link to COSMOS types. Especially that COSMOS API is likely to evolve in the following years.
What
Why
How
ModalDocument
to the main component folder.ModalDocument
to accept both aCardInterface
and aCosmosArtifactInterface
.ModalDocument
to the Bio view.Screenshot
Testing
Anything else
CosmosArtifactInterface
does not provide any images, at least on all the links or evidences I tried.CosmosSearchObjectsInterface
andCosmosArtifactInterface
) are used similarly but are entirely different. We should have a wrapper around COSMOS responses to clean that up and not have our front-end deeply link to COSMOS types. Especially that COSMOS API is likely to evolve in the following years.