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

Ryan submission screen frontend #47

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ryanswkim
Copy link
Contributor

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.

Comment on lines +24 to +26
// app.use(express.json());
// app.use(express.json({ limit: '50mb' }));
// app.use(express.urlencoded({ limit: '50mb', extended: true }));
Copy link
Contributor

Choose a reason for hiding this comment

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

remove comments

Comment on lines +27 to +28
app.use(bodyParser.json({limit: '50mb'}));
app.use(bodyParser.urlencoded({limit: '50mb', extended: true}));
Copy link
Contributor

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

Copy link
Contributor

@he-is-james he-is-james left a 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:

  1. It is really slow to upload. I tested with a video and then it got rejected. The size limit might need to be increased
  2. 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 () => {
Copy link
Contributor

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?

Comment on lines +281 to +282
name: 'Ryan',
email: '[email protected]',
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants