Skip to content

fix(job-form): show resumes in dropdown and normalize resumeId - #92

Open
AkshayChikhalkar wants to merge 1 commit into
Gsync:devfrom
AkshayChikhalkar:fix/job-form-resume-dropdown
Open

fix(job-form): show resumes in dropdown and normalize resumeId#92
AkshayChikhalkar wants to merge 1 commit into
Gsync:devfrom
AkshayChikhalkar:fix/job-form-resume-dropdown

Conversation

@AkshayChikhalkar

Copy link
Copy Markdown

Summary

Resumes appear on Profile but were missing from the Add/Edit Job Resume dropdown. Empty resume selections could also write an invalid resumeId and trigger Prisma P2003.

Changes

  • Load all user resumes in the job form dropdown (no min-sections filter)
  • Normalize empty resume/coverLetter to null
  • Validate resume ownership on create/update
  • Add unit tests for null coercion and ownership

Related Issues

Closes #91

Testing

  • npm run lint
  • npm test -- tests/job.actions.spec.ts
  • npm test -- tests/AddJob.spec.tsx

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.

1 participant