AI Analysis: enforce 7-day rate limit per candidate

This commit is contained in:
jeremy bayse
2026-03-25 19:02:26 +01:00
parent 40c8aa2e5a
commit 7a05b7e6b3
4 changed files with 22 additions and 32 deletions

View File

@@ -365,14 +365,19 @@ const runAI = async () => {
<div class="bg-white dark:bg-slate-800 rounded-2xl shadow-sm border border-slate-200 dark:border-slate-700 p-8 overflow-hidden relative">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-6 mb-8">
<div>
<h3 class="font-bold text-lg mb-4 flex items-center gap-3">
<h3 class="font-bold text-lg mb-4 flex items-center gap-3 flex-wrap">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-indigo-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9l-.707.707M12 21v-1m4.243-4.243l-.707-.707m2.828-9.9l-.707.707" />
</svg>
Analyse IA complète
<span v-if="aiAnalysis?.provider" class="text-xs px-2 py-0.5 rounded-full bg-slate-100 text-slate-500 uppercase font-bold border border-slate-200">
{{ aiAnalysis.provider }}
</span>
<div class="flex items-center gap-2">
<span v-if="aiAnalysis?.provider" class="text-xs px-2 py-0.5 rounded-full bg-slate-100 text-slate-500 uppercase font-bold border border-slate-200">
{{ aiAnalysis.provider }}
</span>
<span v-if="aiAnalysis?.analyzed_at" class="text-[10px] text-slate-400 italic font-normal">
Effectuée le {{ new Date(aiAnalysis.analyzed_at).toLocaleDateString('fr-FR') }}
</span>
</div>
</h3>
<p class="text-xs text-slate-400 mt-1 uppercase font-bold tracking-widest">Choisir l'IA pour l'analyse du matching</p>
</div>