feat: add visual evaluation status indicators to activity list
- ✓ Green: Successfully evaluated (excellent/good/acceptable/poor) - ⚠ Orange: Training type assigned but not evaluated (no profile) - ✕ Gray: No training type assigned - Tooltip shows evaluation details on hover Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d07baa260c
commit
4937ce4b05
|
|
@ -354,6 +354,66 @@ export default function ActivityPage() {
|
|||
<div style={{display:'flex',justifyContent:'space-between',alignItems:'flex-start'}}>
|
||||
<div style={{flex:1}}>
|
||||
<div style={{display:'flex',alignItems:'center',gap:6,marginBottom:2}}>
|
||||
{/* Evaluation Status Indicator */}
|
||||
{e.quality_label ? (
|
||||
<div
|
||||
style={{
|
||||
display:'inline-flex',
|
||||
alignItems:'center',
|
||||
justifyContent:'center',
|
||||
width:18,
|
||||
height:18,
|
||||
borderRadius:9,
|
||||
background: e.quality_label === 'excellent' || e.quality_label === 'good' ? '#1D9E75' :
|
||||
e.quality_label === 'acceptable' ? '#EF9F27' : '#D85A30',
|
||||
color:'white',
|
||||
fontSize:10,
|
||||
fontWeight:700,
|
||||
flexShrink:0
|
||||
}}
|
||||
title={`Evaluation: ${e.quality_label} (Score: ${e.overall_score || 'n/a'})`}
|
||||
>
|
||||
✓
|
||||
</div>
|
||||
) : e.training_type_id ? (
|
||||
<div
|
||||
style={{
|
||||
display:'inline-flex',
|
||||
alignItems:'center',
|
||||
justifyContent:'center',
|
||||
width:18,
|
||||
height:18,
|
||||
borderRadius:9,
|
||||
background:'#EF9F27',
|
||||
color:'white',
|
||||
fontSize:10,
|
||||
fontWeight:700,
|
||||
flexShrink:0
|
||||
}}
|
||||
title="Trainingstyp zugeordnet, aber nicht evaluiert (kein Profil konfiguriert)"
|
||||
>
|
||||
⚠
|
||||
</div>
|
||||
) : (
|
||||
<div
|
||||
style={{
|
||||
display:'inline-flex',
|
||||
alignItems:'center',
|
||||
justifyContent:'center',
|
||||
width:18,
|
||||
height:18,
|
||||
borderRadius:9,
|
||||
background:'#888780',
|
||||
color:'white',
|
||||
fontSize:10,
|
||||
fontWeight:700,
|
||||
flexShrink:0
|
||||
}}
|
||||
title="Kein Trainingstyp zugeordnet"
|
||||
>
|
||||
✕
|
||||
</div>
|
||||
)}
|
||||
<div style={{fontSize:14,fontWeight:600}}>{e.activity_type}</div>
|
||||
{e.training_category && categories[e.training_category] && (
|
||||
<div style={{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user