Repository navigation
fix: System message with no tag is shown - #86864
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@brunovjk I resolved conflicts |
|
@truph01 If I delete a tag and then go back to a rule created using that tag, the tag still appears as selected, even though it no longer exists as an option to select. The rule continues to use the deleted tag; Do you think this is still within the scope of this PR? Screen.Recording.2026-07-22.at.11.42.20.movThanks. |
|
@brunovjk I asked here #82690 (comment) |
|
@truph01 any updates based on my comment above? |
|
@truph01 any updates on this one? |
|
@truph01 any updates on this one? |
@brunovjk I resolved your concern via ddcaad3
@luacmartins About this one, which approach do you prefer? I think calling |
|
Is that comment true? Don't we load the tag list with the policy? |
|
@truph01 bump |
1 similar comment
|
@truph01 bump |
@luacmartins No. The tags need to be fetched via the |
|
Ok, where are we planning on calling |
@luacmartins I plan to call it there: App/src/pages/workspace/rules/PolicyRulesPage.tsx Lines 68 to 74 in 1cdb067 |
|
Hmm then I think we should just add that data to the response of |
|
I don't think we need to hold this PR on the BE given it's a small edge case. |
|
🚧 luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.4.75-0 🚀
|
|
🤖 Help site changes are required. Draft PR: #100743 This PR changes user-visible Merchant Rules behavior that the help site described inaccurately: a rule that applies a deleted tag now skips that tag instead of showing or applying an empty value, and the tag picker in a rule now only lists tags valid under the levels already selected. What the docs PR changes —
How the change was mapped to the docs
Article was written against Label verification caveat: the live UI check didn't run — the web test session never rendered the app (blank page, no accessibility nodes), so the labels Merchant, Add merchant rule, Save rule, and Tag were verified against the strings in @truph01, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
@truph01 @brunovjk @luacmartins Could you please confirm if this is an issue that Merchant rule can be saved without applying any updates & tag row is shown
Actual Result: Merchant rule can be saved without applying any updates. Tag row is shown when there are no added tags in workspace even while resaving. Bug7256047_1789043610576.Screenrecorder-2026-09-10-17-58-36-958.mp4 |
|
I think that's fine for now, although we shouldn't show the rule if it's not applying any updates |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.75-3 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.75-3 🚀
Bundle Size Analysis (Sentry): |
Follow-up to Expensify#86864. Co-authored-by: truph01 <truph01@users.noreply.github.com>
Explanation of Change
In this PR, rules keep their original tag values even after the tag is deleted. Instead, the frontend skips displaying the tag when it no longer exists in the policy:
MerchantRulesSection:getRuleDescriptionskips the tag line in the rule summary if the tag was deleted from the policy.MerchantRulePageBase: The tag field in the rule edit page shows empty (undefined) instead of the deleted tag name.Fixed Issues
$ #82690
PROPOSAL: #82690 (comment)
Tests
Test 1: Rule will not apply if the tag was deleted.
Precondition:
Test 2: The tag is not displayed in the merchant rule after the tag is deleted
Offline tests
QA Steps
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