Skip to content

Commit

Permalink
Merge pull request #234 from nwplus/cmd-f_evaluator
Browse files Browse the repository at this point in the history
Cmd f evaluator
  • Loading branch information
meleongg authored Feb 26, 2024
2 parents bd88399 + fc4a82e commit 7f4312c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
9 changes: 3 additions & 6 deletions components/Evaluator/ApplicantResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,16 @@ export default function ApplicantResponse({ shouldDisplay, hacker }) {

{/* <ResponseInput url={waiverURL} label="Waiver" response={waiverURL} /> */}

<ResponseInput
label="In your own words, describe your definition of a hackathon, and what it means to you."
response={`${hacker?.skills?.longAnswers1}`}
/>
<ResponseInput label="Why do you want to attend cmd-f 2024?" response={`${hacker?.skills?.longAnswers1}`} />

<ResponseInput
label="Describe a project that you worked on and a useful skill that you learned from it?"
label="How would you make tech a more welcoming space for underrepresented demographics?"
response={`${hacker?.skills?.longAnswers2}`}
/>

{hacker?.skills?.longAnswers3 && (
<ResponseInput
label="What character (from a movie, show, book, etc.) do you relate to most and why?"
label="Tell us about a project you're really proud of and what you learned from it."
response={`${hacker?.skills?.longAnswers3}`}
/>
)}
Expand Down
1 change: 1 addition & 0 deletions components/Evaluator/Scoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export default function Scoring({ shouldDisplay, applicant }) {
handleClick={handleClick}
score={scores?.ResponseThreeScore}
maxScore={SCORING.ESSAY3}
hasMinusOne
/>
)}
{/* {!applicant?.skills?.hackathonsAttended && (
Expand Down
4 changes: 2 additions & 2 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const SCORING = {
},
ESSAY3: {
label: 'Long Answer 3',
value: 1,
value: 3,
weight: 1,
},
}
Expand All @@ -168,7 +168,7 @@ export const BONUS_SCORING = {
}

// export const MAX_SCORE = Object.values(SCORING).reduce((acc, curr) => acc + curr.value * curr.weight, 0)
export const MAX_SCORE = 13 // hardcoded for nwHacks 2024
export const MAX_SCORE = 15 // hardcoded for cmd-f 2024

export const SORT = {
TIMESTAMP: 'Timestamp',
Expand Down
12 changes: 10 additions & 2 deletions utility/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Hackathons = 'Hackathons'
const InternalWebsitesCollection = 'InternalWebsites'
const CMSCollection = 'CMS'
const LivesiteCollection = 'Livesite'
const HackerEvaluationHackathon = 'nwHacks2024'
const HackerEvaluationHackathon = 'cmd-f2024'

export const getTimestamp = () => {
return firebase.firestore.Timestamp.now()
Expand Down Expand Up @@ -571,7 +571,15 @@ export const getAllApplicants = async callback => {
.where('status.applicationStatus', '!=', 'inProgress')
.onSnapshot(snap => {
callback(
snap.docs.map(doc => doc.data()).sort((a, b) => a.basicInfo.firstName.localeCompare(b.basicInfo.firstName))
snap.docs
.map(doc => doc.data())
.filter(a => a.basicInfo.identifyAsUnderrepresented !== 'no') // cmd-f filter; remove after
.sort((a, b) => {
const firstNameComparison = a.basicInfo.legalFirstName?.localeCompare(b.basicInfo.legalFirstName)
return firstNameComparison !== 0
? firstNameComparison
: a.basicInfo.legalLastName?.localeCompare(b.basicInfo.legalLastName)
})
)
})
}
Expand Down

0 comments on commit 7f4312c

Please sign in to comment.