-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix/63635 onyx lift money report view #65644
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
Merged
luacmartins
merged 15 commits into
Expensify:main
from
Pujan92:fix/63635-onyx-lift-money-view
Jul 14, 2025
+44
−13
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
049b6d5
used allReports prop for MoneyRequestView
Pujan92 60658fd
added allReports for TransactionDuplicate Confirmation
Pujan92 dd18aa0
pass policy as prop for MoneyRequestView
Pujan92 0589188
added PolicyCategoriesProvider
Pujan92 d9c63f3
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 fd61694
added PolicyTagsProvider
Pujan92 eadfacc
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 de2ed5d
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 9b52aa0
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 fea3e94
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 c73803d
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 c3ea933
revert chatreport onyx
Pujan92 97980d2
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 aa38c85
remove useOnyx for chatReport
Pujan92 f2d2da9
Merge branch 'main' into fix/63635-onyx-lift-money-view
Pujan92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
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.
Should we only pick
reportIDanderrorFieldsas previously? To avoid recalcuate/render when unrelated chatReport data is changed.Uh oh!
There was an error while loading. Please reload this page.
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.
It will be rerender whenever
allReportsgets changed. I don't think picking specific fields help here to avoid rerendering.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.
It will avoid reevalulate the useCallback here
App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 550 in 56ab1e0
Do you think it's worth to keep previous logic?
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.
hmm, makes sense. Reverted.
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.
Sorry if it's unclear. I mean we can retrieve chatReport from allReports but should pick reportID and errorFields as previously.
const chatReport = lodashPick(allReports?.[${ONYXKEYS.COLLECTION.REPORT}${parentReportID}], ['reportID', 'errorFields']);Btw, I think it will always recreate new object. Hmm, can you revert to your original version? I think it's not a big deal in this case.
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.
Yes.
Done.