Skip to content

Admin Jobs Request + Nonprofit Renew Button#241

Merged
noahgiboney merged 9 commits into
developfrom
jobs-request
Jun 1, 2025
Merged

Admin Jobs Request + Nonprofit Renew Button#241
noahgiboney merged 9 commits into
developfrom
jobs-request

Conversation

@markmcguire011
Copy link
Copy Markdown
Collaborator

@markmcguire011 markmcguire011 commented May 30, 2025

Developer: Mark McGuire

Pull Request Summary

Admin Job GET Request: previously, GET requests to the main /api/jobs route would yield only 10 jobs (limited for the main job board infinite scrolling), so not all jobs would appear in the admin dashboard. I added a flag isAdminRequest which will remove limiting if the request for jobs is coming from the admin page.
Nonprofit Renewal Button: nonprofits had no way of renewing expired jobs other than making an edit and returning it to pending, now, clicking the renewal button will automatically send the job to approved.
Admin Renewal Button: implemented the functionality for renewing a job on admin cards, didn't do anything before.
Expired Job Flagging Tweaks: modified expired job flagging logic slightly, tested considerably so everything should work well.

Modifications

(see files changed tab)

Testing Considerations

Test by hard coding a job to be expired (change in mongoDB), then go through the renewal process on both the nonprofit and admin side, also verify that all approved and other categorized jobs appear in their relevant tabs within the admin dashboard.

Pull Request Checklist

  • Code is neat, readable, and works
  • Comments are appropriate
  • The commit messages follows our guidelines
  • The developer name is specified
  • The summary is completed
  • Assign reviewers

Screenshots/Screencast

Screenshot 2025-05-29 at 7 45 01 PM

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spokes ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2025 4:26am

@markmcguire011 markmcguire011 changed the title Jobs request Admin Jobs Request + Nonprofit Renew Button May 30, 2025
Copy link
Copy Markdown
Collaborator

@noahgiboney noahgiboney left a comment

Choose a reason for hiding this comment

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

Looks good

@noahgiboney noahgiboney merged commit 76d36ab into develop Jun 1, 2025
6 checks passed
@noahgiboney noahgiboney deleted the jobs-request branch June 1, 2025 01:17
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