fix talent pool ui
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import { Brain } from 'lucide-react';
|
||||
import { Button, SearchInput, toast } from '@/components/ds';
|
||||
import { Button, SearchInput } from '@/components/ds';
|
||||
import { useApplications, useInterviews, useJobPostings } from '@/lib/krowHooks';
|
||||
import { AdminPage, Toolbar } from '@/pages/admin/_shell';
|
||||
import { FilterSelect } from '@/pages/admin/Positions';
|
||||
@@ -43,8 +42,8 @@ export default function AdminCandidates() {
|
||||
.filter((a) => {
|
||||
if (q && !`${a.applicant_name} ${a.email} ${a.job_title} ${(a.skills || []).join(' ')}`.toLowerCase().includes(q)) return false;
|
||||
if (position !== 'all' && a.job_title !== position) return false;
|
||||
if (stage !== 'all' && a.status !== stage) return false;
|
||||
if (!SCORE_BANDS[band](a.ai_score || 0)) return false;
|
||||
if (stage !== 'all' && a.stage !== stage) return false;
|
||||
if (band !== 'all' && !SCORE_BANDS[band](a.ai_score)) return false;
|
||||
return true;
|
||||
})
|
||||
.sort(SORTS[sort].compare);
|
||||
@@ -60,11 +59,6 @@ export default function AdminCandidates() {
|
||||
<AdminPage
|
||||
title="Candidates"
|
||||
subtitle="Review, compare and manage the candidate pipeline."
|
||||
actions={
|
||||
<Button variant="outline" size="sm" shape="rounded" onClick={() => toast.info('Batch screening is disabled in the demo')}>
|
||||
<Brain aria-hidden="true" /> Screen unscored
|
||||
</Button>
|
||||
}
|
||||
>
|
||||
<Toolbar
|
||||
search={<SearchInput value={search} onChange={setSearch} placeholder="Search candidates..." size="sm" />}
|
||||
|
||||
Reference in New Issue
Block a user