Update Owliver language and suggestions

This commit is contained in:
2026-10-07 19:15:44 +05:30
parent 8ac4e1ee88
commit 81e5979f8f
156 changed files with 7330 additions and 1755 deletions

View File

@@ -1,6 +1,7 @@
import type { JobApplication } from '@/types/entities';
import React from 'react';
import { cn } from '@/lib/utils';
import { useTranslation } from 'react-i18next';
const TIERS = [
{ label: 'Top Talent', range: '80-100', color: 'bg-[#1E3A8A]', textColor: 'text-[#1E3A8A]' },
@@ -21,6 +22,7 @@ interface KROWCandidateLeaderboardProps {
}
export default function KROWCandidateLeaderboard({ applications }: KROWCandidateLeaderboardProps) {
const { t } = useTranslation();
const screened = applications.filter(a => a.ai_score > 0 || a.status !== 'applied');
const counts = TIERS.map((_, i) => screened.filter(a => getTier(a.ai_score || 0) === i).length);
const total = counts.reduce((a, b) => a + b, 0) || 1;
@@ -28,7 +30,7 @@ export default function KROWCandidateLeaderboard({ applications }: KROWCandidate
return (
<div className="bg-white border border-[#E5E7EB] rounded-xl p-6">
<h3 className="font-semibold text-[#111827] text-[15px] mb-5">Candidate Pipeline</h3>
<h3 className="font-semibold text-[#111827] text-[15px] mb-5">{t('kROWCandidateLeaderboard.candidatePipeline')}</h3>
{/* Bar chart */}
<div className="space-y-3 mb-6">
@@ -70,7 +72,7 @@ export default function KROWCandidateLeaderboard({ applications }: KROWCandidate
</div>
))}
{sorted.length === 0 && (
<div className="text-center py-8 text-[13px] text-[#9CA3AF]">No screened candidates yet</div>
<div className="text-center py-8 text-[13px] text-[#9CA3AF]">{t('kROWCandidateLeaderboard.noScreenedCandidatesYet')}</div>
)}
</div>
</div>