Add candidateTeam field to evaluations; update related components and API endpoints for consistency

This commit is contained in:
Julien Froidefond
2026-02-20 09:22:12 +01:00
parent f0c5d768db
commit 9fcceb2649
11 changed files with 79 additions and 38 deletions

View File

@@ -3,6 +3,7 @@
interface CandidateFormProps {
candidateName: string;
candidateRole: string;
candidateTeam?: string;
evaluatorName: string;
evaluationDate: string;
templateId: string;
@@ -20,6 +21,7 @@ const labelClass = "mb-0.5 block text-xs font-medium text-zinc-600 dark:text-zin
export function CandidateForm({
candidateName,
candidateRole,
candidateTeam = "",
evaluatorName,
evaluationDate,
templateId,
@@ -52,6 +54,17 @@ export function CandidateForm({
placeholder="ML Engineer"
/>
</div>
<div className="min-w-[140px]">
<label className={labelClass}>Équipe</label>
<input
type="text"
value={candidateTeam}
onChange={(e) => onChange("candidateTeam", e.target.value)}
className={inputClass}
disabled={disabled}
placeholder="Cars Front"
/>
</div>
<div className="min-w-[120px]">
<label className={labelClass}>Évaluateur</label>
<input