Description
This is a UI/UX issue replacing the text-only countdown in components/active-bets/ cards with a 24px progress ring that smoothly ticks and shifts hue from blue to amber as the market nears close.
Requirements and Context
- Use SVG
stroke-dasharray driven by elapsed/total
- Single rAF for all visible rings (instead of per-card)
- Reduced-motion path renders a static segment
- Must be secure, tested, and documented
- Should be efficient and easy to review
Suggested Execution
- Fork the repo and create a branch
git checkout -b feature/active-bet-progress-ring
- Implement changes
- Add
components/active-bets/progress-ring.tsx
- Edit
components/active-bets/ card files
- Test and commit
- Performance test with 50 cards visible
- Cover edge cases (markets ended in the past)
- Include test output and notes in the PR
Example commit message
feat: progress ring for active bet countdown
Acceptance Criteria
Guidelines
- WCAG 2.1 AA, non-color cues alongside hue shift
- Clear documentation and inline comments
- Timeframe: 96 hours
Description
This is a UI/UX issue replacing the text-only countdown in
components/active-bets/cards with a 24px progress ring that smoothly ticks and shifts hue from blue to amber as the market nears close.Requirements and Context
stroke-dasharraydriven by elapsed/totalSuggested Execution
components/active-bets/progress-ring.tsxcomponents/active-bets/card filesExample commit message
Acceptance Criteria
Guidelines