diff --git a/frontend/src/app/(site)/company/candidates/candidateCard.tsx b/frontend/src/app/(site)/company/candidates/candidateCard.tsx index eb0588b..4199732 100644 --- a/frontend/src/app/(site)/company/candidates/candidateCard.tsx +++ b/frontend/src/app/(site)/company/candidates/candidateCard.tsx @@ -85,7 +85,7 @@ export const CandidateCard: React.FC = ({ whiteSpace: "nowrap", }} > - {candidate.full_match_score.toFixed(2)}% match + {candidate.full_match_score.toFixed(0)}% match = { shouldSort: true, findAllMatches: true, threshold: 0, - keys: ["job_title", "full_match_score", "soft_skills", "hard_skills", "name"], + keys: [ + "job_title", + "full_match_score", + "soft_skills", + "hard_skills", + "preferred_name", + ], }; export default function CandidatesPage(ctx: any) { @@ -31,7 +37,10 @@ export default function CandidatesPage(ctx: any) { const filteredCandidates = useMemo(() => { const fuse = new Fuse(listOfCandidates, options); return fuse.search(searchTerm, { limit: 20 }); - }, [listOfCandidates, searchTerm]); + }, [ + listOfCandidates.sort((a, b) => b.full_match_score - a.full_match_score), + searchTerm, + ]); return ( diff --git a/frontend/src/app/(site)/company/jobs/jobPostCard.tsx b/frontend/src/app/(site)/company/jobs/jobPostCard.tsx index 5507d3f..609650d 100644 --- a/frontend/src/app/(site)/company/jobs/jobPostCard.tsx +++ b/frontend/src/app/(site)/company/jobs/jobPostCard.tsx @@ -25,10 +25,10 @@ export const JobPostCard: React.FC = ({ job }) => { const router = useRouter(); const handleShowMatchesSubmit = ( event: FormEvent, - jobId: string, + jobid: string, ) => { event.preventDefault(); - router.replace(`/company/candidates/?jobId=${jobId}`); + router.replace(`/company/candidates/?jobid=${jobid}`); }; const handleViewPostSubmit = ( diff --git a/frontend/src/app/(site)/company/jobs/jobPreview.tsx b/frontend/src/app/(site)/company/jobs/jobPreview.tsx index 34eabdb..321f9b9 100644 --- a/frontend/src/app/(site)/company/jobs/jobPreview.tsx +++ b/frontend/src/app/(site)/company/jobs/jobPreview.tsx @@ -16,7 +16,7 @@ import HomeWorkIcon from "@mui/icons-material/HomeWork"; import WorkIcon from "@mui/icons-material/Work"; import PermContactCalendarIcon from "@mui/icons-material/PermContactCalendar"; import Box from "@mui/material/Box"; -import Tooltip from "@mui/material/Tooltip"; +import { HtmlTooltip } from "@/components/site/candidateProfile/candidateHelpers"; interface JobPreviewInterface { jobPost: JobPost; @@ -36,7 +36,7 @@ export const JobPreview: React.FC = ({ jobId: string, ) => { event.preventDefault(); - router.replace(`/company/candidates/?jobId=${jobId}`); + router.replace(`/company/candidates/?jobid=${jobId}`); }; return ( <> @@ -103,7 +103,22 @@ export const JobPreview: React.FC = ({ > Find match - + + + What is the Balanced Match? + + + When you choose a balanced match, you'll still receive the + same matching score, but we'll prioritize presenting suggested + candidates in a balanced way to support underrepresented + groups. It's all about creating a fair and diverse hiring + experience + + + } + > - + = ({ children }) => { if (!auth?.authenticated) { return false; } - //@TODO check token expiration time return true; };