Skip to content

Show estimated vs actual Pomodoro sessions on card ⏱️ #496

Description

@anoopcodehack

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 🎯

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions