-
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
Handle isWaitingOnBankAccount for IOU requests #20821
Merged
Merged
Changes from 76 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
cd6dba8
Handle isWaitingForBankAccount when paying request
nkuoch e84fc71
Handle reimbursed action
nkuoch c370ea9
Some cleaning
nkuoch 0418d9a
Add translations
nkuoch f9a0756
New copies
nkuoch 483a029
Merge branch 'main' into nat-iouw
nkuoch be5f7cc
js style
nkuoch a656df2
Merge branch 'main' into nat-iouw
nkuoch ff482ab
Use getMoneyRequestTotal for displayed amount
nkuoch ffdbf1a
Fix console error by adding report billing state
nkuoch 2f1a1b2
Fix eslint
nkuoch f68a275
Some refactoring
nkuoch 53717db
Use button instead of link to add a bank account
nkuoch 7d5150f
No need to show green dot on parent report
nkuoch abcaacd
Small fixes from Carlos PR review
nkuoch 4efa13b
Merge branch 'main' into nat-iouw
nkuoch c39b697
Fix lint
nkuoch 3d7f396
js prettier
nkuoch 2927f9a
Move addbankaccount button to MoneyRequestHeader and create generic R…
nkuoch c13502a
Fix tests and style
nkuoch d586383
If current user already has a iou waitingForBankAccount, prevent reus…
nkuoch f00bc0b
Some refactoring
nkuoch d440b61
Merge branch 'main' into nat-iouw
nkuoch 67e19ad
Show green dot when admin needs to pay his own request
nkuoch ad9dacc
Add button back to reportAction level
nkuoch dc64d3f
Merge branch 'main' into nat-iouw
nkuoch d7ce6ce
Fix test
nkuoch 5bc651a
prettier
nkuoch 32acf1c
Fix tests
nkuoch bedc151
Rename method to hasIouWaitingOnCurrentUserBankAccount
nkuoch 41d7bb3
Prettier
nkuoch b1cde86
Small fixes
nkuoch 284ce2f
Prettier
nkuoch 218d88a
Merge branch 'main' into nat-iouw
nkuoch aa2c40f
Dont show green button on chat report for isWaitingOnBankAccount case
nkuoch 19df18a
Default report preview amount to the one from the report action if io…
nkuoch d8f75d5
Dont show green button on chat report for isWaitingOnBankAccount case
nkuoch 840587d
Default report preview amount to the one from the report action if io…
nkuoch 4449a86
Make sure we close the modal after clicking on Continue
nkuoch 821628b
Merge branch 'main' into nat-iouw
nkuoch ad62d24
Fix missing iou amount
nkuoch 4984806
Fix merge conflict
nkuoch 77783a4
Merge branch 'nat-iouw' of github.com:Expensify/App into nat-iouw
nkuoch 9f90c9f
prettier
nkuoch 7f729f6
Merge branch 'vit-bumpOnyxVersion' into nat-iouw
nkuoch 627f4cd
Merge branch 'main' into nat-iouw
nkuoch cae3c44
shouldShowGreenDotIndicator needs managerID in optionItem
nkuoch b889078
Fix unit test
nkuoch 87eb926
Fix ioupreview amount for other types of messages
nkuoch 4549681
Fix preview message
nkuoch 7f1b9e7
Close modal to show report only if coming from click from button from…
nkuoch fbe5aed
Fix eslint
nkuoch caa301b
If no iouReport to get managerID from, get actorAccountID from report…
nkuoch cf72cc1
Update src/components/ReportActionItem/ReportPreview.js
nkuoch 043398d
Fixes from Carlos PR review
nkuoch f40658c
Dont show settlement button if we dont have the ioureport
nkuoch bde5c68
Global create update
mountiny 9370590
Resolve merge conflicts
mountiny 35923fd
Merge branch 'main' into nat-iouw
mountiny 05a7eab
Fix linter
mountiny e3513f5
Resolve merge conflicts
mountiny ba7f911
Update tests
mountiny 40e6d86
Update the tests
mountiny 5845661
Resolve merge conflicts
mountiny c1b8d6e
Remove duplicate single transaction details
mountiny 8234369
Merge branch 'main' into nat-iouw
nkuoch 871821f
Fix merge conflict
nkuoch 05f270b
Fix cannot read property of null
nkuoch dfa3230
Revert console.log
nkuoch 58bf070
Import underscore
nkuoch 405f470
Merge branch 'main' into nat-iouw
nkuoch 91a40c5
Fix merge conflict
nkuoch 2f48cd2
Fix eslint
nkuoch 3c45555
Merge branch 'main' into nat-iouw
nkuoch 388d977
Fix addBankAccount button still visible after user adds a bank account
nkuoch 1158139
Only show iou.pay, not reimbursed action to avoid duplicate message
nkuoch 6462b40
Fix test
nkuoch 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
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.
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.
What if the user adds a number in the comment? That'd replace the amount, wouldn't it? I think we could achieve the same result without the for loop, by using the first match in this regex instead:
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.
I don't think the message in the preview action contains any user comment - And if you see the 3 examples the previous comment, this wouldn't work:
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.
This feels like a temporary solution for sure, its probably quite brittle with different workspace names and also different currencies, I think we need to ensure any report preview which is shown to the user has the associated iou report loaded in the app. But that can be a polish