-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Part 2] Onyx.connect() removal for ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS in ReportUtils.ts #79832
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
Merged
[Part 2] Onyx.connect() removal for ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS in ReportUtils.ts #79832
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
c2de4e4
Update outstanding report filters
ShridharGoel df6513b
Thread archived checks through edit gating
ShridharGoel cf65086
Use archived report checks in search selection
ShridharGoel 4fefcb9
Refactor ReportUtils archive checks
ShridharGoel 63f4056
Prettier fixes
ShridharGoel b3a1b98
Fix a duplicate declaration
ShridharGoel 1d3bfbb
Updates
ShridharGoel d8d79fb
Merge main
ShridharGoel 11d888a
Change Id to ID
ShridharGoel e3e932f
Change Id to ID
ShridharGoel 4564e7a
Change useArchivedReportsIdSet to useArchivedReportsIDSet
ShridharGoel 75c47f3
Merge main
ShridharGoel 335ad6a
Fix
ShridharGoel a0465bf
Lint and prettier fixes
ShridharGoel fe0a427
Update more usages to pass the ID-set
ShridharGoel 9806560
Update
ShridharGoel b8c565d
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel b6abb3d
Update
ShridharGoel 8409bcc
Address bot's consistency comment
ShridharGoel 889ffdd
Address the codex comment
ShridharGoel 5a740d9
Address the codex comment
ShridharGoel a0fbcca
Pass isReportArchivedByID to canEditMoneyRequest when finding canEdit
ShridharGoel 6a75e62
Improvements
ShridharGoel 3f540d5
Prettier fixes
ShridharGoel 35faaf1
Merge main
ShridharGoel c30f218
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel c1ba85b
Prettier and lint fixes
ShridharGoel f491807
Use set instead of function
ShridharGoel 4be2146
Update test
ShridharGoel 244e795
Use useMemo
ShridharGoel bece789
Update deep link handler
ShridharGoel a90cf63
Update money request archive prop to pass archived report set
ShridharGoel 17b73eb
Merge main
ShridharGoel 8779eb8
revert extra change in Permissions.ts
ShridharGoel 5e034c1
Test fixes
ShridharGoel c41af72
Updates
ShridharGoel d7e9b8e
Merge main
ShridharGoel fbcdb49
Lint and TS fixes
ShridharGoel 6e1041d
remove the now unused Onyx.connect field
ShridharGoel 0610b57
Fixes
ShridharGoel f78046c
Address codex comment
ShridharGoel 78ec659
Lint and prettier fixes
ShridharGoel c61b18f
Lint and prettier fixes
ShridharGoel e383c27
Update tests
ShridharGoel ba54186
Simplify archived report checks with ArchivedReportsIDSet
ShridharGoel 6fb403d
Merge main
ShridharGoel cda6294
Fix
ShridharGoel a5daaca
Fixes
ShridharGoel 4b920a6
Resolve archived report set merge conflicts
ShridharGoel 7d04345
Resolve archived report set regressions and merge conflicts
ShridharGoel 33d6162
Remove unused variables import from MoneyReportHeader
ShridharGoel 3e028d5
Merge upstream/main into onyxConnect2.2
ShridharGoel dbf7771
Fix unused ExportType import
ShridharGoel 298e045
Remove unrelated archive changes
ShridharGoel 95f5275
Merge upstream/main
ShridharGoel e57314c
Fix ReportUtils optional params
ShridharGoel 3a8d51f
Updates
ShridharGoel 5622a62
Pass archived report set via props
ShridharGoel 5f2c0d2
Fix archived report set test props
ShridharGoel 7dc6970
Resolve merge conflicts
ShridharGoel 0802cc8
Address PR review comments
ShridharGoel de378f7
Normalize archived reports hook naming
ShridharGoel 386c9a7
Tighten archived report set parameters
ShridharGoel 87c02a7
Revert "Tighten archived report set parameters"
ShridharGoel 594479b
Revert "Normalize archived reports hook naming"
ShridharGoel 5cdfc1f
Revert "Address PR review comments"
ShridharGoel 1dd67f5
Narrow archived report connect removal
ShridharGoel 58d528f
Restore full archived report migration
ShridharGoel 2c03fef
Remove unused archived report prop plumbing
ShridharGoel 9e6af31
Fix TS
ShridharGoel f991876
Fixes
ShridharGoel d96b37a
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel a71b129
Split archived report UI plumbing into follow-up branch
ShridharGoel 618e1b5
Fix transaction thread secondary actions call
ShridharGoel cd25ffa
Fix nullish fallback lint in report utils
ShridharGoel 09b1e1b
Fix lint
ShridharGoel 616e966
Address archived report review feedback
ShridharGoel 1092af7
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel cfdf13b
Pass archived report set to transaction actions
ShridharGoel 95bae90
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel 21d18ae
Fix transaction action test call signature
ShridharGoel bbbe870
Remove unused onboarding beta subscriptions
ShridharGoel c474187
Clarify outstanding reports archived check
ShridharGoel c152cd4
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel 6252bdc
Fix archived reports hook import
ShridharGoel e4695b1
Address archived reports review feedback
ShridharGoel f17391f
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel 24ef926
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel 35524bf
Avoid unnecessary archived report set rebuilds
ShridharGoel 9df9358
Fix archived reports loading fallback
ShridharGoel a0f2fa9
Revert archived reports loading fallback
ShridharGoel f2bfde7
Merge main into onyxConnect2.2
ShridharGoel f123c84
Fix archived reports merge follow-ups
ShridharGoel e3f5987
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel ae754ec
Address archived reports review follow-ups
ShridharGoel 488c352
Merge main into onyxConnect2.2
ShridharGoel c9ddd7c
Remove unused report name value pairs utility
ShridharGoel 43c7c8c
Address comment
ShridharGoel afcf425
Update tests
ShridharGoel c5d7849
Flatten search transaction selection params
ShridharGoel ecc673f
Merge branch 'main' of https://github.com/Expensify/App into onyxConn…
ShridharGoel e6407bc
Merge branch 'main' into onyxConnect2.2
ShridharGoel 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import {buildArchivedReportsIDSet} from '@libs/ReportUtils'; | ||
| import type {ArchivedReportsIDSet} from '@libs/SearchUIUtils'; | ||
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
| import useOnyx from './useOnyx'; | ||
|
|
||
| /** | ||
| * Hook that returns a Set of archived report IDs | ||
| */ | ||
| function useArchivedReportsIDSet(): ArchivedReportsIDSet { | ||
| const [reportNameValuePairs] = useOnyx(ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS); | ||
|
|
||
| return buildArchivedReportsIDSet(reportNameValuePairs); | ||
| } | ||
|
|
||
| export default useArchivedReportsIDSet; | ||
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.