hackmcgill / dashboard

🐥 McHacks dashboard
https://app.mchacks.ca
MIT License
32 stars 9 forks source link

Feat/868 resume component #910

Closed jamesxu123 closed 3 years ago

jamesxu123 commented 3 years ago

Tickets:

List of changes:

Type of change:

Please delete options that aren't relevant.

How did you do this?

How to test:

Questions:

PR Checklist:

Screenshots:

image image image

close #868

jamesxu123 commented 3 years ago

Before any merges, I had a couple of questions:

  1. Is the max file size 1MB? Not sure if the Figma was just for show.
  2. Are we limited to PDFs only? I just kind of assumed so, but I can always change it.
logan-r commented 3 years ago
  1. Let's stick with 4MB
  2. Yeah, pdf only
jamesxu123 commented 3 years ago

I fixed the outline, it was a focus state thing.

About seeing the file, do you mean like a local link to open the file that they have selected? I don't think the resume is uploaded until the submit the form. I do have a small subtitle with the file name already, but I can add that button if needed.

jamesxu123 commented 3 years ago

Yeah personally I think having the file name should be good. I’m not sure if I’ve seen a file:// uri for file uploads elsewhere.

logan-r commented 3 years ago

Yeah did a bit of invistigating and it appears that we can't link to local file:// uri before uploading because that's a security flaw - we could encode the file using FileReader then use data:// uri to link to it but that's too much effort for a very minor feature