Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit bd3d96e

Browse files
authored
feat: TT-167 link experiment (#224)
* feat(permision): add user permissions to the application * fix(scopes): New task disabled if no access * fix(scopes): remove package manager line * fix(rm): fix rebase miskate * fix(chore): link experiment details into tasks table * fix(spacing): change size and text * fix(style): remove extra font-size Signed-off-by: AmirReza <[email protected]> --------- Signed-off-by: AmirReza <[email protected]>
1 parent 5920d01 commit bd3d96e

File tree

1 file changed

+23
-2
lines changed
  • aqueductcore/frontend/src/components/molecules/TaskListTableCells/TaskExperimentName

1 file changed

+23
-2
lines changed

aqueductcore/frontend/src/components/molecules/TaskListTableCells/TaskExperimentName/index.tsx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { Grid, styled, Typography } from "@mui/material";
1+
import { Grid, IconButton, styled, Typography } from "@mui/material";
2+
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
3+
import { MouseEvent } from 'react';
4+
25
import { ExperimentData } from "types/graphql/__GENERATED__/graphql";
36

47
const ExperimentNameChip = styled(Grid)`
@@ -22,8 +25,13 @@ const ExperimentEid = styled(Typography)`
2225
`;
2326

2427
function TaskExperimentName({ name, eid }: { name: ExperimentData['title'], eid: ExperimentData['eid'] }) {
28+
function handleOpenExperimentDetailsPage(e: MouseEvent) {
29+
e.stopPropagation()
30+
window.open(`/aqd/experiments/${eid}`)
31+
}
32+
2533
return (
26-
<ExperimentNameChip container>
34+
<ExperimentNameChip container alignItems='center'>
2735
<Grid item>
2836
<ExperimentName noWrap>
2937
{name}
@@ -32,6 +40,19 @@ function TaskExperimentName({ name, eid }: { name: ExperimentData['title'], eid:
3240
<Grid item>
3341
<ExperimentEid>{eid}</ExperimentEid>
3442
</Grid>
43+
<Grid item>
44+
<IconButton
45+
size="small"
46+
onClick={handleOpenExperimentDetailsPage}
47+
title="View experiment"
48+
sx={{
49+
ml: 1,
50+
alignItems: "flex-end"
51+
}}
52+
>
53+
<OpenInNewIcon sx={{ fontSize: '1.2rem' }} />
54+
</IconButton>
55+
</Grid>
3556
</ExperimentNameChip>
3657
);
3758
}

0 commit comments

Comments
 (0)