Repository navigation
Show the stored name of every invoice and name new invoices Invoice #<ID> - #106155
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…oice-name # Conflicts: # src/libs/ReportNameUtils.ts # tests/unit/ReportNameUtilsTest.ts
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 cead22 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/cead22 in version: 9.5.56-0 🚀
|
|
No help site update needed — this fixes invoices displaying a computed title instead of their saved name, without adding a workflow or making any existing article sentence incorrect. |
|
Deploy Blocker #108417 was identified to be related to this PR. |
|
Deploy Blocker #108464 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.5.56-2 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Invoices sent from New Expensify showed a computed name like
<payer> owes <amount>instead of the name stored on the invoice, unless they were linked to a bill.Now we show the stored
reportNamefor every invoice in the Inbox, the report header, the report preview and Search. We only fall back to the computed name when the stored name is empty. Existing invoices sent from New Expensify switch to their stored name too, usuallyInvoice <date>or the policy's title formula.New invoices get the optimistic name
Invoice #<short reportID>, for exampleInvoice #R00SK9Qpc9BY, which matches the name the server stores. We build it withgetBase62ReportIDfrom the reportID we send withSendInvoice. If the policy enforces its report title formula, the formula name replaces it onceSendInvoicereturns.This also drops the bill-link special case from #105968, since bill-linked invoices follow the same rule now, and removes the unused
isNewDotInvoicehelper.Fixed Issues
For https://github.com/Expensify/Expensify/issues/684654
PROPOSAL:
Tests
Invoice #Rfollowed by 11 characters in the Inbox, the report header and the report preview in the invoice room.Offline tests
Invoice #R...in the Inbox, the report header and the report preview.QA Steps
Invoice #R...in the Inbox, the report header, the report preview and Search.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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