v9d Phase 2d: Vitals Module Refactoring (Baseline + Blood Pressure) #22
|
|
@ -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