diff --git a/frontend/src/pages/OffboardingDetailPage.jsx b/frontend/src/pages/OffboardingDetailPage.jsx index a6d1e2f..2813195 100644 --- a/frontend/src/pages/OffboardingDetailPage.jsx +++ b/frontend/src/pages/OffboardingDetailPage.jsx @@ -372,6 +372,45 @@ export default function OffboardingDetailPage() { ))} + {/* Team-Fortschritt */} +
+
πŸ‘₯ Checklisten-Fortschritt nach Team
+
+ {['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
+ )} +
+ ); + })} +
+
+ {/* Allgemeine Infos */}
πŸ“‹ Allgemeine Infos
@@ -489,25 +528,31 @@ export default function OffboardingDetailPage() { )}
-
πŸ“„ PDF-Dokument
- {protocol.pdf_path ? ( -
-
PDF vorhanden
+
+
πŸ“„ PDF-Dokument
+ {protocol.pdf_file_path && (
- + πŸ“₯ Download {canAct && ( )}
-
+ )} +
+ {protocol.pdf_file_path ? ( +