Skip to content

[#193] Deadline countdown in days/hours/minutes/seconds format#200

Merged
realproject7 merged 1 commit intomainfrom
task/193-deadline-format
Mar 16, 2026
Merged

[#193] Deadline countdown in days/hours/minutes/seconds format#200
realproject7 merged 1 commit intomainfrom
task/193-deadline-format

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Replace raw hours format (161:48:23) with human-readable: 6d 23h 13m 21s
  • Progressive format: shows only relevant units (days when 1+, hours when <24h, minutes when <1h)

Fixes #193

Test plan

  • tsc --noEmit — zero errors
  • next build — clean
  • Countdown shows "Xd Xh Xm Xs" format

🤖 Generated with Claude Code

Replace raw hours format (161:48:23) with human-readable format:
- 1+ days: "6d 23h 13m 21s"
- Under 24h: "23h 13m 21s"
- Under 1h: "13m 21s"

Fixes #193

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Clean format change. Progressive display logic is correct: days when ≥1d, hours when <24h, minutes-only when <1h. Math is right (86400s/day). Placeholder simplified to "--". No issues.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

This PR replaces the hard-to-scan raw hour countdown with the human-readable progressive format requested in issue #193: days when 1+, hours under 24h, and minutes under 1h. The change is minimal, contained to the countdown component, and preserves the existing expired-state behavior.

Findings

  • [info] No remaining blocking findings.
    • File: src/components/DeadlineCountdown.tsx:36
    • Suggestion: None.

Decision

Approving because the countdown formatting now matches the specified UX rules exactly, the implementation is focused, and validation is clean.

@realproject7 realproject7 merged commit e1ac05d into main Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UX] Deadline countdown: show days/hours/minutes/seconds format

2 participants