Show estimated vs actual Pomodoro sessions on card ⏱️
File: client/src/components/Board/TaskCard.jsx
Estimate field exists but never compared
to actual pomodoros spent 💀 fr!!
Fix: show comparison on card:
const estimateToPomodoros = (estimate) => {
const map = {
'30m': 1, '1h': 2,
'2h': 4, '4h': 8, '1d': 16
}
return map[estimate] || null
}
const estimated = estimateToPomodoros(task.estimate)
const actual = task.pomodoroCount || 0
{estimated && (
<span className={text-[10px] ${actual > estimated ? 'text-red-400' : 'text-green-400'}}>
🍅 {actual}/{estimated} sessions
)}
~12 lines! estimate + pomodoroCount exist ✅
No backend needed 🎯
Show estimated vs actual Pomodoro sessions on card ⏱️
File: client/src/components/Board/TaskCard.jsx
Estimate field exists but never compared
to actual pomodoros spent 💀 fr!!
Fix: show comparison on card:
const estimateToPomodoros = (estimate) => {
const map = {
'30m': 1, '1h': 2,
'2h': 4, '4h': 8, '1d': 16
}
return map[estimate] || null
}
const estimated = estimateToPomodoros(task.estimate)
const actual = task.pomodoroCount || 0
{estimated && (
<span className={
text-[10px] ${actual > estimated ? 'text-red-400' : 'text-green-400'}}>🍅 {actual}/{estimated} sessions
)}
~12 lines! estimate + pomodoroCount exist ✅
No backend needed 🎯