+ {['it', 'hr', 'buchhaltung'].map(team => {
+ const teamProcs = processes.filter(p => p.responsible_team === team);
+ if (!teamProcs.length) return null;
+ const done = teamProcs.filter(p => !!checklist[`proc_${p.id}`]).length;
+ const pctT = Math.round(done / teamProcs.length * 100);
+ const tc = TEAM_COLORS[team];
+ const isMyTeam = userTeam === team;
+ return (
+
+
+ {TEAM_ICONS[team]}
+ {TEAM_LABELS[team]}
+ {isMyTeam && Dein Team}
+
+
+ {done} / {teamProcs.length} erledigt
+ {pctT}%
+
+
+ {pctT < 100 && (
+
+ β {teamProcs.length - done} Aufgabe{teamProcs.length - done !== 1 ? 'n' : ''} offen
+
+ )}
+ {pctT === 100 && (
+
β VollstΓ€ndig abgehakt
+ )}
+
+ );
+ })}
+