refactor: isolate ONYXKEYS.COLLECTION.TRANSACTION dismissDuplicateTransactionViolation#79462
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…-fork into Guccio163/onyx-connect/transaction/dismissDuplicateTransactionViolation
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Hi, this PR is ready for a review, waiting for #79328 to remove Onyx.connect call from Transaction.ts in this PR |
|
No product considerations, removing my review |
|
@Guccio163 #79328 was merged, is this PR ready to review? |
|
It's ready for an early review, I'll remove onyx Connect transactions call from Transaction.ts and rename props as a wrap-up when I'm in the office. |
|
The code looks fine, wating for you to merge new main |
…-fork into Guccio163/onyx-connect/transaction/dismissDuplicateTransactionViolation
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-01-15.at.17.42.11.movAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@Gonals friendly bump |
|
✋ 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/Gonals in version: 9.3.4-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.4-6 🚀
|
Explanation of Change
This PR is part of a refactor to remove Onyx.connect for the keys: ONYXKEYS.COLLECTION.TRANSACTION from the src/libs/actions/Transaction.ts file and replace it with useOnyx.
It isolates the dismissDuplicateTransactionViolation function from the ONYXKEYS.COLLECTION.TRANSACTION Onyx.connect key .
Fixed Issues
$ #67777
PROPOSAL:
Tests
Create duplicate expenses and dismiss duplicate warning:
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
MacOS: Chrome / Safari
ReviewKeepAll.mov