Skip to content

Commit aa09135

Browse files
committed
Show status of dataset on tile.
1 parent 700aeb1 commit aa09135

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

frontend/src/components/Explore.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ export const Explore = (): JSX.Element => {
109109
created={dataset.created}
110110
description={dataset.description}
111111
thumbnailId={dataset.thumbnail_id}
112+
publicView={true}
112113
frozen={dataset.frozen}
113114
frozenVersionNum={dataset.frozen_version_num}
115+
status={dataset.status}
114116
/>
115117
</Grid>
116118
);

frontend/src/components/Public.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const Public = (): JSX.Element => {
9696
publicView={true}
9797
frozen={dataset.frozen}
9898
frozenVersionNum={dataset.frozen_version_num}
99+
status={dataset.status}
99100
/>
100101
</Grid>
101102
);

frontend/src/components/datasets/DatasetCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ type DatasetCardProps = {
2424
description?: string;
2525
thumbnailId?: string;
2626
publicView?: boolean | false;
27-
frozen?: string;
27+
frozen?: boolean;
2828
frozenVersionNum?: number;
29+
status?: string;
2930
};
3031

3132
export default function DatasetCard(props: DatasetCardProps) {
@@ -39,6 +40,7 @@ export default function DatasetCard(props: DatasetCardProps) {
3940
publicView,
4041
frozen,
4142
frozenVersionNum,
43+
status,
4244
} = props;
4345

4446
const [thumbnailUrl, setThumbnailUrl] = useState("");
@@ -130,6 +132,7 @@ export default function DatasetCard(props: DatasetCardProps) {
130132
<Download />
131133
</IconButton>
132134
</Tooltip>
135+
<Typography>{status}</Typography>
133136
{/*<Tooltip title="Favorite">*/}
134137
{/* <IconButton color="primary" aria-label="favorite" sx={{mr: 3}} disabled>*/}
135138
{/* <Favorite/>*/}

frontend/src/components/datasets/PublicDatasetCard.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,20 @@ type PublicDatasetCardProps = {
2727
publicView?: boolean | false;
2828
frozen?: boolean | false;
2929
frozenVersionNum?: number;
30+
status?: string;
3031
};
3132

3233
export default function PublicDatasetCard(props: PublicDatasetCardProps) {
33-
const { id, name, author, created, description, thumbnailId, publicView } =
34-
props;
34+
const {
35+
id,
36+
name,
37+
author,
38+
created,
39+
description,
40+
thumbnailId,
41+
publicView,
42+
status,
43+
} = props;
3544

3645
const [thumbnailUrl, setThumbnailUrl] = useState("");
3746

@@ -122,6 +131,7 @@ export default function PublicDatasetCard(props: PublicDatasetCardProps) {
122131
<Download />
123132
</IconButton>
124133
</Tooltip>
134+
<Typography>{status}</Typography>
125135
{/*<Tooltip title="Favorite">*/}
126136
{/* <IconButton color="primary" aria-label="favorite" sx={{mr: 3}} disabled>*/}
127137
{/* <Favorite/>*/}

0 commit comments

Comments
 (0)