Repository navigation
Conversation
Seatbelt-Operation: sign-aac2b053-20261024-dc7dbd59
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Use the existing bank form, report, transaction, and owner-name contracts instead of unsafe assertions. Reuse the transaction-key guard in the Search snapshot fallback while preserving its prefix test, insertion order, matching-report selection, and violation lookup, and add focused regression coverage.
Changed files:
src/components/Search/SearchList/ListItem/UserInfoAndActionButtonRow.tsxsrc/pages/ReimbursementAccount/ReimbursementAccountPage.tsxsrc/pages/ReimbursementAccount/USD/BeneficialOwnerInfo/subSteps/BeneficialOwnerDetailsFormSubSteps/LegalNameUBO.tsxsrc/pages/ReimbursementAccount/USD/BusinessInfo/subSteps/ConfirmationBusiness.tsxsrc/pages/Search/SearchMoneyRequestReportPage.tsxsrc/pages/TransactionDuplicate/DuplicateTransactionItem.tsxsrc/types/form/ReimbursementAccountForm.tstests/ui/ConfirmationBusinessTest.tsxtests/ui/DuplicateTransactionItemTest.tsxtests/ui/LegalNameUBOTest.tsxtests/ui/ReimbursementAccountPageCurrencyTest.tsxtests/ui/SearchMoneyRequestReportPageTest.tsxFixed Issues
$ #94739
PROPOSAL: #94739 (comment)
Tests
Focused checked-in Jest tests passed for currency routing, company-summary validation, owner-specific saved names, duplicate selection and previews, and Search first-match object identity, own violations, absent/no-match handling, and live-data precedence. Changed-file lint, type checking, formatting, spelling, and React Compiler comparison checks passed; CI also passed typecheck, lint, format, React Compiler, and the selected Jest suites.
Offline tests
N/A. This diff changes no network requests, cache updates, persistence, queued writes, or recovery behavior. The Search fallback preserves the transaction-key prefix test and transaction/violation selection.
QA Steps
Manual QA not required.
The refactor preserves runtime values and handlers. Focused tests discriminate the Search fallback's unchanged prefix/report matching, first-match object identity, own violations, and live-data precedence; rendering, provider, and thread code and inputs are unchanged.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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
Screenshots/Videos
No manual execution evidence or recordings are required supplied.