Refactoring AI candidate analysis: UI improvements, data normalization, provider management and real-time score clamping
This commit is contained in:
35
resources/js/Components/Rq/RqBadge.vue
Normal file
35
resources/js/Components/Rq/RqBadge.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<script setup>
|
||||
/**
|
||||
* RqBadge.vue — Badge de statut candidat
|
||||
*
|
||||
* @prop status 'en_attente' | 'en_cours' | 'termine' | 'refuse'
|
||||
* @prop label Override du texte affiché (optionnel)
|
||||
*/
|
||||
const props = defineProps({
|
||||
status: { type: String, required: true },
|
||||
label: { type: String, default: null },
|
||||
});
|
||||
|
||||
const labels = {
|
||||
en_attente: 'En attente',
|
||||
en_cours: 'En cours',
|
||||
termine: 'Terminé',
|
||||
refuse: 'Refusé',
|
||||
};
|
||||
|
||||
const displayLabel = props.label ?? labels[props.status] ?? props.status;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span
|
||||
:class="[
|
||||
'inline-block px-2.5 py-0.5 rounded-full text-2xs font-black uppercase tracking-[0.12em]',
|
||||
status === 'en_attente' && 'bg-ink/5 text-ink/55',
|
||||
status === 'en_cours' && 'bg-primary/10 text-primary',
|
||||
status === 'termine' && 'bg-success/10 text-success',
|
||||
status === 'refuse' && 'bg-accent/10 text-accent',
|
||||
]"
|
||||
>
|
||||
{{ displayLabel }}
|
||||
</span>
|
||||
</template>
|
||||
Reference in New Issue
Block a user