-
Notifications
You must be signed in to change notification settings - Fork 1
[MPDX-9536, MPDX-9570, MPDX-9572, MPDX-9573] - PDS fix calculations #1774
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
base: main
Are you sure you want to change the base?
Changes from all commits
6c5b159
a7cc3b4
43c1059
2057ac4
6ab40c7
4136ea8
ead7b68
c095002
b2c201c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,19 +116,25 @@ | |
| { | ||
| id: 'credit-card-fees', | ||
| category: t('Credit Card Fees'), | ||
| formula: t('(Subtotal + Attrition) × {{rate}}', { | ||
| rate: percentageFormat(constants.creditCardFeeRate, locale), | ||
| }), | ||
| formula: t( | ||
| '(Subtotal + Attrition) ÷ (1 − {{rate}}) − (Subtotal + Attrition)', | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
**[High] Long gross-up formula labels will clip in the data grid.** — sev 8.0/10
Flagged by: UX (8.0), Architecture (rendering-contract confirmation). The new formula here grows from ~30 chars to ~58 chars, and the Assessment formula at line 133 reaches ~100 chars. The category cell at Cheapest fix (one line per non-PR container file): // in SalarySection.tsx and OtherSection.tsx
<StyledGrid
// ...existing props
getRowHeight={() => 'auto'}
// ...
/>Alternative: shorten the in-PR formula labels — see Dismissed Findings F6 in the PR body (author has already pushed back on rewording for this PR scope; the container-level fix is the lower-friction path). |
||
| { | ||
| rate: percentageFormat(constants.creditCardFeeRate, locale), | ||
| }, | ||
| ), | ||
| amount: totals.creditCardFees, | ||
| testId: 'other-credit-card-fees', | ||
| bold: true, | ||
| }, | ||
| { | ||
| id: 'assessment', | ||
| category: t('Assessment'), | ||
| formula: t('(Subtotal + Credit Card Fees + Attrition) × {{rate}}', { | ||
| rate: percentageFormat(constants.adminRate, locale), | ||
| }), | ||
| formula: t( | ||
| '(Subtotal + Attrition + Credit Card Fees) ÷ (1 − {{rate}}) − (Subtotal + Attrition + Credit Card Fees)', | ||
|
wjames111 marked this conversation as resolved.
|
||
| { | ||
| rate: percentageFormat(constants.adminRate, locale), | ||
| }, | ||
| ), | ||
|
Check warning on line 137 in src/components/HrTools/PdsGoalCalculator/SupportItem/otherBreakdown.tsx
|
||
|
wjames111 marked this conversation as resolved.
|
||
| amount: totals.assessment, | ||
| testId: 'other-assessment', | ||
| bold: true, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.