pancake-frontend
pancake-frontend copied to clipboard
feat: Don't fetch all votes in proposal overview page
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
andscores_total
to Proposal interface - Enhanced
getVotes
function with sorting options - Introduced
getNumberOfVotes
andgetAllVotes
functions for fetching votes - Improved UI display of votes in
Votes.tsx
andResults.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}