Ajoute icone pour priorite + changement donnée envoyé

This commit is contained in:
2026-05-25 22:46:30 +02:00
parent 976f15feaf
commit 9fc88d8875
10 changed files with 51 additions and 15 deletions
+11
View File
@@ -52,6 +52,17 @@ export class Issues {
return Math.round((done / children.length) * 100);
}
protected priorityDisplay(priority: IssueEntity['priority']): { symbol: string; color: string; label: string } {
const map: Record<IssueEntity['priority'], { symbol: string; color: string; label: string }> = {
'TRES_HAUTE': { symbol: '↑↑', color: '#dc3545', label: 'Très haute' },
'HAUTE': { symbol: '↑', color: '#fd7e14', label: 'Haute' },
'MOYENNE': { symbol: '', color: '#ffc107', label: 'Moyenne' },
'BASSE': { symbol: '↓', color: '#0d6efd', label: 'Basse' },
'TRES_FAIBLE':{ symbol: '↓↓', color: '#6c757d', label: 'Très faible'},
};
return map[priority] ?? { symbol: '?', color: '#6c757d', label: priority };
}
protected typeBadgeClass(type: IssueEntity['type']): string {
const map: Record<IssueEntity['type'], string> = {
Bug: 'text-bg-danger',