[Hold Auth#99695 Web-E#55719] Render the over limit approver and approval limit policy change logs report actions - #99695
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
The rest look good! |
This fires the first time an over-limit approver is set for that approver. In this case the admin set "Report amount" to "$100.00" and "Additional approver" to " |
|
Ohh if this is the first time, then I wonder if we should use |
|
Yes — Suggested copy
The closest precedent is The one caveat: the sibling approval-workflow messages say Why the branch is safe to key on
changedOverLimitForwardsTo: ({member, approver, limit, previousApprover, previousLimit}) => {
if (!previousApprover) {
return `set the approval workflow for ${member} to forward reports over ${limit} to ${approver}`;
}
let text = `changed the approval workflow for ${member} to forward reports over ${limit} to ${approver}`;
text += previousLimit ? ` (previously forwarded reports over ${previousLimit} to ${previousApprover})` : ` (previously forwarded to ${previousApprover})`;
return text;
},
|
|
@rayane-d then I think we should do this:
|
|
Thanks for the review! I've updated the copy accordingly. |
Explanation of Change
In Workflows, an admin can add a second approver for reports above a set amount. For example, reports over $100 also need Someone's approval. BE now posts a message in #admins when that approver or that amount changes, using two new report actions.
This PR renders them in NewDot.
POLICYCHANGELOG_UPDATE_OVER_LIMIT_FORWARDS_TOPOLICYCHANGELOG_UPDATE_APPROVAL_LIMITset the approval workflow for approver@test.com to forward reports over $100.00 to second-approver@test.comchanged the approval workflow for approver@test.com to forward reports over $200.00 (previously $100.00)changed the approval workflow for approver@test.com to forward reports over $200.00 to new-second-approver@test.com (previously forwarded to second-approver@test.com)changed the approval workflow for approver@test.com to forward reports over $300.00 to second-approver@test.com (previously forwarded reports over $200.00 to new-second-approver@test.com)changed the approval workflow for approver@test.com to stop forwarding reports over $300.00 (previously forwarded to second-approver@test.com)Fixed Issues
$ https://github.com/Expensify/Expensify/issues/668648
PROPOSAL:
Tests
member@test.com,approver@test.com,second-approver@test.com, andnew-second-approver@test.comas members.member@test.comand addapprover@test.comas the approvermember@test.com.100and Additional approver tosecond-approver@test.com. Save.Reports above $100.00 forward to second-approver@test.com.set the approval workflow for approver@test.com to forward reports over $100.00 to second-approver@test.com200, and save. Confirm the newest messageis:
changed the approval workflow for approver@test.com to forward reports over $200.00 (previously $100.00)new-second-approver@test.com, and save. Confirm the newest message is:changed the approval workflow for approver@test.com to forward reports over $200.00 to new-second-approver@test.com (previously forwarded to second-approver@test.com)300and Additional approver tosecond-approver@test.comin one save. Confirm exactly one message is added:changed the approval workflow for approver@test.com to forward reports over $300.00 to second-approver@test.com (previously forwarded reports over $200.00 to new-second-approver@test.com)changed the approval workflow for approver@test.com to stop forwarding reports over $300.00 (previously forwarded to second-approver@test.com)Screen.Recording.2026-08-28.at.9.08.30.PM.mov
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari