-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Refactor deleteReportComment() to use useAncestors hook
#73604
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
+109
−73
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
5b49afe
Add getOptimisticDataForAncestors function and update related components
Tony-MK 5f71e0a
Refactor PopoverReportActionContextMenu to use original report data f…
Tony-MK 20236a2
Merge branch 'main' into deleteReportComment
Tony-MK c30db4b
refactor: PopoverReportActionContextMenu for improved type safety and…
Tony-MK 29f63ea
fixed ancestors params in UnreadIndicatorsTest
Tony-MK db59e27
Merge branch 'main' of https://github.com/Expensify/App into deleteRe…
Tony-MK bcaebbd
Merge branch 'main' of https://github.com/Expensify/App into deleteRe…
Tony-MK 176da24
refactor: getOptimisticDataForAncestors to use reduce for improved cl…
Tony-MK cf34c35
fix: update dependency array in useEffect for correct behavior
Tony-MK 0d4ec84
Merge branch 'Expensify:main' into deleteReportComment
Tony-MK 18fc26e
Merge branch 'main' of https://github.com/Expensify/App into deleteRe…
Tony-MK 88bf7da
Merge branch 'main' into deleteReportComment
Tony-MK 4ab7817
update ancestors to use original parent report
Tony-MK 93a099c
Merge branch 'deleteReportComment' of https://github.com/Tony-MK/Expe…
Tony-MK eaa496a
Revert "update ancestors to use original parent report"
Tony-MK 956b649
Adding new line
Tony-MK bc199bf
refactor: implemented previousActionDeleted in getOptimisticDataForAn…
Tony-MK 6621f59
prettier
Tony-MK f814036
Merge branch 'Expensify:main' into deleteReportComment
Tony-MK 6bcdee1
Merge branch 'main' of https://github.com/Expensify/App into deleteRe…
Tony-MK 03bd81d
refactor: getOptimisticDataForAncestors to use map instead of reduce …
Tony-MK 1d1f9c4
refactor:test report
Tony-MK 221e065
Merge branch 'main' of https://github.com/Expensify/App into deleteRe…
Tony-MK 86bc77e
prettier
Tony-MK 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
Some comments aren't visible on the classic Files Changed page.
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
Oops, something went wrong.
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.
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.
why do we need this ref when we already have
ancestorsvalues directly available in the next line?