Skip to content

Commit c86f9a4

Browse files
committedAug 29, 2024
Merge branch 'dashboard-release' of https://github.com/blockydevs/human-protocol into dashboard-release

File tree

4 files changed

+35
-15
lines changed

4 files changed

+35
-15
lines changed
 

‎packages/apps/dashboard/ui-2024/src/components/Breadcrumbs/Breadcrumbs.tsx

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
import { FC } from 'react';
2-
import Link from '@mui/material/Link';
32
import Typography from '@mui/material/Typography';
43
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
4+
import { useNavigate } from 'react-router-dom';
55

66
const Breadcrumbs: FC<{ title?: string }> = ({ title }) => {
7+
const navigate = useNavigate();
78
return (
89
<div className="breadcrumbs">
9-
<Link href="/" underline="none">
10-
<Typography component="span" fontSize={16} color="text.secondary">
11-
Dashboard
12-
</Typography>
13-
</Link>
10+
<Typography
11+
onClick={() => {
12+
navigate('/');
13+
}}
14+
component="span"
15+
fontSize={16}
16+
sx={{ textDecoration: 'unset', cursor: 'pointer' }}
17+
color="text.secondary"
18+
>
19+
Dashboard
20+
</Typography>
1421
<KeyboardArrowRightIcon color="primary" />
1522
<Typography component="span" fontSize={16} color="primary">
1623
{title}

‎packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetails.tsx

+8-4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ const RenderRoleDetailsInfo = ({
7373
'It validates solutions, provides job updates, and handles cancellations, streamlining the job lifecycle.',
7474
],
7575
},
76+
[Roles.jobLauncher]: {
77+
title: 'Job Launcher',
78+
points: [],
79+
},
7680
};
7781

7882
const details = roleDetailsInfo[role];
@@ -89,29 +93,29 @@ const renderReputationTitle = (reputation: Reputation) => {
8993
Reputation,
9094
{ title: string; colors: { title: string; border: string } }
9195
> = {
92-
HIGH: {
96+
High: {
9397
title: 'High',
9498
colors: {
9599
title: colorPalette.success.main,
96100
border: colorPalette.success.light,
97101
},
98102
},
99-
MEDIUM: {
103+
Medium: {
100104
title: 'Medium',
101105
colors: {
102106
title: colorPalette.warning.main,
103107
border: colorPalette.warning.light,
104108
},
105109
},
106110

107-
LOW: {
111+
Low: {
108112
title: 'Low',
109113
colors: {
110114
title: colorPalette.orange.main,
111115
border: colorPalette.orange.light,
112116
},
113117
},
114-
UNKNOWN: {
118+
Unknown: {
115119
title: 'Coming soon',
116120
colors: {
117121
title: colorPalette.ocean.main,

‎packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBody.tsx

+12-3
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,26 @@ export const EscrowsTableBody = ({
7474
}}
7575
>
7676
<Stack
77-
component="a"
7877
sx={{
7978
':hover': {
8079
cursor: 'pointer',
8180
},
8281
}}
83-
onClick={() => {
82+
onClick={(e) => {
83+
e.stopPropagation();
84+
e.preventDefault();
8485
navigate(`/search/${filterParams.chainId}/${elem.address}`);
8586
}}
8687
>
87-
{elem.address}
88+
<a
89+
target="_blank"
90+
href={`/search/${filterParams.chainId}/${elem.address}`}
91+
style={{
92+
textDecoration: 'unset',
93+
}}
94+
>
95+
{elem.address}
96+
</a>
8897
</Stack>
8998
</TableCell>
9099
</TableRowWithCustomContextMenu>

‎packages/apps/dashboard/ui-2024/src/services/api/use-leaderboard-details.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import { useLeaderboardSearch } from '@utils/hooks/use-leaderboard-search';
88
export const reputationSchema = z.unknown().transform((value) => {
99
try {
1010
const knownReputation = z
11-
.union([z.literal('LOW'), z.literal('MEDIUM'), z.literal('HIGH')])
11+
.union([z.literal('Low'), z.literal('Medium'), z.literal('High')])
1212
.parse(value);
1313

1414
return knownReputation;
1515
} catch (error) {
16-
return 'UNKNOWN';
16+
return 'Unknown';
1717
}
1818
});
1919

0 commit comments

Comments
 (0)
Please sign in to comment.