Frontend : nettoyage des reliquats du statut d'affectation
Le gros de la suppression a été fait dans 8d333de ; il restait des libellés :
- i18n : « CONFIRMÉS / IDÉAL » → « AFFECTÉS / IDÉAL », note de bas de grille
sans « proposés », clé mobileVol.slotConfirmed → slotAssigned
- components/ui.tsx : tons de Badge « confirmed » / « proposed » (inutilisés)
- ConfigMail : texte d'email par défaut sans « confirmer chaque créneau »
typecheck + lint + build + smoke : OK
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017uUsRg7XzopkCPWimwg9ZM
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
8d333deb23
commit
977bd4dc34
@@ -102,15 +102,13 @@ export function Chip({
|
||||
);
|
||||
}
|
||||
|
||||
type BadgeTone = 'confirmed' | 'proposed' | 'success' | 'info' | 'warn' | 'danger' | 'neutral';
|
||||
type BadgeTone = 'success' | 'info' | 'warn' | 'danger' | 'neutral';
|
||||
|
||||
export function Badge({ tone, children }: { tone: BadgeTone; children: ReactNode }) {
|
||||
return (
|
||||
<span
|
||||
className={cx(
|
||||
'inline-flex items-center border-2 px-[6px] py-[3px] font-display text-[8.5px] font-extrabold uppercase tracking-wide',
|
||||
tone === 'confirmed' && 'border-ink bg-green text-white',
|
||||
tone === 'proposed' && 'border-ink border-dashed bg-paper text-ink',
|
||||
tone === 'success' && 'border-ink bg-green text-white',
|
||||
tone === 'info' && 'border-ink bg-blue text-ink',
|
||||
tone === 'warn' && 'border-ink bg-yellow-soft text-ink',
|
||||
|
||||
Reference in New Issue
Block a user