Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmd f evaluator #234

Merged
merged 5 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
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
7 changes: 5 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,10 @@ 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) => a.basicInfo.legalFirstName.localeCompare(b.basicInfo.legalFirstName))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need a stronger/alternative sort here (like also add last name as secondary sort) since we ran into problems with nwHacks where some applicant placements kept jumping if they had the same first name before/after they were graded.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok added last name sort

)
})
}
Expand Down
Loading