feat: show target_date in goal list next to target value
All checks were successful
Deploy Development / deploy (push) Successful in 44s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

- Start value already showed start_date in parentheses
- Now target value also shows target_date in parentheses
- Consistent UX: both dates visible at their respective values
This commit is contained in:
Lars 2026-03-28 14:50:34 +01:00
parent cb72f342f9
commit d7aa0eb3af

View File

@ -695,6 +695,11 @@ export default function GoalsPage() {
<div>
<span style={{ color: 'var(--text2)' }}>Ziel:</span>{' '}
<strong style={{ color: catInfo.color }}>{goal.target_value} {goal.unit}</strong>
{goal.target_date && (
<span style={{ fontSize: 12, color: 'var(--text3)', marginLeft: 4 }}>
({dayjs(goal.target_date).format('DD.MM.YY')})
</span>
)}
</div>
</div>