NickAkhmetov/CAT-892 add vitessce json link #3591
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a "Download Vitessce Configuration" link to the titles of processed datasets with Vitessce configurations. This is accomplished by pulling out the link construction logic from the
useVitessceConf
hook into its ownuseVitessceConfLink
hook to ensure consistency and adding a corresponding button to the same row.I used the
SummaryJSONButton
as a base for the styling. After confirming that theWhiteRectangularTooltipIconButton
component used for this was not used anywhere else, I placed the sizing/position styling into the styles for that component, to ensure consistency going forward. To differentiate the buttons, I used theVisualizationIcon
.We could potentially place this button inline with the other Vitessce-specific buttons if desired; the non-unified view had this functionality in the header next to the json button, however, so I colocated the buttons for familiarity purposes.
Design Documentation/Original Tickets
https://hms-dbmi.atlassian.net/browse/CAT-892
Testing
I tested the functionality with the processed descendants of the following datasets:
Screenshots/Video
Checklist
CHANGELOG-your-feature-name-here.md
is present in the root directory, describing the change(s) in full sentences.Additional Notes
Please specify any additional information or context relevant to this PR.