Skip to content

Commit b0d377f

Browse files
LiviaValentiDanielk131mateos03
authored
feat: add pre-acceptance and pre-rejection status (#161)
* feat: add pre-acceptance and pre-rejection status * feat: add uncertain status * fix: main board required when not present (#167) * Added Bumerang group to the fixture json file * Update committees.json (#172) * Update committees.json (#173) * Update committees.json * chore: change admission period end to 2030 --------- Co-authored-by: Danielk131 <89570342+Danielk131@users.noreply.github.com> Co-authored-by: Mateo Souto <mateo.souto@outlook.com> Co-authored-by: Mateo Souto <142794202+mateos03@users.noreply.github.com>
1 parent a3e0459 commit b0d377f

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"start_date": "2022-02-25",
4-
"end_date": "2022-03-31"
3+
"start_date": "2025-08-12",
4+
"end_date": "2030-09-03"
55
}
66
]

backend/utils/enums.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ enum StatusTypes {
2020
INVITED_TO_INTERVIEW = 'Invited to interview',
2121
INTERVIEW_DECLINED = 'Interview declined',
2222
INTERVIEW_COMPLETED = 'Interview completed',
23+
UNCERTAIN = 'Uncertain',
24+
PLANNED_ACCEPTANCE = 'Planned acceptance',
25+
PLANNED_REJECTION = 'Planned rejection',
2326
OFFER_GIVEN = 'Offer given',
2427
OFFER_DECLINED = 'Offer declined',
2528
ACCEPTED = 'Accepted',

frontend/src/components/StatusInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ function isYellow(value: StatusTypes): boolean {
5959
return (
6060
value === StatusTypes.PLANNED_INTERVIEW ||
6161
value === StatusTypes.INVITED_TO_INTERVIEW ||
62+
value === StatusTypes.UNCERTAIN ||
63+
value === StatusTypes.PLANNED_ACCEPTANCE ||
6264
value === StatusTypes.OFFER_GIVEN ||
6365
value === StatusTypes.INTERVIEW_COMPLETED
6466
)

frontend/src/utils/enums.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ enum StatusTypes {
1010
INVITED_TO_INTERVIEW = 'Invited to interview',
1111
INTERVIEW_DECLINED = 'Interview declined',
1212
INTERVIEW_COMPLETED = 'Interview completed',
13+
UNCERTAIN = 'Uncertain',
14+
PLANNED_ACCEPTANCE = 'Planned acceptance',
15+
PLANNED_REJECTION = 'Planned rejection',
1316
OFFER_GIVEN = 'Offer given',
1417
OFFER_DECLINED = 'Offer declined',
1518
ACCEPTED = 'Accepted',

frontend/src/utils/status.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ import { StatusTypes } from './enums'
33
import {
44
Check,
55
ClipboardText,
6+
Clock,
67
File,
78
PhoneCheck,
89
PhoneIncoming,
910
PhoneOff,
11+
PhonePause,
1012
QuestionMark,
1113
UserOff,
1214
UserPlus,
@@ -25,6 +27,12 @@ export function getStatusTranslation(status: StatusTypes) {
2527
return 'Intervju avslått'
2628
case StatusTypes.INTERVIEW_COMPLETED:
2729
return 'Intervju fullført'
30+
case StatusTypes.UNCERTAIN:
31+
return 'Under vurdering'
32+
case StatusTypes.PLANNED_ACCEPTANCE:
33+
return 'Planlagt tilbud'
34+
case StatusTypes.PLANNED_REJECTION:
35+
return 'Planlagt avslag'
2836
case StatusTypes.OFFER_GIVEN:
2937
return 'Tilbud gitt'
3038
case StatusTypes.OFFER_DECLINED:
@@ -50,6 +58,12 @@ export function getStatus(status: string) {
5058
return StatusTypes.INTERVIEW_DECLINED
5159
case 'Interview completed':
5260
return StatusTypes.INTERVIEW_COMPLETED
61+
case 'Uncertain':
62+
return StatusTypes.UNCERTAIN
63+
case 'Planned acceptance':
64+
return StatusTypes.PLANNED_ACCEPTANCE
65+
case 'Planned rejection':
66+
return StatusTypes.PLANNED_REJECTION
5367
case 'Offer given':
5468
return StatusTypes.OFFER_GIVEN
5569
case 'Offer declined':
@@ -75,6 +89,12 @@ export function getStatusColor(status: StatusTypes, theme: MantineTheme) {
7589
return theme.colors.ntnui_red[9]
7690
case StatusTypes.INTERVIEW_COMPLETED:
7791
return theme.colors.ntnui_yellow[9]
92+
case StatusTypes.UNCERTAIN:
93+
return theme.colors.ntnui_yellow[9]
94+
case StatusTypes.PLANNED_ACCEPTANCE:
95+
return theme.colors.ntnui_yellow[9]
96+
case StatusTypes.PLANNED_REJECTION:
97+
return theme.colors.ntnui_red[9]
7898
case StatusTypes.OFFER_GIVEN:
7999
return theme.colors.ntnui_yellow[9]
80100
case StatusTypes.OFFER_DECLINED:
@@ -100,6 +120,12 @@ export function getIconForStatus(status: string) {
100120
return <PhoneOff size={20} />
101121
case StatusTypes.INTERVIEW_COMPLETED:
102122
return <PhoneCheck size={20} />
123+
case StatusTypes.UNCERTAIN:
124+
return <Clock size={20} />
125+
case StatusTypes.PLANNED_ACCEPTANCE:
126+
return <PhonePause size={20} />
127+
case StatusTypes.PLANNED_REJECTION:
128+
return <PhonePause size={20} />
103129
case StatusTypes.OFFER_GIVEN:
104130
return <UserPlus size={20} />
105131
case StatusTypes.OFFER_DECLINED:

0 commit comments

Comments
 (0)