Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,22 @@ exports[`SnapshotContainer component > renders successfully 1`] = `
<p>
CBRAIN is a web-based distributed computing platform for collaborative neuroimaging research.
</p>
<hr />
<img
height="16"
src="/packages/openneuro-app/src/assets/external/neurodesk.png"
width="16"
/>

<a
href="https://play-america.neurodesk.org/hub/user-redirect/lab/tree/data/openneuro/ds001032"
target="_blank"
>
View on Neurodesk
</a>
<p>
Neurodesk provides browser-based access to a neuroimaging analysis environment with this dataset mounted.
</p>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import styled from "@emotion/styled"
import BrainlifeIcon from "../../../assets/external/brainlife.png"
import NemarIcon from "../../../assets/external/nemar.png"
import CbrainIcon from "../../../assets/external/cbrain.png"
import NeurodeskIcon from "../../../assets/external/neurodesk.png"

export interface CloneDropdownProps {
datasetId: string
Expand All @@ -24,6 +25,8 @@ export const AnalyzeDropdown: React.FC<CloneDropdownProps> = (
`https://nemar.org/dataexplorer/detail?dataset_id=${datasetId}`
const cbrainUrl =
`https://portal.cbrain.mcgill.ca/openneuro/${datasetId}/versions/${snapshotVersion}`
const neurodeskUrl =
`https://play-america.neurodesk.org/hub/user-redirect/lab/tree/data/openneuro/${datasetId}`
return (
<AnalyzeDiv className="clone-dropdown">
<Dropdown
Expand Down Expand Up @@ -91,6 +94,19 @@ export const AnalyzeDropdown: React.FC<CloneDropdownProps> = (
CBRAIN is a web-based distributed computing platform for
collaborative neuroimaging research.
</p>
<hr />
<img
src={NeurodeskIcon}
height="16"
width="16"
/>{" "}
<a href={neurodeskUrl} target="_blank">
View on Neurodesk
</a>
<p>
Neurodesk provides browser-based access to a neuroimaging analysis
environment with this dataset mounted.
</p>
</div>
</Dropdown>
</AnalyzeDiv>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@ describe("AnalyzeDropdown component", () => {
expect(menu).toHaveClass("collapsed")
fireEvent.click(button)
expect(menu).toHaveClass("expanded")
expect(
screen.getByRole("link", { name: "View on Neurodesk" }),
).toHaveAttribute(
"href",
"https://play-america.neurodesk.org/hub/user-redirect/lab/tree/data/openneuro/ds000031",
)
})
})
Loading