-
Notifications
You must be signed in to change notification settings - Fork 56
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
[CMS] feat: add proposal spending summary and details #2032
Conversation
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, looks great for a first pass!
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.
Code looks good mate, nice work, added 2 inline comments
}; | ||
|
||
const getDetailsData = (invoices) => { | ||
const formattedData = |
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.
This function can be a one liner :)
proposalDetails: null | ||
}; | ||
|
||
// const normalizeProposalBilling = (proposals) => |
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.
comments
// }, {}); | ||
|
||
const proposalBilling = (state = DEFAULT_STATE, action) => { | ||
return action.error |
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.
Also here no need for the return I guess
Needs a rebase, but decred/politeia#1224 has been merged to final testing/review may occur. |
2949f08
to
993c0fe
Compare
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, working great. Looks awesome
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.
ACK
This PR closes #2019
Solution description
I added two new routes:
/admin/proposalsbilling
and/admin/proposalsbilling/:token
that consume data fromspendingsummary
andspendingdetails
endpoints. Created a new normalized redux state branch calledproposalBilling
to be the single source of truth for this data. This PR is a WIP and will be imrpoved before merged.Dependencies
Depends on decred/politeia#1224
UI Changes Screenshot
Summary
Details