-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ryan submission screen frontend #47
base: main
Are you sure you want to change the base?
Conversation
// app.use(express.json()); | ||
// app.use(express.json({ limit: '50mb' })); | ||
// app.use(express.urlencoded({ limit: '50mb', extended: true })); |
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.
remove comments
app.use(bodyParser.json({limit: '50mb'})); | ||
app.use(bodyParser.urlencoded({limit: '50mb', extended: true})); |
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.
tried to upload a video and it said that the payload was too large, unsure if this needs to be increased
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.
The feature looks amazing, great job with the video and audio player as well as the attention to detail with the design.
Currently there are two issues I'm having:
- It is really slow to upload. I tested with a video and then it got rejected. The size limit might need to be increased
- I tested with two photos and it worked but there was an error
[TypeError: undefined is not an object (evaluating 'files[carouselIdx].type')]
despite it successfully uploading. Maybe a loading animation is needed for people to wait because nothing happened in the meantime
@@ -172,10 +215,46 @@ function SubmissionScreen() { | |||
}; | |||
|
|||
const submit = async () => { |
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.
there might need to be an additional check here to prevent null values?
name: 'Ryan', | ||
email: '[email protected]', |
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.
when you integrate it with accounts, remember to use redux to get the user id and then call api route for get name and email (you can create a new route which would be pretty simple or let me know and I can do it for you)
Lots of frontend changes, looks like how it does in the demo day presentation. I still need to work on popups, integrating user ID (the name, socials, etc. are all hard coded right now), and cleaning up the code. Besides that, everything else is done unless designers have any last minute requests.