Repository navigation
Conversation
…n types Seatbelt-Operation: session4-sign-28673b16-6202-4c89-baec-1773e1dedf28
Seatbelt-Operation: session4-corrected-sign-b69973f5-49aa-4f55-b41a-dfcdc1d1c3a7
Seatbelt-Operation: remaining-102986-sign-35ae4f8f-bb11-4640-a2dc-ce2aed4c9faa
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 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
Replace unsafe assertions in navigation history, duplicate filtering and preview accessors, and bank callback lookups with truthful input types and local checks. Malformed scalar/null history params intentionally fall through to the router; history-preserving operations retain opaque entries, while route rehydration rebuilds route history.
Changed files:
src/libs/Navigation/AppNavigator/routerExtensions/addPushParamsRouterExtension.tssrc/libs/Navigation/AppNavigator/routerExtensions/addRootHistoryRouterExtension.tssrc/libs/Navigation/AppNavigator/routerExtensions/addRootHistoryRouterExtensionUtils.tssrc/libs/TransactionUtils/duplicates.tssrc/libs/TransactionUtils/index.tssrc/libs/actions/getCompanyCardBankConnection/index.tsxtests/unit/GetCompanyCardBankConnectionTest.tstests/unit/Navigation/routerExtensions/addPushParamsRouterExtension.test.tstests/unit/Navigation/routerExtensions/addRootHistoryRouterExtension.test.tstests/unit/TransactionUtilsTest.tsFixed Issues
$ #94739
PROPOSAL: #94739 (comment)
Tests
Focused router-history, transaction/IOU, bank-connection, and add-existing-expense search Jest suites passed.
QA Steps
1. History across tabs and layouts.
2. Expense panel return.
3. Desktop menu and resize.
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
Recordings (6)
01-history-desktop.mp4
02-history-narrow.mp4
03-expense-panel-controls-desktop.mp4
04-expense-row-return-desktop.mp4
05-expense-panel-controls-narrow.mp4
06-expense-row-return-narrow.mp4