Fix/proposal countdown#273
Merged
Merged
Conversation
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.
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