feat: Add real-time bounty countdown timer with urgency indicators (Closes #826)#1251
Closed
sepulchralvoid666 wants to merge 1 commit into
Closed
Conversation
- New BountyCountdown component with card and detail variants - Real-time updates every second with useEffect + setInterval - Color-coded urgency: normal (muted), warning (<24h, yellow), urgent (<1h, red pulse) - Shows 'Expired' when deadline passes - Card variant: compact format (2d 5h 30m) with status dot - Detail variant: full format (05:30:15) with urgency badges - Integrated into BountyCard (replaces Clock + timeLeft) and BountyDetail (replaces static deadline display) Closes SolFoundry#826 **Wallet:** 2JHa4QQWNV7AGSGsVeX1cwjZtFcmTTomb1TrJmQthoh3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds a real-time countdown timer component for bounty deadlines with visual urgency indicators.
New Component:
BountyCountdowncard(compact) anddetail(full display)useEffect+setIntervalURGENTbadgeExpiredlabel2d 5h 30mformat with status dot05:30:15countdown withd/h/m/slabels and urgency badgesIntegration
Clockicon +timeLeft()withBountyCountdown variant="card"BountyCountdown variant="detail"How to test
ExpiredlabelCloses #826
Wallet: 2JHa4QQWNV7AGSGsVeX1cwjZtFcmTTomb1TrJmQthoh3