-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Adds new ReportUtils for Violations #31448
Merged
cead22
merged 154 commits into
Expensify:main
from
infinitered:cdanwards/violations/transaction-thread-violations
Jan 18, 2024
Merged
Changes from 11 commits
Commits
Show all changes
154 commits
Select commit
Hold shift + click to select a range
a917e06
adds violations functions to report utils and implements
cdanwards 3756ef9
Small fix in ReportUtils
cdanwards 3cc2e0f
Fix Onyx Connection for reportActions
cdanwards 4db7207
Fixed merge conflicts
cdanwards 35fd77e
Fixed more merge conflicts
cdanwards 7942b39
Merge branch 'main' of github.com:infinitered/ExpensifyApp into cdanw…
cdanwards 89997ce
Merge branch 'main' of github.com:Expensify/App into cdanwards/violat…
cdanwards a98b3a1
Fix Permissions import
cdanwards f7dc731
Correctly pass down betas
cdanwards 93ea5b7
Update tests
cdanwards 1cfeec0
Merge branch 'main' of github.com:infinitered/ExpensifyApp into cdanw…
cdanwards 1f9d645
Fixing some beta props
cdanwards 2a03cc9
Fixed merge conflicts
cdanwards 813c856
Fixed merge conflicts
cdanwards 6d47be5
Started TS conversion
cdanwards 6a16af0
Merge branch 'main' of github.com:infinitered/ExpensifyApp into cdanw…
cdanwards 5849803
Fixed up the Onyx Types for Violations & I think I got the functions …
cdanwards f7fa4bf
Finally got the tests up and working correctly
cdanwards 9ce9595
Merge branch 'main' of github.com:infinitered/ExpensifyApp into cdanw…
cdanwards 02fa714
Fixed types and property checks for violations
cdanwards 63ab544
Added some doc comments and also fixed the violation type
cdanwards bef0d73
Merge branch 'main' of github.com:infinitered/ExpensifyApp into cdanw…
cdanwards c6dca6a
Fixed merge conflicts
cdanwards c69c1df
Fixed perf test
cdanwards 5e122ef
Removed unnecessary export
cdanwards e53902e
Restore betas in test
cdanwards c49b03f
Switch to destructuring
cdanwards 375eabb
Update src/libs/ReportUtils.ts
cdanwards b6c24db
Update src/libs/ReportUtils.ts
cdanwards 8bee286
Fixed merge conflicts
cdanwards e1ca1ac
Merge branch 'cdanwards/violations/transaction-thread-violations' of …
cdanwards ccd3eb3
remove unneeded changes
cdanwards 1d2cfa2
Remove duplicate TRANSACTION_VIOLATIONS constant
cdanwards bcd1ee8
Update src/ONYXKEYS.ts
cdanwards cae1e0d
Working on removing the onyx connect and using withOnyx
cdanwards 59ba57e
Merge branch 'cdanwards/violations/transaction-thread-violations' of …
cdanwards 90b7138
Starting so swap in the transactionViolations
cdanwards 35de23f
Fixed tests and created new hook mock
cdanwards bbfd1fa
Switched to just passing down parentReportAction
cdanwards 20a0fc3
Fixed Merge COnflicts
cdanwards 2c52edf
Move the report actions selector to the SidebarUtils file
cdanwards 73971f0
Correct type import
cdanwards 1234b88
Another type correction
cdanwards 9223374
Final fix for the test of the report actions
cdanwards 9e1753b
Merge branch 'main' of github.com:infinitered/ExpensifyApp into cdanw…
cdanwards 4366d64
Update Comments
cdanwards 5716800
A few fixes
cdanwards adf1933
Fixed some prop types and also added a beta guard
cdanwards da8f376
Added usePermissions mock to ReportPreview
cdanwards cda1aee
Trying this out
cdanwards cd6586a
Trying this out
cdanwards 03f9d96
Merge branch 'cdanwards/violations/transaction-thread-violations' of …
cdanwards 6478b94
fix for perf test
cdanwards 1736c21
Remove unused type
cdanwards 16a0a9a
Fixing some issues with tests
cdanwards feb3596
Was accidentally importing named instead of default
cdanwards c7aa6c4
Fix merge conflicts
cdanwards 69b767b
Update src/libs/ReportUtils.ts
cdanwards 9535a2b
Update src/components/ReportActionItem/ReportPreview.js
cdanwards 99d3c0d
Update src/hooks/__mocks__/usePermissions.ts
cdanwards 0720910
Remove unused import
cdanwards 7faf50b
Fix transactionHasViolation function and
cdanwards bf401af
Remove unnecessary code in shouldHideReport
cdanwards f0a360b
Remove unnecessary comment in ReportUtils.ts
cdanwards 4088e8f
Fix betas check to be outside of the function
cdanwards 766d37e
Add comment about using usePermissions hook mock for beta tests
cdanwards 561a4d4
Add default value for transactionViolations
cdanwards abad008
Make linter happy
cdanwards 563ca7b
Refactor getOrderedReportIDs function to improve
cdanwards 32fb912
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 2e5c39b
feat(Violations): implement types from money-request-preview branch
trevor-coleman 30a77c9
feat(Violations): replace transactionViolationsProp with imported pro…
trevor-coleman 2e3d3e7
feat(Violations): make reportActions mandatory and remove parentRepor…
trevor-coleman 9503748
feat(Violations): remove whitespace
trevor-coleman 2871cd8
feat(Violations): simplify
trevor-coleman 5dd7d01
feat(Violations): update comment
trevor-coleman d169a43
feat(Violations): simplify
trevor-coleman aa7822e
feat(Violations): fix type of transactionViolations propType
trevor-coleman d86616d
feat(Violations): revert simplifications
trevor-coleman ccb12cc
feat(Violations): add second withOnyx
trevor-coleman e3d4ae8
feat(Violations): get transactions directly
trevor-coleman 37e0f2e
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman d467853
feat(Violations): fix propsTypes
trevor-coleman fdab084
feat(Violations): rename
trevor-coleman bf37bb0
feat(Violations): rename
trevor-coleman db5fa36
feat(Violations): move ReportUtils.transactionHasViolation to Transac…
trevor-coleman ba5e940
feat(Violations): restore selector
trevor-coleman e873fa4
feat(Violations): remove null guard
trevor-coleman 68f933a
feat(Violations): revert line width changes
trevor-coleman b41a3de
feat(Violations): change signature of shouldReportBeInOptionList
trevor-coleman 2492bf9
feat(Violations): rename resolvedParentReportAction
trevor-coleman 90101f2
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman ea6bf2e
feat(Violations): add whitespace
trevor-coleman 4d4c476
feat(Violations): use imported propType
trevor-coleman ec2429a
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 04ed595
feat(Violations): revert commment wrapping
trevor-coleman aa14258
feat(Violations): cast return value to type
trevor-coleman 0214a12
feat(Violations): use correct key
trevor-coleman a89d888
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman cd4e987
feat(Violations): fix comment wrapping
trevor-coleman 93d08a0
feat(Violations): fix proptypes of allReportActions
trevor-coleman c24db94
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman b3b367d
feat(Violations): revert change to reportActionsSelector
trevor-coleman 00ce2cf
feat(Violations): restore proptypes
trevor-coleman a5ecebe
feat(Violations): unwrap comment
trevor-coleman 2f4a14a
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 93a300b
fix types broken by merge
trevor-coleman 289d00f
feat(Violations): remove comment
trevor-coleman 0bba695
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman c2667a8
feat(Violations): remove duplicate violations
trevor-coleman d1a6ee1
feat(Violations): fix import paths
trevor-coleman 6cabad0
feat(Violations): use reportActions
trevor-coleman ea487ba
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman c8ebe6f
feat(Violations): remove transaction violations
trevor-coleman ec7dc4f
feat(Violations): remove transaction violations
trevor-coleman aacb894
feat(Violations): lint
trevor-coleman 9e57641
feat(Violations): create params object for getOptionData
trevor-coleman 79ac93a
feat(Violations): create params object for shouldReportBeInOptionsList
trevor-coleman 13fe960
feat(Violations): invert control and pass doesTransactionThreadHaveVi…
trevor-coleman 4a26a24
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 66c181e
feat(Violations): fix TransactionViolations export
trevor-coleman 2f75e74
feat(Violations): take parentReportAction as param an update callers
trevor-coleman e110f14
feat(Violations): fix import
trevor-coleman 00a8bec
feat(Violations): pass proper parentReportAction in to doesTransactio…
trevor-coleman 0512719
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 6968650
feat(Violations): remove unneeded imports and lint
trevor-coleman ad15ca6
fix type
trevor-coleman 85fa56d
feat(Violations): remove unneeded import
trevor-coleman 2452d31
fix filtering
trevor-coleman 44a96ca
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 192899c
feat(Violations): remove optional param
trevor-coleman 0c41aec
feat(Violations): remove check for undefined report
trevor-coleman 891c3d2
feat(Violations): PR review comments
trevor-coleman 09d08e2
feat(Violations): rename param
trevor-coleman ae525eb
feat(Violations): use !! instead of Boolean to allow type narrowing
trevor-coleman 4547321
feat(Violations): make all params required
trevor-coleman 3b66eeb
feat(Violations): fix comment
trevor-coleman da7bf97
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman a5833d0
feat(Violations): use shorthand
trevor-coleman 44ef928
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 587a44c
feat(Violations): use lodash
trevor-coleman c732ddd
feat(Violations): ensure reportActionCount defaults to 1
trevor-coleman 3eaf3d4
feat(Violations): refactor for readability
trevor-coleman 27e8315
feat(Violations): restore guard
trevor-coleman 96b9ff7
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman de97f71
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 8e0250c
feat(Violations): change STATE_NUM to reflect changes from 54e7f76d9f…
trevor-coleman 00fefc1
prettier
trevor-coleman 9498292
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman e3882e7
Update src/libs/ReportUtils.ts
trevor-coleman 64ab957
feat(Violations): clarify import from TransactionUtils
trevor-coleman ae91d30
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 7305a48
feat(Violations): fix const/let
trevor-coleman 6e8ebca
Merge remote-tracking branch 'upstream/main' into cdanwards/violation…
trevor-coleman 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 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 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 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 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 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 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 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.
As new lines are added above, let's add here too
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.
done