Add policy change log#89561
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@luacmartins We have eslint issue, could you resolve it? |
|
Lint's also failing |
|
Updated |
|
@cead22 updated, ready for review |
|
Merging since @JS00001 had already approved |
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.3.90-0 🚀
Bundle Size Analysis (Sentry): |
|
Deploy Blocker #92293 was identified to be related to this PR. |
|
Deploy Blocker #92295 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.90-3 🚀
|
| if (!allSameVerb) { | ||
| const parts = phrases.map((phrase) => `${getSpendRulePhraseVerbWord(translate, phrase.verb)} ${phrase.bodyWithAdjective}`); | ||
| return getSpendRuleJoinFilters(parts); | ||
| } |
There was a problem hiding this comment.
We should have considered to re-use common verbs/nouns for adjacent phrases. Fixed in #92977
Explanation of Change
Adds policy change logs when creating/updating/deleting ecard rules.
Fixed Issues
$ #86527
Tests
Pre-requisite: an account with expensify card and rules enabled
Creating a spend rule
Merchant
Spend category
Max amount
Mixed
Updating a spend rule
Change restriction type (block/only allow)
Change scope (cards)
Change merchant restriction
Change spend category restriction
Change max amount
Mixed
Removing a spend rule
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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