Repository navigation
[CP Staging] Fix invoice field visibility, count, and name collision issues - #100850
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.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @ShridharGoel for chipping in. Changes LGTM too.
Just that it seems strange to prevent same name for report and invoice.
@mollfpr Is this a BE limitation or is this intentional?
[CP Staging] Fix invoice field visibility, count, and name collision issues (cherry picked from commit 386d199) (cherry-picked to staging by mountiny)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny 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! 🧪🧪
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.75-2 🚀
|
|
🤖 Yes — help site changes are required. Draft PR: #100873 Two of the three fixes here change what users see, and the help site has no article covering invoice fields at all.
What the docs PR does
UI labels verified against a live Control workspace on webEvery label in the articles was checked in the running app, not inferred from source:
Articles follow @mollfpr, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
Deploy Blocker #100876 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.75-3 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.76-0 🚀
|
|
🤖 Docs PR already exists — #100873 (draft, What changed since my last comment: deploy blocker #100876 reports that the duplicate-name error names the field type of the page you're on, not the field that actually holds the name. My articles quoted those exact strings, so they would have gone stale the moment that blocker is fixed. I reworded them to describe the error generically and tell users to check both their invoice fields and their report fields — accurate whichever way the copy lands. Why help site changes are required, and what the PR does
Files:
UI labels verified against a live Control workspace on web: More features > Earn > Invoices; the workspace Invoices page and its Invoice fields toggle; the Add field button with Name and Type; types Text, Date, List; and One note on the title: automation prefixed it with @mollfpr, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 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.76-1 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Fixed Issues
$ #100790
$ #100772
$ #100756
PROPOSAL:
Tests
Fix badge is displayed for paid invoices in LHN when the report field is missing
Fixbadge is not displayed for paid invoices in LHNOn Copy settings RHP, Invoices menu item does not show "1 invoice fields"
Precondition:
→ Invoices menu item shows "1 invoice fields".
Invoice field disappears after creating the same report field with the same name
Precondition:
Offline tests
QA Steps
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
Fix badge is displayed for paid invoices in LHN when the report field is missing
Fix.100790.mp4
On Copy settings RHP, Invoices menu item does not show "1 invoice fields"
Invoice field disappears after creating the same report field with the same name
Fix.100756.mp4