-
Notifications
You must be signed in to change notification settings - Fork 0
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
Portal schema changes #591
Conversation
Visit the preview URL for this PR (updated for commit 20ffda3): https://nwplus-ubc--pr591-portal-schema-change-rypvrj4e.web.app (expires Sat, 10 Aug 2024 18:52:47 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 8c7ea898e009e43455645bc310bcbccfc0f87e48 |
20db37f
to
50b7c1d
Compare
… removing the application null check
|
||
const projectRef = projectsRef(dbHackathonName) | ||
if (!projectRef) { | ||
console.error('projectsRef returned undefined') |
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.
left console.error messages in here because i'm scared of it breaking LOL
useEffect(() => { | ||
const retrieveApplication = async () => { | ||
if (!user) return | ||
if (!user) { | ||
setIsLoading(false) | ||
return | ||
} | ||
const app = await getUserApplication(user.uid, dbHackathonName) | ||
fillMissingProperties(app, HACKER_APPLICATION_TEMPLATE) | ||
setApplication(app) | ||
applicationRef.current = app | ||
setUpdated(false) | ||
setIsLoading(false) | ||
} | ||
retrieveApplication() | ||
return async () => { | ||
await forceSave() | ||
|
||
return () => { | ||
if (user) { | ||
forceSave() | ||
} | ||
} | ||
}, [forceSave, user, dbHackathonName]) |
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.
conslidated the two useEffects from earlier in the file (the ones I commented out) because they appear to do the same thing
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.
LGTM, this looks really good! Code is clean, ur cracked!
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.
cracked developer 😮💨 |
Description
made `copyText` and `headerText` dynamic (the application dashboard page is fully dynamic now)
updated livesite schema to:
waiversAndForms
(moved out ofConstants.js
) andnotionLinks
to the schema since these will be different every hackathonNote: leaving
rsvpOpen
alone for now (slack thread)Manual testing
Open
) and make sure that the app reflects the changes