-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Governance Dashboard display of Over-Allocated proposals #346
Conversation
✅ Deploy Preview for cheery-moxie-4f1121 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK on the changes
maybe saying that a proposal is both "passing" and "not funded" is a bit strange?
Perhaps we could add a third translation variable for "Over Budget" / "Over Allocated"? Trying to show the user that the proposal is valid and successfully passing, but too large to receive from the budget at current vote priority. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
BTW, this built fine on Netlify, GitHub is just being weird. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-tACK fa644c6
Abstract
This PR simply fixes (alongside making a little more obvious) when proposals are Over-Allocated, thus ineligible to receive their proposal payment for the given cycle.
MPW properly displays "Not Funded" on such proposals now, as well as displaying the "Passing" text in Orange to highlight the difference better.
To save a few CPU cycles and excess code, I removed the repetitive
parseInt(MonthlyPayment)
for a single conversion and re-used it in the same places.These calculations are a 1:1 match with the PIVX.org website.
Before PR

After PR

Testing
To test this PR, it's suggested to attempt these user flows, or variations of these:
If any errors are found, the PR works unexpectedly, or you have viable suggestions to improve the UX or functionality of the PR, let me know!