AI Analysis: add custom AI prompt to job positions
This commit is contained in:
@@ -18,7 +18,8 @@ const editingPosition = ref(null);
|
||||
const form = useForm({
|
||||
title: '',
|
||||
description: '',
|
||||
requirements: []
|
||||
requirements: [],
|
||||
ai_prompt: ''
|
||||
});
|
||||
|
||||
const openModal = (position = null) => {
|
||||
@@ -27,6 +28,7 @@ const openModal = (position = null) => {
|
||||
form.title = position.title;
|
||||
form.description = position.description;
|
||||
form.requirements = position.requirements || [];
|
||||
form.ai_prompt = position.ai_prompt || '';
|
||||
} else {
|
||||
form.reset();
|
||||
}
|
||||
@@ -165,6 +167,18 @@ const removeRequirement = (index) => {
|
||||
<InputError :message="form.errors.description" />
|
||||
</div>
|
||||
|
||||
<div class="bg-indigo-50/50 dark:bg-indigo-900/10 p-6 rounded-3xl border border-indigo-100 dark:border-indigo-800/50">
|
||||
<label class="block text-xs font-black uppercase tracking-widest text-indigo-600 dark:text-indigo-400 mb-2">IA Context & Prompt Personnalisé</label>
|
||||
<p class="text-[10px] text-indigo-400 mb-4 font-bold uppercase tracking-tight">Utilisez cette zone pour donner des instructions spécifiques à l'IA (priorités, contexte entreprise, ton de l'analyse...)</p>
|
||||
<textarea
|
||||
v-model="form.ai_prompt"
|
||||
rows="5"
|
||||
class="w-full bg-white dark:bg-slate-900 border-none rounded-2xl p-4 focus:ring-2 focus:ring-indigo-500/20 transition-all text-sm leading-relaxed"
|
||||
placeholder="Ex: Sois particulièrement attentif à l'expérience sur des projets SaaS à forte charge. Favorise les candidats ayant travaillé en environnement Agile."
|
||||
></textarea>
|
||||
<InputError :message="form.errors.ai_prompt" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<label class="text-xs font-black uppercase tracking-widest text-slate-400">Compétences clés / Pré-requis</label>
|
||||
|
||||
Reference in New Issue
Block a user