Add Governance Vote Calendar page#145
Open
mo-anon wants to merge 5 commits into
Open
Conversation
A monthly calendar of Curve DAO governance proposals at /vote-calendar. Each 7-day voting window renders as a bar spanning its days, laid out into lanes per week, with a detail modal (tally, quorum/support progress, links). - Lanes are ordered by earliest pass date so the soonest-resolving vote sits on top, including bars spilling in from previous weeks. - No lane cap: every overlapping vote renders (the week grows to fit) instead of collapsing into a "+N more this week" overflow. - Status palette: amber=active, blue=passed, green=executed, red=failed, with bars matching the legend dots and a clear ink-ring hover. - Adds a "Vote Calendar" tab to the shared Visualizations topbar. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Thicker 3px ink ring, deeper darken, and a larger offset shadow so the hovered vote stands out clearly against neighbouring bars. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Render weekly gauge weight voting epochs (Thursday 00:00 UTC boundaries) as a pinned violet row above the proposal lanes. Clicking an epoch opens a modal with a themed Chart.js bar chart of the top 15 gauges plus a scrollable table of all gauges >= 0.01% (with a "show all" toggle for the long tail). - Precompute historical distributions: scripts/sync-gauge-epochs.mjs sweeps every gauge's weight_history and writes static/gauge-epochs.json (yarn sync-gauge-epochs). - Ongoing epoch reads live on-chain gauge_relative_weight from the GaugeController via viem multicall over free public RPCs (no keys), cached in localStorage for 10m, with a static-file fallback on failure. - Month/year picker on the nav label; remove the per-proposal Gov forum link. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2652279 to
c181d79
Compare
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.
Summary
Adds a Governance Vote Calendar at
/vote-calendar— a monthly calendar of Curve DAO governance proposals. Each proposal's 7-day voting window renders as a bar spanning its days, packed into lanes per week, with a click-through detail modal (vote tally, quorum/support progress bars, Etherscan/IPFS/forum links). A "Vote Calendar" tab is added to the shared Visualizations topbar.Layout & behaviour
start_date, not the week-clipped column).Visual
Test plan
/vote-calendarloads and renders the current month🤖 Generated with Claude Code