Poll deadline / countdown timer #4

Open
opened 2026-04-29 03:55:15 +00:00 by TopherMayor · 0 comments
Owner

Problem

The polls are always open — no sense of urgency or finality. The bachelor party needs a hard close time.

Proposed Solution

  • Add an optional pollDeadline timestamp in votes.json
  • Display a countdown timer in the status bar: "⏱ 2d 14h left to vote"
  • When <1 hour remains, turn the countdown amber
  • When <10 min, turn red and pulse
  • When time expires, auto-close polls and show a "Results are in!" banner
  • Admin can set/clear deadline via API or admin panel

Acceptance Criteria

  • Countdown displays in status bar when deadline is set
  • Color changes at <1hr (amber) and <10min (red)
  • Polls auto-close when deadline passes
  • Clear "Results" view replaces voting UI after close
## Problem The polls are always open — no sense of urgency or finality. The bachelor party needs a hard close time. ## Proposed Solution - Add an optional `pollDeadline` timestamp in `votes.json` - Display a countdown timer in the status bar: "⏱ 2d 14h left to vote" - When <1 hour remains, turn the countdown amber - When <10 min, turn red and pulse - When time expires, auto-close polls and show a "Results are in!" banner - Admin can set/clear deadline via API or admin panel ## Acceptance Criteria - [ ] Countdown displays in status bar when deadline is set - [ ] Color changes at <1hr (amber) and <10min (red) - [ ] Polls auto-close when deadline passes - [ ] Clear "Results" view replaces voting UI after close
TopherMayor added the enhancementbackendpriority/low labels 2026-04-29 03:55:15 +00:00
TopherMayor added this to the UI/UX Overhaul v1.0 milestone 2026-04-29 03:56:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TopherMayor/cabo-voting-app#4