Skip to content

Commit bd222a4

Browse files
Applicant View Cleanup (#215)
* fixed the frontend boxes * merge fix --------- Co-authored-by: Ryaken Nakamoto <108379394+Ryaken-Nakamoto@users.noreply.github.com> Co-authored-by: ryaken-nakamoto <ryakenNakamoto@gmail.com>
1 parent 5448ba1 commit bd222a4

File tree

6 files changed

+336
-119
lines changed

6 files changed

+336
-119
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"personalUser": {
3-
"firstName": "Ryaken",
4-
"lastName": "Nakamoto",
5-
"email": "nakamoto.r@husky.neu.edu",
3+
"firstName": "Daniel",
4+
"lastName": "Huang",
5+
"email": "huang.danie@husky.neu.edu",
66
"status": "Admin"
77
}
88
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import { Box, Typography, Stack } from '@mui/material';
2+
import { Application } from '@sharedTypes/types/application.types';
3+
4+
interface ApplicationDetailsCardProps {
5+
application: Application;
6+
}
7+
8+
export const ApplicationDetailsCard = ({
9+
application,
10+
}: ApplicationDetailsCardProps) => {
11+
return (
12+
<Box sx={{ mt: 3 }}>
13+
<Typography variant="h6" sx={{ mb: 2 }}>
14+
Application Details
15+
</Typography>
16+
<Box
17+
sx={{
18+
padding: 3,
19+
backgroundColor: '#1e1e1e',
20+
borderRadius: 2,
21+
boxShadow: 2,
22+
}}
23+
>
24+
<Stack spacing={1.5}>
25+
<Box>
26+
<Typography variant="caption" sx={{ color: '#999' }}>
27+
Year
28+
</Typography>
29+
<Typography variant="body1">{application.year}</Typography>
30+
</Box>
31+
<Box>
32+
<Typography variant="caption" sx={{ color: '#999' }}>
33+
Semester
34+
</Typography>
35+
<Typography variant="body1">{application.semester}</Typography>
36+
</Box>
37+
<Box>
38+
<Typography variant="caption" sx={{ color: '#999' }}>
39+
Position
40+
</Typography>
41+
<Typography variant="body1">{application.position}</Typography>
42+
</Box>
43+
<Box>
44+
<Typography variant="caption" sx={{ color: '#999' }}>
45+
Stage
46+
</Typography>
47+
<Typography variant="body1">{application.stage}</Typography>
48+
</Box>
49+
<Box>
50+
<Typography variant="caption" sx={{ color: '#999' }}>
51+
Status
52+
</Typography>
53+
<Typography variant="body1">{application.stageProgress}</Typography>
54+
</Box>
55+
<Box>
56+
<Typography variant="caption" sx={{ color: '#999' }}>
57+
Applications
58+
</Typography>
59+
<Typography variant="body1">{application.numApps}</Typography>
60+
</Box>
61+
</Stack>
62+
</Box>
63+
</Box>
64+
);
65+
};
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import {
2+
Typography,
3+
List,
4+
ListItem,
5+
ListItemIcon,
6+
ListItemText,
7+
Box,
8+
} from '@mui/material';
9+
import { DoneOutline } from '@mui/icons-material';
10+
import { Response } from '@sharedTypes/types/application.types';
11+
12+
interface ApplicationResponsesListProps {
13+
responses: Response[];
14+
}
15+
16+
export const ApplicationResponsesList = ({
17+
responses,
18+
}: ApplicationResponsesListProps) => {
19+
if (!responses || responses.length === 0) {
20+
return null;
21+
}
22+
23+
return (
24+
<Box sx={{ mt: 3 }}>
25+
<Typography variant="h6" sx={{ mb: 2 }}>
26+
Application Responses
27+
</Typography>
28+
<List disablePadding dense>
29+
{responses.map((response, index) => (
30+
<ListItem
31+
key={index}
32+
sx={{
33+
alignItems: 'flex-start',
34+
backgroundColor: '#1e1e1e',
35+
borderRadius: 1,
36+
mb: 1,
37+
padding: 2,
38+
}}
39+
>
40+
<ListItemIcon sx={{ minWidth: 'auto', mr: 2, mt: 0.5 }}>
41+
<DoneOutline sx={{ color: '#4CAF50' }} />
42+
</ListItemIcon>
43+
<ListItemText
44+
primary={
45+
<Typography variant="body2" sx={{ color: '#999', mb: 0.5 }}>
46+
{response.question}
47+
</Typography>
48+
}
49+
secondary={
50+
<Typography variant="body1" sx={{ color: 'white' }}>
51+
{response.answer}
52+
</Typography>
53+
}
54+
sx={{ m: 0 }}
55+
/>
56+
</ListItem>
57+
))}
58+
</List>
59+
</Box>
60+
);
61+
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { Box, Typography } from '@mui/material';
2+
3+
interface RecruitmentStageCardProps {
4+
stage: string;
5+
}
6+
7+
export const RecruitmentStageCard = ({ stage }: RecruitmentStageCardProps) => {
8+
return (
9+
<Box
10+
sx={{
11+
padding: 3,
12+
backgroundColor: '#1e1e1e',
13+
borderRadius: 2,
14+
boxShadow: 2,
15+
textAlign: 'center',
16+
mb: 3,
17+
}}
18+
>
19+
<Typography variant="h6" sx={{ mb: 1 }}>
20+
Recruitment Stage
21+
</Typography>
22+
<Typography variant="body1" sx={{ color: '#90caf9' }}>
23+
{stage}
24+
</Typography>
25+
</Box>
26+
);
27+
};

0 commit comments

Comments
 (0)