-
Notifications
You must be signed in to change notification settings - Fork 2k
A4A: Add Timeframe column with per site estimated commissions #105558
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
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
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.
I wasn't able to test this as I don't have any data on my account.
But I have left some comments. Please let me know your thoughts!
|
||
// Get estimated payout directly from current quarter site data | ||
const estimatedPayout = | ||
woopaymentsData?.data?.estimated?.current_quarter?.sites?.[ siteId ]?.payout ?? 0; |
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.
I think we also need to include the previous quarter when applicable?
|
||
export const CommissionsPaidColumn = memo( ( { payout }: { payout: number | null } ) => { | ||
return payout ? formatCurrency( payout, 'USD', { stripZeros: true } ) : <Gridicon icon="minus" />; | ||
} ); | ||
CommissionsPaidColumn.displayName = 'CommissionsPaidColumn'; |
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.
Thanks for fixing this! 👍
33eed65
to
ffe77f6
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.
Thanks for addressing my comments.
LGTM now 👍
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/20041057 Some locales (Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @tiagonoronha for including a screenshot in the description! This is really helpful for our translators. |
Part of https://linear.app/a8c/issue/A4A-1525/frontend-add-timeframe-commissions-column
Proposed Changes
Why are these changes being made?
Testing Instructions
Pre-merge Checklist