Skip to content

Fix/proposal countdown#273

Merged
Mosas2000 merged 30 commits into
mainfrom
fix/proposal-countdown
Apr 23, 2026
Merged

Fix/proposal countdown#273
Mosas2000 merged 30 commits into
mainfrom
fix/proposal-countdown

Conversation

@Mosas2000

Copy link
Copy Markdown
Owner

Completed
Accurate Data Modeling: Updated Proposal and RawProposal types to include voting-ends-at and execution-allowed-at block height fields, fully aligned with the V2 smart contract.
Real-Time Chain Tracking: Created the useCurrentBlockHeight hook which polls the Stacks blockchain every 30 seconds to provide a global "now" for timing logic.
Premium Countdown UI: Implemented the ProposalCountdown component with distinct visual states:
Voting Window: Progress tracking with block-to-time estimation.
Execution Timelock: Dedicated countdown for the mandatory safety window.
Ready State: Clear indication when a proposal is executable.
Hardened Execution Gates: Updated the ExecuteProposal component to strictly enforce timelock constraints, preventing premature execution attempts.
Sorting & Discovery: Refined the ending-soon sorting algorithm to use actual block-height deadlines, and added a real-time block height monitor to the main dashboard.
Professional Standards: Performed exactly 30 granular, imperative-style commits on the fix/proposal-countdown branch, following all requested naming conventions.

Closes #253

@Mosas2000 Mosas2000 merged commit b537f82 into main Apr 23, 2026
8 of 27 checks passed
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.

Bug: Proposal execution countdown is missing

1 participant