-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Remove Onyx.connect() for the key: ONYXKEYS.COLLECTION.TRANSACTION in src/libs/TransactionUtils/index.ts #69760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@shubham1206agra 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] |
|
Done |
|
Refactor PR, doesn’t have any new product considerations. Removing the tag and unsubscribing myself. |
|
Reassure Performance Tests failed by main |
|
|
| // We need to use isSmallScreenWidth instead of shouldUseNarrowLayout to apply the correct modal type | ||
| // eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth | ||
| const {isSmallScreenWidth} = useResponsiveLayout(); | ||
| const linkedTransactionID = getLinkedTransactionID(Navigation.getTopmostReportActionId(), moneyRequestReport?.reportID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DylanDylann Is it possible to pull reportAction directly from Onyx here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubham1206agra What do you mean? which reportAction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReportActin that you are using to get transactionID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubham1206agra This logic isn’t newly introduced in this PR, I only moved it from the original isLinkedTransactionHeld function. I think we should keep it as is for now and avoid expanding the scope of this PR. It can be addressed later when we remove the subscription to ONYXKEYS.COLLECTION.REPORT_ACTIONS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DylanDylann Let's hold this PR on #71197 as I removed the logic and tested the flow if it is working fine or not.
src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx
Outdated
Show resolved
Hide resolved
|
@shubham1206agra Back to you |
|
@shubham1206agra Kindly bump |
26bfcef to
c3f1cc2
Compare
|
Should be on hold: #72086 |
|
@shubham1206agra Kindly bump |
|
@shubham1206agra Any chance you could review this PR? |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-11-12.at.7.26.04.PM.mov |
|
✋ 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/danieldoglas in version: 9.2.61-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.2.61-5 🚀
|
Explanation of Change
Fixed Issues
$ #66463
PROPOSAL:
Tests
Offline tests
QA Steps
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
Screen.Recording.2025-09-04.at.14.11.21.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop