Skip to content

Commit

Permalink
Update applicantion table
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneIRL committed Sep 5, 2023
1 parent 1389ee0 commit 082409f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src/app/apply/ApplicationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export function ApplicationForm() {
gap="1.25rem"
className={styles.applicationForm}
>
<h2 className='font-heading text-4xl'>Application</h2>
<h3 className='font-heading text-2xl'>General Information</h3>
<h2 className="font-heading text-4xl">Application</h2>
<h3 className="font-heading text-2xl">General Information</h3>
<TextInput
id="firstName"
text="First Name"
Expand Down Expand Up @@ -167,11 +167,11 @@ export function ApplicationForm() {
isMulti
/>

<h3 className='font-heading text-2xl'>Optional Information</h3>
<h3 className="font-heading text-2xl">Optional Information</h3>
<Dropdown
id="underrepresentedGroup"
text="Do you identify as part of an underrepresented group in the technology industry?"
description='(Optional)'
description="(Optional)"
errors={errors['underrepresentedGroup']}
selectProps={{ form: 'applicationForm' }}
options={zodEnumToOptions(TernarySchema)}
Expand Down Expand Up @@ -222,7 +222,7 @@ export function ApplicationForm() {
<Dropdown
id="highestLevelOfEducation"
text="What is the highest level of formal education that you have completed?"
description='(Optional)'
description="(Optional)"
errors={errors['highestLevelOfEducation']}
selectProps={{ form: 'applicationForm' }}
options={zodEnumToOptions(LevelOfStudySchema)}
Expand All @@ -245,14 +245,26 @@ export function ApplicationForm() {
description="(Optional) Only PDFs less than 1 MB are allowed. The resume may be shared with our sponsors and partners."
accept="application/pdf"
/>
<TextInput
id="monthsCoding"
text="How many months have you been coding?"
description="(Optional) Input an integer."
errors={errors['monthsCoding']}
/>
<TextInput
id="hackathonsAttended"
text="How many hackathons have you attended?"
description="(Optional) Input an integer."
errors={errors['hackathonsAttended']}
/>
<TextInput
id="catchall"
text="Any additional information you'd like us to know?"
description='(Optional)'
description="(Optional)"
errors={errors['catchall']}
/>

<h3 className='font-heading text-2xl'>MLH Checkboxes</h3>
<h3 className="font-heading text-2xl">MLH Checkboxes</h3>
<Dropdown
id="agreedMlhCoC"
text={
Expand Down
2 changes: 2 additions & 0 deletions src/lib/db/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ export const ApplicationSchema = z.object({
highestLevelOfEducation: LevelOfStudySchema.optional(),
fieldOfStudy: KnownMajorSchema.or(z.string().nonempty()).array().optional(),
resume: z.string().describe('base64-encoded resume document').optional(),
monthsCoding: z.number().int().optional(),
hackathonsAttended: z.number().int().optional(),
catchall: z.string().optional(),

// MLH checkboxes.
Expand Down

0 comments on commit 082409f

Please sign in to comment.