diff --git a/apps/portal/src/components/offers/EducationFields.ts b/apps/portal/src/components/offers/EducationFields.ts index 6818b9ab..1dc93e38 100644 --- a/apps/portal/src/components/offers/EducationFields.ts +++ b/apps/portal/src/components/offers/EducationFields.ts @@ -1,16 +1,63 @@ import { emptyOption } from './constants'; -export const EducationFieldLabels = [ - 'Business Analytics', - 'Computer Science', - 'Data Science and Analytics', - 'Information Security', - 'Information Systems', -]; +const EducationFieldLabels = { + 'aerospace-engineering': 'Aerospace Engineering', + 'applied-mathematics': 'Applied Mathematics', + biology: 'Biology', + 'biomedical-engineering': 'Biomedical Engineering', + 'business-analytics': 'Business Analytics', + 'chemical-engineering': 'Chemical Engineering', + chemistry: 'Chemistry', + 'civil-engineering': 'Civil Engineering', + 'computational-biology': 'Computational Biology', + 'computer-engineering': 'Computer Engineering', + 'computer-science': 'Computer Science', + 'computer-science-engineering': 'Computer Science and Engineering', + 'computer-science-molecular-biology': + 'Computer Science and Molecular Biology', + 'data-science': 'Data Science', + 'data-science-analytics': 'Data Science and Analytics', + 'electrical-engineering': 'Electrical Engineering', + 'electrical-engineering-computer-science': + 'Electrical Engineering and Computer Science (EECS)', + 'electrical-science-and-engineering': 'Electrical Science and Engineering', + 'engineering-mathematics-statistics': + 'Engineering Mathematics and Statistics', + 'engineering-physics': 'Engineering Physics', + 'engineering-science': 'Engineering Science', + 'environmental-engineering': 'Environmental Engineering', + 'environmental-science': 'Environmental Science', + 'industrial-engineering-operations-research': + 'Industrial Engineering and Operations Research', + 'industrial-systems-engineering': 'Industrial Systems Engineering', + 'information-security': 'Information Security', + 'information-systems': 'Information Systems', + 'management-science-and-engineering': + 'Management Science and Engineering (MS&E)', + 'materials-science': 'Materials Science', + mathematics: 'Mathematics', + 'mechanical-engineering': 'Mechanical Engineering', + 'nuclear-engineering': 'Nuclear Engineering', + 'operations-research': 'Operations Research', + physics: 'Physics', + 'software-engineering': 'Software Engineering', + 'systems-engineering': 'Systems Engineering', + 'web-development': 'Web Development', +}; + +export type EducationType = keyof typeof EducationFieldLabels; + +export function getLabelForEducationFieldType( + educationType: EducationType, +): string { + return EducationFieldLabels[educationType]; +} + +export type EducationFieldType = keyof typeof EducationFieldLabels; export const EducationFieldOptions = [emptyOption].concat( - EducationFieldLabels.map((label) => ({ + Object.entries(EducationFieldLabels).map(([value, label]) => ({ label, - value: label.replace(/\s+/g, '-').toLowerCase(), + value, })), ); diff --git a/apps/portal/src/components/offers/EducationLevels.ts b/apps/portal/src/components/offers/EducationLevels.ts index 176b2519..5c7e9aa9 100644 --- a/apps/portal/src/components/offers/EducationLevels.ts +++ b/apps/portal/src/components/offers/EducationLevels.ts @@ -8,6 +8,7 @@ export const EducationLevelLabels = [ 'Professional', 'Secondary', 'Self-taught', + 'Bootcamp', ]; export const EducationLevelOptions = [emptyOption].concat( diff --git a/apps/portal/src/utils/questions/constants.ts b/apps/portal/src/utils/questions/constants.ts index bada8a57..f09dd6f1 100644 --- a/apps/portal/src/utils/questions/constants.ts +++ b/apps/portal/src/utils/questions/constants.ts @@ -28,7 +28,7 @@ export const QUESTION_TYPES: FilterChoices = [ }, { id: 'SYSTEM_DESIGN', - label: 'Design', + label: 'System Design', value: 'SYSTEM_DESIGN', }, {