Skip to content
4 changes: 2 additions & 2 deletions backend/fixtures/development/admissionperiod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"start_date": "2022-02-25",
"end_date": "2022-03-31"
"start_date": "2025-08-12",
"end_date": "2030-09-03"
}
]
3 changes: 3 additions & 0 deletions backend/utils/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ enum StatusTypes {
INVITED_TO_INTERVIEW = 'Invited to interview',
INTERVIEW_DECLINED = 'Interview declined',
INTERVIEW_COMPLETED = 'Interview completed',
UNCERTAIN = 'Uncertain',
PLANNED_ACCEPTANCE = 'Planned acceptance',
PLANNED_REJECTION = 'Planned rejection',
OFFER_GIVEN = 'Offer given',
OFFER_DECLINED = 'Offer declined',
ACCEPTED = 'Accepted',
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/StatusInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ function isYellow(value: StatusTypes): boolean {
return (
value === StatusTypes.PLANNED_INTERVIEW ||
value === StatusTypes.INVITED_TO_INTERVIEW ||
value === StatusTypes.UNCERTAIN ||
value === StatusTypes.PLANNED_ACCEPTANCE ||
value === StatusTypes.OFFER_GIVEN ||
value === StatusTypes.INTERVIEW_COMPLETED
)
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/utils/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ enum StatusTypes {
INVITED_TO_INTERVIEW = 'Invited to interview',
INTERVIEW_DECLINED = 'Interview declined',
INTERVIEW_COMPLETED = 'Interview completed',
UNCERTAIN = 'Uncertain',
PLANNED_ACCEPTANCE = 'Planned acceptance',
PLANNED_REJECTION = 'Planned rejection',
OFFER_GIVEN = 'Offer given',
OFFER_DECLINED = 'Offer declined',
ACCEPTED = 'Accepted',
Expand Down
26 changes: 26 additions & 0 deletions frontend/src/utils/status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { StatusTypes } from './enums'
import {
Check,
ClipboardText,
Clock,
File,
PhoneCheck,
PhoneIncoming,
PhoneOff,
PhonePause,
QuestionMark,
UserOff,
UserPlus,
Expand All @@ -25,6 +27,12 @@ export function getStatusTranslation(status: StatusTypes) {
return 'Intervju avslått'
case StatusTypes.INTERVIEW_COMPLETED:
return 'Intervju fullført'
case StatusTypes.UNCERTAIN:
return 'Under vurdering'
case StatusTypes.PLANNED_ACCEPTANCE:
return 'Planlagt tilbud'
case StatusTypes.PLANNED_REJECTION:
return 'Planlagt avslag'
case StatusTypes.OFFER_GIVEN:
return 'Tilbud gitt'
case StatusTypes.OFFER_DECLINED:
Expand All @@ -50,6 +58,12 @@ export function getStatus(status: string) {
return StatusTypes.INTERVIEW_DECLINED
case 'Interview completed':
return StatusTypes.INTERVIEW_COMPLETED
case 'Uncertain':
return StatusTypes.UNCERTAIN
case 'Planned acceptance':
return StatusTypes.PLANNED_ACCEPTANCE
case 'Planned rejection':
return StatusTypes.PLANNED_REJECTION
case 'Offer given':
return StatusTypes.OFFER_GIVEN
case 'Offer declined':
Expand All @@ -75,6 +89,12 @@ export function getStatusColor(status: StatusTypes, theme: MantineTheme) {
return theme.colors.ntnui_red[9]
case StatusTypes.INTERVIEW_COMPLETED:
return theme.colors.ntnui_yellow[9]
case StatusTypes.UNCERTAIN:
return theme.colors.ntnui_yellow[9]
case StatusTypes.PLANNED_ACCEPTANCE:
return theme.colors.ntnui_yellow[9]
case StatusTypes.PLANNED_REJECTION:
return theme.colors.ntnui_red[9]
case StatusTypes.OFFER_GIVEN:
return theme.colors.ntnui_yellow[9]
case StatusTypes.OFFER_DECLINED:
Expand All @@ -100,6 +120,12 @@ export function getIconForStatus(status: string) {
return <PhoneOff size={20} />
case StatusTypes.INTERVIEW_COMPLETED:
return <PhoneCheck size={20} />
case StatusTypes.UNCERTAIN:
return <Clock size={20} />
case StatusTypes.PLANNED_ACCEPTANCE:
return <PhonePause size={20} />
case StatusTypes.PLANNED_REJECTION:
return <PhonePause size={20} />
case StatusTypes.OFFER_GIVEN:
return <UserPlus size={20} />
case StatusTypes.OFFER_DECLINED:
Expand Down
Loading