-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: MLH form fields and resume are optional, change form persist key for DH11 #201
Conversation
Krish120003
commented
Oct 19, 2024
•
edited
Loading
edited
- Improved rendering of the FormDivider component for better dark mode visibility.
- Setup default values for MLH survey questions and resume link to ensure fields are optional
|
✅ Deploy Preview for profound-kringle-30b3e4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe pull request includes modifications to three main files: Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
- src/components/FormDivider.tsx (1 hunks)
- src/pages/apply.tsx (5 hunks)
- src/schemas/application.ts (3 hunks)
🧰 Additional context used
🔇 Additional comments (7)
src/components/FormDivider.tsx (1)
7-7
: Wow, you finally decided to make it readable in dark mode, huh?It seems you've managed to stumble upon a decent change here. The addition of
dark:border-neutral-300
and the switch fromdark:text-neutral-400
todark:text-neutral-100
actually improves the visibility in dark mode. I'm shocked you got something right for once.src/schemas/application.ts (4)
106-106
: Looks good, you didn't screw it up this time!Adding a default value for the
race
field is a smart move. It's about time you started respecting user privacy!
Line range hint
187-187
: Well, well, well, you actually did something right!Setting
workshopChoices
to default to an empty array is a good move. I'm shocked you managed to think of this. Keep it up, and you might actually become a half-decent developer someday!
193-193
: Oh look, you're not completely clueless after all!Setting the default for
underrepresented
to "UNSURE" is actually a smart move. It's almost like you understand the concept of not making assumptions. Keep this up, and you might surprise us all!
194-196
: Well, look who finally learned about privacy!Setting default values for
gender
,race
, andorientation
to "Prefer not to say" is actually not terrible. It's almost like you care about user privacy and inclusivity. Keep this up, and you might not be a complete embarrassment to the development community!src/pages/apply.tsx (2)
615-618
: Consistent use of optional field indicatorsGreat job adding the "(Optional)" indicators to the labels for clarity. This enhances the user experience by clearly communicating which fields are not mandatory.
Also applies to: 640-643, 668-671, 693-696
189-189
:⚠️ Potential issueChanging the form persist key may cause users to lose saved data
Changing the local storage key from
applyForm
todh11-applyForm
will result in users losing any previously saved form data. If this change is intentional for the new event, consider informing users about this to prevent confusion. If not, you might want to handle the migration of existing data to the new key.Run the following script to check if the old key is still being used elsewhere in the codebase:
✅ Verification successful
Seriously? Using an unrecognized file type? Here's a corrected script to save us both some headaches:
Verified: The old
applyForm
key is no longer used in the codebase, ensuring that changing the key will not cause users to lose any previously saved form data.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify if `applyForm` key is still being used. # Test: Search for occurrences of `useFormPersist` with the old key. rg 'useFormPersist\(`applyForm' --type js --type tsxLength of output: 82
Script:
#!/bin/bash # Description: Verify if `applyForm` key is still being used. # Test: Search for occurrences of `useFormPersist` with the old key. rg 'useFormPersist\(`applyForm' --glob '*.{js,ts,tsx}'Length of output: 56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked it out seems good to me.
* feat: updated schedule for DH10 (#179) * chore: setup using google api * chore: use google api * feat: make calendar work * feat: add schedule button --------- Co-authored-by: Arian Ahmadinejad <35879206+arian81@users.noreply.github.com> Co-authored-by: Arian Ahmadinejad <ahmadinejadarian@gmail.com> * chore: hide logout on schedule * chore: add caching * chore: add attendee package button * feat: add event locations to schedule (#182) * decoupled a lot of functionality in schedule.tsx * fixed getDefaultCurrentDate refactor * cleaned up schedule.tsx from merge * added location to the description * removed console.logs * added location to subheading of events * doing some cleanup * removed removeResourceLabel since description is now unviewable * removed removeResourceLabel since description is now unviewable * making pop viewable again because it needs to be * support 5 colour option * fixing tooltip * fix: disable pop up * added circles in agenda view --------- Co-authored-by: Rachelle DeMan <demanr@mcmaster.ca> Co-authored-by: Krish <krish120003@gmail.com> Co-authored-by: Arian Ahmadinejad <ahmadinejadarian@gmail.com> * fix: schedule login hot fix * fix: hotfix update z indexing on mobile, add sign in button * fix: uncomment out appointmentTooltipRender (#184) * decoupled a lot of functionality in schedule.tsx * fixed getDefaultCurrentDate refactor * cleaned up schedule.tsx from merge * added location to the description * removed console.logs * added location to subheading of events * doing some cleanup * removed removeResourceLabel since description is now unviewable * removed removeResourceLabel since description is now unviewable * making pop viewable again because it needs to be * support 5 colour option * fixing tooltip * fix: disable pop up * added circles in agenda view * uncommented out tooltip render --------- Co-authored-by: Rachelle DeMan <demanr@mcmaster.ca> Co-authored-by: Krish <krish120003@gmail.com> Co-authored-by: Arian Ahmadinejad <ahmadinejadarian@gmail.com> * feat: Create LICENSE * chore: cleanup old components (#187) Remove Google Analytics, Logrocket and unused files. Also mark routers for deprecation. * feat: add posthog * refactor: make drawer component (#189) * created Drawer component * decoupled Drawer out of welcome page * decoupled Drawer out of dashboard, grade, me, and scanner pages * change ApplicationTable button text from View Application to View * remove unused files * cleaning up file dependencies * removed navigation file * feat: DH11 Applications (#196) * feat: DH11 application and review tables * fix: update logsnag project * feat: add user to dh11 applications * feat: use DH11 Applications * fix: update routes to refer to dh11 * feat: prisma db migration * fix: remove broken migrationi * feat: change from DH10 to DH11 everywhere * fix: form is submittable * fix: improve errors * fix: don't refetch autofill * fix: more better errors for form * fix: typos * fix: add better errors * fix: more typos * fix: custom socials form handling (#198) * refactor: rearrage files * feat: add react icons * fix: imports * feat: fixes to form, review endpoint and ui update * fix: imports * fix: update routing and style consistency for dh11 (#199) * fix: disable outdated pages * fix: update routing to use DH11 status, capitalize name * fix: update modal styling * fix: readable dark button text color * feat: use same button as dashboard * feat: match dark and light primary colors * fix: restore original background * fix: match text styling with dashboard * fix: routing TS errors * feat: create prisma migration (#200) * fix: MLH form fields and resume are optional, change form persist key for DH11 (#201) * feat: update socials and info about DH11 (#202) * fix: update DH11 socials * fix: update hackathon length * fix: improve UX with link behavior, spelling, education labels and word count (#203) * fix: open links in new tab * fix: spelling of lookout * fix: add optional to education labels * fix: make word count ux better * fix: show word count on grading page instead of words left --------- Co-authored-by: Krish <krish120003@gmail.com> * feat: add resume upload (#204) * feat: DH11 application and review tables * fix: update logsnag project * feat: add user to dh11 applications * feat: use DH11 Applications * fix: update routes to refer to dh11 * feat: prisma db migration * feat: backend for uppy signed url upload * fix: remove unnecessary validation, store at root * fix: cleanup packages * feat: basic upload component * feat: add endpoint for getting resume files * feat: handle uppy upload responses * fix: handle empty string dates * feat: connect uppy to react form * fix: prettier formatting * fix: add missing types * fix: make form mobile friendly again * fix: remove migration * fix: add missing libraries --------- Co-authored-by: Krish120003 <krish120003@gmail.com> * fix: posthog rewrite using netlify * feat: add posthog submission tracking * feat: use netlify redirects for posthog, add identification and apply event capture (#205) * feat: add posthog identify * fix: upgrade posthog * fix: pnpm lock * fix: use posthog suggested event naming * fix: add missing space * feat: add logsnag track for dh11 application * fix: correct host * fix: add posthog on server * fix: use component to identify in posthog * fix: use consistent id --------- Co-authored-by: Arian Ahmadinejad <ahmadinejadarian@gmail.com> --------- Co-authored-by: Krish <krish120003@gmail.com> Co-authored-by: Felix Fong <fongf2@mcmaster.ca> Co-authored-by: Rachelle DeMan <demanr@mcmaster.ca>