Skip to content

Conversation

@anna-sage
Copy link
Contributor

@anna-sage anna-sage commented Dec 24, 2024

Why

  • Needed a reliable storage solution for members' resumes.
  • Member application needed functionality to upload a resume to bucket storage.

What

  • Dedicated MinIO bucket for resumes: "member-resumes".
  • Input field on the member application form for attaching a resume with validation requirements:
    - 0 or 1 files attached.
    - PDF required.
    - File size is maximum 5MB.
  • New tRPC route for overwriting old resumes and uploading a new resume for an individual member/user.

Test Plan

New frontend input for resume in the member application:
resume_up_field_2

Manual testing process for the upload resume route:

  • MinIO bucket before submitting application:
    empty_minio_delete
  • MinIO bucket after submitting application with resume:
    folder_minio_delete
    resume_minio_delete

@anna-sage anna-sage force-pushed the blade/add-resume-button-member-form branch 2 times, most recently from c00f434 to 714b191 Compare January 1, 2025 00:33
@anna-sage anna-sage marked this pull request as ready for review January 3, 2025 20:18
@anna-sage anna-sage requested a review from a team as a code owner January 3, 2025 20:18
@DVidal1205
Copy link
Contributor

looks fire, think we can get a video demo attached?

Copy link
Contributor

@DVidal1205 DVidal1205 left a comment

Choose a reason for hiding this comment

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

heat asf, ive only got one small review i can see but be sure to wait for 1 more review.

also, can we extract the button and all of its logic into a component? we will need to use this exact button on @TTRAN70's new member management front end, so that may help a lot to use later and you know the functionality.

Copy link
Member

@must108 must108 left a comment

Choose a reason for hiding this comment

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

looks pretty good. just a few const/string changes from me. try to add video demo

} else {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: "Object in FileList is undefined",
Copy link
Member

Choose a reason for hiding this comment

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

this and other zod issues/errors/not user-facing strings can have more consistent punctuation

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you give an example?

@Lewin-B Lewin-B force-pushed the blade/add-resume-button-member-form branch from 387e586 to 548e907 Compare January 4, 2025 05:10
@Lewin-B Lewin-B merged commit f2d52d6 into main Jan 4, 2025
3 checks passed
@Lewin-B Lewin-B deleted the blade/add-resume-button-member-form branch January 4, 2025 15:18
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.

4 participants