Skip to content

feat: add bounty countdown timer component (Bounty #826)#920

Open
liqiuniu wants to merge 3 commits intoSolFoundry:mainfrom
liqiuniu:countdown-timer
Open

feat: add bounty countdown timer component (Bounty #826)#920
liqiuniu wants to merge 3 commits intoSolFoundry:mainfrom
liqiuniu:countdown-timer

Conversation

@liqiuniu
Copy link
Copy Markdown

@liqiuniu liqiuniu commented Apr 5, 2026

Summary

Adds a real-time countdown timer component for bounty deadlines. Addresses Bounty #826.


Components Added

` (new file)

Component Description
` Full countdown display with days/hours/minutes/seconds
` Compact variant for bounty cards

Features

  • Real-time updates 鈥?Refreshes every second without page reload
  • Visual urgency indicators:
    • Normal: Gray text
    • Warning (< 24h): Amber/yellow text
    • Urgent (< 1h): Red text with pulse animation
    • Expired: Shows "Expired" label
  • Two display modes:
    • Full: 2d 05h 30m 15s (for detail page)
    • Compact: 2d 5h or 5h 30m or <1h (for cards)

Pages Updated

Component Change
` Uses ` for deadline display
` Uses ` in sidebar info

Acceptance Criteria

  • Timer displays on bounty cards and detail page
  • Updates without page refresh (every second)
  • Visual urgency indicators (warning < 24h, urgent < 1h)

Testing

  1. View any bounty with a deadline
  2. Observe countdown updating in real-time
  3. Check color changes as deadline approaches

Related

Bounty #826 鈥?#826

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.

1 participant