Restyles the proposals table used in Governance & History page according the new designs (History page is not yet done)
Adds logic for ✅❌icons in the vote bar - previously it was one set of icons, now we have two sets. See slack discussion
Refactors <Tag> element a bit so the styles can be done inside the component based on the type ("primary" or "secondary")
Adds some temporary testing capabilities so we don't need to manually play with proposals locally to get them in the desired state (I will remove it before merge)
How to test it
Go to the src/pages/proposals/proposals.tsx
uncomment lines 50 -72
comment out line 76 (const sortedProposals = openProposalsSelector(proposals);)
Go to the src/pages/proposals/test-proposals.json and change data to desired state. Most important fields:
type can be "primary" or "secondary"
voterState can be 0 (Unvoted), 1 (Voted for), 2 (Voted against)
Closes #461
What does this change?
<Tag>
element a bit so the styles can be done inside the component based on the type ("primary" or "secondary")How to test it
src/pages/proposals/proposals.tsx
const sortedProposals = openProposalsSelector(proposals);
)src/pages/proposals/test-proposals.json
and change data to desired state. Most important fields:type
can be "primary" or "secondary"voterState
can be 0 (Unvoted), 1 (Voted for), 2 (Voted against)open
,executed
,yea
,nay
- votes distribution