-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Add datePosted filter for Job Listings (#977)
* Refactor: Add datePosted filter for Job Listings - Added the datePosted field to the FindAllVisibleTpJobListingsArgsFilter input type in the types.ts file. - Updated the fetchAllTpJobListingsUsingFilters function in the api.tsx file to include the datePosted parameter when making API requests. - Modified the TpJobListingsService class in the tp-job-listings.service.ts file to filter job listings based on the datePosted field. - Updated the JobListingCard.generated.ts file to include the isFromCareerPartner field in the JobListingCardJobListingPropFragment type. - Modified the FilterDropdown.tsx file to add support for single select options. - Updated the JobListingCard.tsx file to display a "Promoted" label for job listings posted by ReDI Career Partners. * fix: add datePosted in clearFilters * Conditionally apply career partner sorting based on datePosted value in BrowseJobseeker component * Add 'Any time' option to job listing date filter and refactor date handling - Introduced `jobListingCreatedDate` and `jobListingCreatedDateInAge` constants for better date filter management. - Updated `BrowseJobseeker.tsx` to use these constants and handle 'Any time' option correctly. - Modified `tp-job-listings.service.ts` to utilize `jobListingCreatedDateInAge` for date calculations.
- Loading branch information
Showing
14 changed files
with
147 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.