pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

feat: Don't fetch all votes in proposal overview page

Open memoyil opened this issue 7 months ago • 2 comments


PR-Codex overview

The focus of this PR is to enhance the voting system by adding scores and total scores for proposals, improving vote fetching with sorting options, and optimizing the display of votes in the UI.

Detailed summary

  • Added scores and scores_total to Proposal interface
  • Enhanced getVotes function with sorting options
  • Introduced getNumberOfVotes and getAllVotes functions for fetching votes
  • Improved UI display of votes in Votes.tsx and Results.tsx
  • Optimized vote fetching and display in Overview.tsx

The following files were skipped due to too many changes: apps/web/src/views/Voting/Proposal/Overview.tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Jul 23 '24 10:07 memoyil