Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 25 additions & 56 deletions common/questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import React, { ReactNode } from 'react';
import {
Checkboxes,
Dropdown,
Education,
Gender,
InterestLevel,
FileUpload,
Expand Down Expand Up @@ -38,7 +37,7 @@ let questionCount = 0;
const checkboxMinSelectedCount = 0;
const shortTextMinLength = 0;
const shortTextMaxLength = 500;
const longTextMinLength = 0;
const longTextMinLength = 1;
const longTextMaxLength = 3000;

// convenience constructors for questions (constructors in java)
Expand Down Expand Up @@ -263,13 +262,6 @@ export const Sections: Array<QuestionSection | QuestionDefinition> = [
'If your school was not listed in the previous question, list it here! (Please input full name of university)',
false
),
makeDropdown(
'education',
'What level of education are you currently pursuing?',
Object.values(Education),
true,
'Level'
),
makeDropdown(
'yearOfEducation',
'What year in your current education are you?',
Expand Down Expand Up @@ -316,8 +308,17 @@ export const Sections: Array<QuestionSection | QuestionDefinition> = [
makeDropdown(
'shirtSize',
<div>
What is your t-shirt size? (Note: All sizes are unisex, and measurements are across the widest
part of the chest!){' '}
What is your t-shirt size? (Note: All sizes are unisex, and{' '}
<a
href="https://www.bellacanvas.com/product/3001/Unisex-Jersey-Short-Sleeve-Tee.html#pills-size"
target="_blank"
style={{
textDecoration: 'underline',
}}
>
measurements
</a>{' '}
are across the widest part of the chest!){' '}
</div>,
Object.values(ShirtSize),
true,
Expand Down Expand Up @@ -417,36 +418,6 @@ export const Sections: Array<QuestionSection | QuestionDefinition> = [
`Have you attended HackBeanpot previously? If you've attended a hackathon previously, what did you like or dislike about it? If this is your first hackathon, what would you like to see at HackBeanpot? `,
true
),
makeSection(
<>Team Formation</>,
<i>
*Note: This question does not get factored into how your application is read! This question is
for us to plan ahead for team formation; applicants are accepted on an individual basis, and
it is not guaranteed that everyone in a premade team will be accepted.
</i>
),
makeDropdown(
'interestedInTeamFormation',
<p>
Do you plan on attending HackBeanpot with a premade team? If yes,
<b>
{' '}
please list the first and last name and email of your team captain (captain is just for
application purpose!).{' '}
</b>
Please note, team formations will not be finalized until the day of the event! Also, there is
a limit of 5 members per team.
<br />
<i>
If you don&apos;t have a team or would like to add more members to your team, we will have a
team formation activity during the hackathon and a Discord channel that will open in
advance!
</i>
</p>,
[YesOrNo.Yes, YesOrNo.No],
true
),

makeSection(<>Outreach</>),
makeCheckbox(
'referrers',
Expand Down Expand Up @@ -482,12 +453,7 @@ export const Sections: Array<QuestionSection | QuestionDefinition> = [
),

makeDropdown('NewFriends', CabinGroupings.NewFriends, Object.values(InterestLevel), true),
makeDropdown(
'workshopTopics',
CabinGroupings.NetworkingOpportunities,
Object.values(InterestLevel),
true
),

makeDropdown(
'TechnicalWorkshops',
CabinGroupings.TechnicalWorkshops,
Expand Down Expand Up @@ -528,7 +494,7 @@ export const Sections: Array<QuestionSection | QuestionDefinition> = [
false
),
makeSection(<>Code of Conduct and Policy</>),
makeDropdown(
makeCheckbox(
'mlhCodeOfConduct',
<p>
I have read and agree to the{' '}
Expand All @@ -541,10 +507,11 @@ export const Sections: Array<QuestionSection | QuestionDefinition> = [
MLH Code of Conduct
</a>
</p>,
[YesOrNo.Yes, YesOrNo.No],
true
[YesOrNo.Yes],
true,
1
),
makeDropdown(
makeCheckbox(
'mlhApplicationSharingAuthorization',
<p>
I authorize you to share my application/registration information with Major League Hacking for
Expand Down Expand Up @@ -576,14 +543,16 @@ export const Sections: Array<QuestionSection | QuestionDefinition> = [
MLH Privacy Policy
</a>
</p>,
[YesOrNo.Yes, YesOrNo.No],
true
[YesOrNo.Yes],
true,
1
),
makeDropdown(
makeCheckbox(
'mlhMarketingAuthorization',
'I authorize MLH to send me occasional emails about relevant events, career opportunities, and community announcements.',
Object.values(YesOrNo),
false
[YesOrNo.Yes],
true,
1
),
];

Expand Down
8 changes: 0 additions & 8 deletions common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ export enum Gender {
PreferNotToSay = 'Prefer not to say',
}

export enum Education {
Undergraduate = 'Undergraduate',
Graduate = 'Graduate',
}

export enum YearOfEducation {
first = '1st year',
second = '2nd year',
Expand Down Expand Up @@ -348,7 +343,6 @@ const GenderSchema = z.nativeEnum(Gender);
const LgbtqSchema = z.nativeEnum(Lgbtq);
const SchoolSchema = z.nativeEnum(School);
const RaceSchema = z.nativeEnum(Race);
const EducationSchema = z.nativeEnum(Education);
const YearOfEducationSchema = z.nativeEnum(YearOfEducation);
const ShirtSizeSchema = z.nativeEnum(ShirtSize);
const NumberOfSchema = z.nativeEnum(NumberOf);
Expand All @@ -375,7 +369,6 @@ export const applicationResponsesSchema = SharedResponsesSchema.extend({
unlistedRace: z.string().optional(),
school: SchoolSchema.optional(),
unlistedSchool: z.string().optional(),
education: EducationSchema.optional(),
yearOfEducation: YearOfEducationSchema.optional(),
majors: z.string().optional(),
minors: z.string().optional(),
Expand All @@ -391,7 +384,6 @@ export const applicationResponsesSchema = SharedResponsesSchema.extend({
hackBeanGoals: z.string().optional(),
tedTalkTopic: z.string().optional(),
prevHackathonFeedback: z.string().optional(),
interestedInTeamFormation: YesOrNoSchema.optional(),
referrers: z.array(ReferrerSchema).optional(),
unListedReferrer: z.string().optional(),
NewFriends: InterestLevelSchema.optional(),
Expand Down
Loading