feat: Add dynamic Bounty Countdown Timer (T1 Bounty) (#826)#1260
feat: Add dynamic Bounty Countdown Timer (T1 Bounty) (#826)#1260messiawrq-spec wants to merge 1 commit into
Conversation
Resolves SolFoundry#826. - Created `BountyCountdown` component that updates every minute without page refresh. - Shows days/hours/minutes remaining. - Applies visual urgency colors (`text-amber-500` under 24h, `text-rose-500` under 1h). - Renders `Expired` in bold red when deadline passes. - Integrated into `BountyCard` and `BountyDetail`.
|
This still misses the real-time part of #826 in the actual rendered UI. The PR adds {timeLeft(bounty.deadline)}That value is only recomputed when the parent component renders, so the countdown will not tick down on its own without a page refresh or unrelated state update. The visible card/detail UI also does not use the To satisfy the acceptance criteria, the displayed deadline in both |
Claims and resolves #826 (T1 Bounty).
BountyCountdowncomponent using ReactuseStateandsetIntervalto tick down every minute without full-page reloads.Expiredonce the deadline is surpassed.timeLeftoutput acrossBountyCardandBountyDetailwith this new real-time component.