Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
Open
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
13 changes: 13 additions & 0 deletions api/database/migrations/20211120040312-add-in-person.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"use strict";

module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn("HackerProfiles", "inPerson", {
type: Sequelize.STRING,
});
},

down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn("HackerProfiles", "inPerson");
},
};
1 change: 1 addition & 0 deletions api/hackerProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ router.put("/", async (req, res) => {
"skillLevel",
"graduationDate",
"over18",
"inPerson",
"needBus",
"links",
"questionOne",
Expand Down
1 change: 1 addition & 0 deletions api/models/hackerProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ module.exports = (sequelize, DataTypes) => {
],
},
over18: DataTypes.BOOLEAN,
inPerson: DataTypes.BOOLEAN,
needBus: DataTypes.BOOLEAN,
links: DataTypes.STRING(1000),
codeOfConduct: DataTypes.BOOLEAN,
Expand Down
17 changes: 17 additions & 0 deletions components/steps/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,23 @@ const ProfileStep: React.FunctionComponent<Props> = (props) => {
</RadioChoice>
</FormGroup>*/}

<FormGroup>
<label>Will you be attending HackSC in person at USC?</label>

<RadioChoice>
<input
type="checkbox"
name="attending-in-person"
defaultChecked={profile.inPerson}
id="attending-in-person"
disabled={submitted}
/>
<RadioChoiceLabel htmlFor="attending-in-person">
Yes, I will be attending in person
</RadioChoiceLabel>
</RadioChoice>
</FormGroup>

<FormGroup>
<label>Resume - Must be a PDF, 10MB Maximum</label>

Expand Down
1 change: 1 addition & 0 deletions lib/formSubmission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function getProfileFromFormData(
gender: formRef.current["gender"].value,
ethnicity: formRef.current["ethnicity"].value,
over18: formRef.current["is-over-18"].checked,
inPerson: formRef.current["attending-in-person"].checked,
needBus: formRef.current["need-bus"]
? formRef.current["need-bus"].checked
: false,
Expand Down
1 change: 1 addition & 0 deletions odyssey.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ declare type Profile = {
| "fall-2023"
| "other";
over18: boolean;
inPerson: boolean;
needBus: boolean;
links: string;
codeOfConduct: boolean;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"react-use": "^13.8.1",
"scrapedin": "^1.0.21",
"sequelize": "^5.21.1",
"sequelize-cli": "^6.3.0",
"serverless-mysql": "^1.5.4",
"simplex-noise": "^2.4.0",
"start-server-and-test": "^1.10.6",
Expand Down
Loading