Skip to content

Commit

Permalink
list scopes on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
enjalot committed Jan 26, 2024
1 parent 80eef84 commit 2e236e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ function Home() {
<ul>
{datasets.map(dataset => (
<li key={dataset.id}>
<Link to={`/datasets/${dataset.name}/setup`}>{dataset.name}</Link>
<Link to={`/datasets/${dataset.name}/setup`}>Setup {dataset.name}</Link>
{scopes[dataset.id] && scopes[dataset.id].map && scopes[dataset.id]?.map((scope,i) => (
<div key={i} >
<Link to={`/datasets/${dataset.name}/explore/${scope.id}`}>Explore {scope.name} - {scope.label}<br></br>
<img width="120px" src={`${apiUrl}/files/${dataset.id}/clusters/${scope.cluster}.png`} />
</Link><br></br>
</div>
))}
</li>
))}
</ul>
Expand Down

0 comments on commit 2e236e1

Please sign in to comment.