Showcase orchestrator voting activity in the UI#457
Conversation
- Introduced a new component to present a list of orchestrators with their voting statistics, including proposals voted on, votes casted, recent votes, and voting turnout.
- Added Cube.js client for data fetching with new utility functions for querying voting history. - Introduced VotingHistoryView component to display voting statistics, including proposals voted on and voting turnout. - Updated package.json and pnpm-lock.yaml to include Cube.js client dependencies.
- Exported VoterSummary type for better type management in voting components. - Integrated VotingHistoryView into the account layout for displaying voting statistics. - Added new VotingHistory page to handle routing and data fetching for user voting history. - Updated account layout to include a new tab for voting history, improving user navigation. - Implemented utility functions for processing and summarizing voting data from Cube.js.
- Added OrchestratorVotingList component to display voting data for orchestrators. - Implemented tabbed interface for Yield Overview and Voting History sections. - Integrated voter summary processing functions to aggregate voting data. - Updated getStaticProps to fetch and pass initial voter data to the page.
- Adds treasury proposals voting overview
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
894848d to
3e5ac11
Compare
- Changed the method of accessing raw data from Cube.js API to use a function call. - Simplified response validation in getStaticProps by removing unnecessary checks and directly using the response for voter summaries.
- Fetches voting metrics (voted/eligible) from Cube.js using LivepeerVoteProposals - Adds an interactive Stat card to OrchestratingView with a visual progress bar - Displays participation rate percentage and integrated link to account history - Adds utility to the Cube query generator
…nology - Moved to a friendlier "Sky & Tomato" color scheme to keep voting separate from our main green brand accent. - Standardized labels to "For / Against / Abstain" everywhere, including the global transaction feed. - Rebuilt the vote table using our core data table component for a consistent look. - Made it easier to explore voter history with new dedicated buttons, better tooltips, and subtle animations. - Cleaned up the layout by stripping out redundant titles and shrinking fonts where they were getting too loud. - Polished the details: added specific styling for "No reason provided" and refined how voter profiles are we showing voter names and txn links.
- Eliminated the agent log useEffect that was posting debug information. - Streamlined imports by removing unnecessary useEffect import.
…List - Changed badge colors to use a "Sky & Tomato" color scheme for better visual distinction. - Updated badge labels from "Yes/No" to "For/Against" to standardize terminology across the application.
9251e9e to
0444555
Compare
Remove debug query which was accidentally added in #529.
Ensures that the linking behavoir for the other events is similar to the voting behavoir. Also create an extra ipfs helper so code is cleaner.
There was a problem hiding this comment.
@ECWireless I’ve reviewed the PR and, aside from a few minor improvements around queries and caching, it looks good to merge if you need it before the watercooler. I’ve approved it and am happy to address those improvements in a follow-up PR. Otherwise, I will provide suggestions tomorrow morning and we can merge it tomorrow. Please let me know your preference.
If you merge this please don't forget to co-author the people mentioned in #457 (comment). Thanks! 🙏🏻
@rickstaa addressing in this PR and merging tomorrow works for me! |
Nevermind, planning to merge this in a couple hours unless you say otherwise @rickstaa . |
I’m a bit slow since I’m out of the office and fitting this in between other things. I don’t see any major blockers, just a few suggestions for improvements on my side:
However don't let these be blocking your release you can also discuss or apply later. You can decide how to handle these add the right co-autors #457 (review) and merge. Thanks! |
* refactor: align folder structure with existing conventions Reorganized the treasury/poll directory so related components are grouped closer together and following the folder patterns already used in the codebase. * chore: fix incorrect import
Co-authored-by: Rick Staa <rick.staa@outlook.com> Co-authored-by: thebeyondr <19380973+thebeyondr@users.noreply.github.com> Co-authored-by: jipstavenuiter <jipstavenuiter@gmail.com> Co-authored-by: liamdoyle95 <liamdoyle95@users.noreply.github.com> Co-authored-by: pyor-shrey <pyor-shrey@users.noreply.github.com> Co-authored-by: Roaring30s <roaring30s@users.noreply.github.com>
Regenerate subgraph bindings to remove debug statements introduced in #457.
Regenerate subgraph bindings to remove debug statements introduced in #457.
Description
Surface orchestrator governance activity so stakeholders can see how they vote over time and per proposal.
Type of Change
Related Issue
Closes #310
Closes #464
xxx## Changes Made
Governance visibility (core of #310)
Voting Widget Formatting (fixes #464)
SectionLabel) and layout.Refactors
Fixes
Testing
Screenshots (if applicable)
Checklist