-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
395 lines (380 loc) · 8.72 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
export const EDIT = 'EDIT'
export const NEW = 'NEW'
export const VIEW = 'VIEW'
export const CLOSE = 'CLOSE'
export const DELETE = 'DELETE'
export const SAVE = 'SAVE'
export const CHECK = 'CHECK'
export const COLOR = {
BACKGROUND: '#F8F8F8',
WHITE: '#FFFFFF',
GRAY: '#EDEDED',
PRIMARY: '#2D2937',
PRIMARY_DARK: '#1b1821',
TEXT: '#5A5A5A',
BLACK: '#000000',
DARK_COPY: '#A198A6',
RED: '#EB5757',
GREEN: '#50C878',
DARK_GRAY: '#606060',
TRANSPARENT: 'Transparent',
BODY_TEXT: '#5A5A5A',
BLUE: '#4285F4',
UNSELECTED_GRAY: '#BDBAC3',
MIDNIGHT_PURPLE_DEEP: '#2C2543',
MIDNIGHT_PURPLE: '#433860',
MIDNIGHT_PURPLE_LIGHT: '#8E7EB4',
LIGHT_GRAY: '#F0EEF2',
LIGHT_PURPLE: '#E2D6FF',
NW_TEAL: '#20FFAF',
TEAL: '#00A399',
INACTIVE_DARK_GRAY: '#8C898F',
BRIGHT_RED: '#F83D3D',
GREY_500: '#BDBAC3',
GREY_200: '#F0EEf2',
EVAL_GREY: '#EEEEEE',
}
export const BUTTON_COLOR = {
PRIMARY: 'linear-gradient(92.58deg, #0DEFE1 0%, #78FF96 100%)',
SECONDARY: '#FFFFFF',
OUTLINE: 'Transparent',
DESTRUCTIVE: '#F65C5C',
HOVER_PRIMARY: 'linear-gradient(90deg, #D7FFF0 0%, #7BFFCF 100%)',
}
export const TAG_COLOR = {
TEAL: '#00BCBC',
BLUE: '#2F80ED',
PURPLE: '#812F9D',
GREEN: '#00B775',
RED: '#F83D3D',
ORANGE: '#FFA644',
YELLOW: '#FFF463',
}
export const TAGS = [
{
text: 'seattle bus',
color: TAG_COLOR.TEAL,
},
{
text: "rsvp'd",
color: TAG_COLOR.BLUE,
},
{
text: 'travel reimbursement',
color: TAG_COLOR.PURPLE,
},
]
export const FAQ = 'FAQ'
export const FAQCategory = Object.freeze({
GENERAL: 'General',
LOGS: 'Logistics',
TEAMS: 'Teams & Projects',
MISC: 'Miscellaneous',
})
export const SPONSORSHIP = 'SPONSORSHIP'
export const HACKATHON_NAVBAR = {
intro: 'Intro',
// events: 'Edit Events', # merged this with dayOf in portal schedule
spocos: 'Edit Sponsors',
rewards: 'Edit Rewards',
FeatureFlags: 'Feature Flags',
BuildConfig: 'Build Config',
HackerInfo: 'Firebase Queries',
}
export const PORTAL_NAVBAR = {
settings: 'Settings',
schedule: 'Schedule',
judging: 'Judging',
}
export const HACKER_APP_NAVBAR = {
welcome: 'Welcome',
basicinfo: 'Basic Info',
skills: 'Skills',
questionnaire: 'Questionnaire',
}
export const ASSESSMENT_COLOR = {
PRIMARY: '#2D2937',
PRIMARY_DARK: '#1b1821',
TEXT: '#5A5A5A',
BLACK: '#000000',
DARK_COPY: '#A198A6',
RED: '#EB5757',
GREEN: '#50C878',
BLUE: '#4285F4',
YELLOW: '#FFD700',
DARK_GRAY: '#4F4F4F',
INPUT_GRAY: '#F4F4F4',
TRANSPARENT: 'Transparent',
BODY_TEXT: '#5A5A5A',
LIGHT_GRAY: '#828282',
UNSCORED_GRAY: '#E0E0E0',
LIGHT_BLUE: '#F0EEF2',
TOOLBAR_GRAY: '#FAFAFA',
BLUE_BORDER: '#21258A',
}
// Assessment portal
export const APPLICATION_STATUS = {
applied: {
color: ASSESSMENT_COLOR.RED,
textColor: 'white',
text: 'applied',
},
waitlisted: {
color: ASSESSMENT_COLOR.RED,
textColor: 'white',
text: 'waitlisted',
displayText: 'Waitlisted',
},
rejected: {
color: ASSESSMENT_COLOR.YELLOW,
textColor: 'white',
text: 'rejected',
displayText: 'Rejected',
},
gradinginprog: {
color: ASSESSMENT_COLOR.DARK_GRAY,
textColor: 'white',
text: 'gradinginprog',
displayText: 'In progress',
},
ungraded: {
color: ASSESSMENT_COLOR.RED,
textColor: 'white',
text: 'ungraded',
displayText: 'Ungraded',
},
scored: {
color: ASSESSMENT_COLOR.BLUE,
textColor: 'white',
text: 'scored',
displayText: 'Graded',
},
accepted: {
color: ASSESSMENT_COLOR.GREEN,
textColor: 'white',
text: 'acceptedNoResponseYet',
displayText: 'Accepted',
},
acceptedAndAttending: {
color: ASSESSMENT_COLOR.GREEN,
textColor: 'white',
text: 'acceptedAndAttending',
displayText: 'RSVPed',
},
acceptedUnRSVP: {
color: ASSESSMENT_COLOR.GREEN,
textColor: 'white',
text: 'acceptedUnRSVP',
displayText: 'UnRSVPed',
},
completed: {
color: COLOR.MIDNIGHT_PURPLE,
textColor: 'white',
text: 'completed',
},
}
export const NUM_SCORES = 5
export const SCORING = {
RESUME: {
label: 'Resume',
value: 6,
weight: 1,
},
NUM_EXP: {
label: 'Number of Experiences',
value: 5,
weight: 0,
},
ESSAY1: {
label: 'Long Answer 1',
value: 4,
weight: 1,
},
ESSAY2: {
label: 'Long Answer 2',
value: 6,
weight: 1,
},
ESSAY3: {
label: 'Long Answer 3',
value: 1,
weight: 1,
},
}
export const BONUS_SCORING = {
FIRST_TIME_HACKER: {
label: 'First time hacker',
value: 1,
weight: 0.5,
},
}
export const MAX_SCORE = Object.values(SCORING).reduce((acc, curr) => acc + curr.value * curr.weight, 0)
// export const MAX_SCORE = 15 // hardcoded for cmd-f 2024
export const SORT = {
TIMESTAMP: 'Timestamp',
LAST_NAME: 'Last Name',
FIRST_NAME: 'First Name',
SCORE: 'Total Score',
STATUS: 'Status',
}
export const TABS = {
OVERVIEW: 'Overview',
RESUME: 'Resume',
COMMENTS: 'Comments',
}
export const RUBRIC = {
PM: [
{
score: '+1',
label: 'For any project/experience involving leadership',
},
{
score: '+1',
label: 'If one or more of any work experience',
},
{
score: '+1',
label: 'If any of the work experiences are tech-related (work or internship)',
},
{
score: '+1',
label: 'At least one extracurricular activity',
},
{
score: '+1',
label: 'Easy to read, clean, well made (something you would do to apply to a job)',
},
],
DEV: [
{
score: '+1',
label: 'At least 1 tech-related project',
},
{
score: '+1',
label: 'If one or more of any work experience',
},
{
score: '+1',
label: 'If any of the work experiences are tech-related (work or internship)',
},
{
score: '+1',
label: 'At least one tech-related extracurricular activity',
},
{
score: '+1',
label: 'Easy to read, clean, well made (something you would do to apply to a job)',
},
],
DESIGN: [
{
score: '+1',
label: 'For a design project linked to tech (examples: website design, app design) (not examples: sculpture)',
},
{
score: '+1',
label: 'If one or more of any work experience',
},
{
score: '+1',
label: 'if any of the work experiences are tech-related (work or internship)',
},
{
score: '+1',
label: 'At least one tech-related extracurricular activity',
},
{
score: '+1',
label: 'Easy to read, clean, well made (something you would do to apply to a job)',
},
],
GENERAL: [
{
score: '+1',
label: 'Because they are a beginner',
},
{
score: '+1',
label: 'At least 1 small project/experience',
},
{
score: '+1',
label: 'For each extracurricular activity (1 point each, max 2 points)',
},
{
score: '+1',
label: 'Easy to read, clean, well made (something you would do to apply to a job)',
},
],
LONG_ANSWER: [
{
score: '+4',
label: 'Above and beyond | Damn this is some quality writing | You think we need to accept this applicant',
},
{
score: '+3',
label:
'One meaningful and realistic statement | Connect with impact to self or society (the why behind it) | Explanation to personal connection or passion (the how)',
},
{
score: '+2',
label: 'One meaningful and realistic statement | Connect with impact to self or society (the why behind it)',
},
{
score: '+1',
label: 'One Meaningful and realistic statement',
},
{
score: '+0',
label: 'No effort | Very low word count',
},
{
score: '-1',
label: 'Spelling and grammar mistakes makes it hard to read or understand the text',
},
],
}
export const HACKATHONS = ['HackCamp2024', 'nwHacks2025', 'cmd-f2025']
export const QUESTION_TYPES = Object.freeze({
MCQ: 'Multiple Choice',
DROPDOWN: 'Dropdown',
SELECTALL: 'Select All',
SHORTANS: 'Short Answer',
LONGANS: 'Long Answer',
SCHOOL: 'School',
COUNTRY: 'Country',
MAJOR: 'Major',
PORTFOLIO: 'Portfolio',
LEGALNAME: 'Full Legal Name',
})
export const BASIC_INFO_FORM_INPUT_FIELDS = [
'academicYear',
'ageByHackathon',
'canadianStatus',
'culturalBackground',
'dietaryRestriction',
'disability',
'educationLevel',
'email',
'gender',
'graduation',
'haveTransExperience',
'identifyAsUnderrepresented',
'indigenousIdentification',
'phoneNumber',
'preferredName',
'pronouns',
'race',
'jobPosition',
]
export const SKILLS_FORM_INPUT_FIELDS = [
'numHackathonsAttended',
'contributionRole',
'longAnswers1',
'longAnswers2',
'longAnswers3',
'longAnswers4',
// 'longAnswers5',
]
export const QUESTIONNAIRE_FORM_INPUT_FIELDS = ['eventsAttended', 'engagementSource']