-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Merge expenses phase 1 #65596
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
Merge expenses phase 1 #65596
Changes from all commits
Commits
Show all changes
126 commits
Select commit
Hold shift + click to select a range
1e58e22
Define MergeTransaction Onyx type
hoangzinh 7295875
Setup routes + pages for merge transaction steps
hoangzinh 4745900
Run prettier
hoangzinh e86a0f2
Add merge option to secondary actions
hoangzinh 259d883
Fetch transaction for merge and display skeleton view while fetching
hoangzinh a7f98ef
Display no eligible expenses view
hoangzinh 06b510b
Split into separate files to manage easier
hoangzinh 00ce3f1
Add localise for empty state
hoangzinh 098b5ca
Support radio button
hoangzinh 80d2bee
Display transaction list
hoangzinh ed4d0fb
Update merge icon
hoangzinh 996d92f
Display custom skeleton screen for merge transaction
hoangzinh 15841c4
Header content for merge expenses
hoangzinh c6ba2b0
Update empty state with design doc
hoangzinh 1e072f6
Should not show error in merge transaction list
hoangzinh 393e5a7
Update type of targetTransactionId
hoangzinh 660aa23
Handle click confirm button on list page
hoangzinh f9d14a8
Merge branch 'main' into merge-expenses-phase-1
hoangzinh fcbe0e0
Lift up into utils
hoangzinh 939033e
Display transaction merge receipts
hoangzinh 99b90a5
Fix eligibleTransactions does not contain targetTransaction
hoangzinh 8cf94ab
Move utils and action of merge transaction to its own file
hoangzinh 8f061b5
Fix type error
hoangzinh 1175033
Support query eligibleTransaction locally when network is offline
hoangzinh 5e5defc
reset merge transaction when starting merging
hoangzinh a4f9e79
Display zoom button icon in receipt review
hoangzinh 31d03eb
Merge branch 'main' into merge-expenses-phase-1
hoangzinh b1c56b0
Use new radio button style for transaction merge
hoangzinh 8bca6b8
Resolve details conflict when merge transaction
hoangzinh a67e9a1
Fix styling in details page
hoangzinh e637c59
Store whole receipt object in order to display in Confirmation page
hoangzinh 2aea62c
Refactor get value in the details review page
hoangzinh 035f7ca
Implement confirmation page
hoangzinh 687964f
Rename component file with suffix Page
hoangzinh 0d91360
Select target and source transaction based on business logic
hoangzinh efe72bc
Add translations for other languages
hoangzinh 3267cbf
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 29766f5
Fix type error
hoangzinh ceb5086
Fix spellcheck
hoangzinh eaf05e9
Support view receipt from merge transaction flow
hoangzinh cb0c7d6
Fix getMergeableDataAndConflictFields bug not handle boolean value co…
hoangzinh 4852389
Add unit tests for merge transaction utils
hoangzinh 5f9c35c
Add test for merge transaction action
hoangzinh 76039ec
Run prettier
hoangzinh 2632561
Revert debug code
hoangzinh 1964746
Fix linter
hoangzinh 099e0ba
Fix missing import
hoangzinh dd10ea9
Merge branch 'main' into merge-expenses-phase-1
hoangzinh f06c6c2
Implement getTransactionsForMergingLocally
hoangzinh b44cb63
Fix unable to select false when resolve conflict
hoangzinh 0e7db86
Fix spellcheck error
hoangzinh b01059f
Support merge currency
hoangzinh 169d3c1
Correct merge API and params
hoangzinh 90441bf
Fix mergeable and add test for amount field
hoangzinh d97ac74
Allow merge in unreported expense
hoangzinh 529dc68
Fix false value if not display as No in DetailsReview page
hoangzinh 5e45a49
Display merge button base on user role
hoangzinh 02a3dda
Only display merge button in transaction thread or selected transaction
hoangzinh eb05969
Update function to get eligibleTransaction locally bases on role
hoangzinh 89a2008
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 197a8f4
Fix resolve conflict
hoangzinh e6aa5fa
Optimistic delete source report when it's a single expense
hoangzinh 96568ba
Add unit test for utils in merge transaction utils
hoangzinh 8bccee9
Add unit tests for isMoneyRequestReportEligibleForMerge
hoangzinh 7d437e6
Add specs for setupMergeTransactionData and setMergeTransactionKey
hoangzinh b44b8e4
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 68e429e
Allow merge in expense report when there is a single expense
hoangzinh 7023dd8
Fix bug not found when navigate to receipt from transaction of self DM
hoangzinh 79848be
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 000494d
Fix unable to see unreported expenses in the list
hoangzinh 58bd569
Fill missing receipt source for eligibleTransactions data
hoangzinh 16ceac0
Fix unable to view receipt for unreported expenses in review receipt …
hoangzinh 4f4a5d0
Fix type error
hoangzinh 8356c37
Fix not found page when merging
hoangzinh 3e2dcbe
Optimictic update receipt source URL
hoangzinh 0ee8437
Update translation feedback for Spain
hoangzinh 47c103e
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 9e9002c
Update MergeTransactionItem style with recent refactor on Transaction…
hoangzinh 544c537
Merge branch 'main' into merge-expenses-phase-1
hoangzinh b42f9f3
Update translation for es
hoangzinh 0f9be6b
Update es translation based on new feedbacks
hoangzinh 6011d3a
Apply reviewer feedback
hoangzinh 399e0a4
Apply reviewer suggestion
hoangzinh 7e12d4f
Ensure continue button and select receipt page work consistency as ot…
hoangzinh ee743a4
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 2359f63
Clear the merge transaction data when select a new source transaction…
hoangzinh 5bbb758
Update displayName for component MergeFieldReview
hoangzinh c8ba9e7
Fix refresh the merge transaction page sets the central pane report t…
hoangzinh 7fe857e
Apply reviewer feedback on style
hoangzinh 7f64667
Replace by new prop shouldUseNewStyle
hoangzinh 5a1c644
Remove unnecessary code
hoangzinh 2e48f2a
Address feedback in TransactionMergeReceipts
hoangzinh cb26f61
Fix display reportName for unreported expenses
hoangzinh 927add3
Refactor merge pages and use isLoadingOnyx to ensure mergeTransaction…
hoangzinh 97a8e27
Fix missed update for demark
hoangzinh 2d7b4f3
Fix Incorrect English article
hoangzinh 8de2a8a
Fix spellcheck on vowel list
hoangzinh 54e7072
Remove AEIOU out of spellcheck
hoangzinh 2ea2125
Apply suggestion from reviewer
hoangzinh 3e6035a
Correct expense name and add hover affect receipt
hoangzinh 7b67715
Remove unused localisation
hoangzinh e778639
Refactor code
hoangzinh e7b0c6f
Fix prettier
hoangzinh cf9f533
Fix type check
hoangzinh 165f41d
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 8bba02d
Adjust border radius and selected background
hoangzinh a3c6ac6
Should navigate to the confirmation page when there is no conflict
hoangzinh 5b0ab84
Fix unable to view receipt image when it's a PDF file
hoangzinh 4fb2c4f
Fix unable to view receipt image for source transaction
hoangzinh b5b0b31
Do not highlight when a source transaction is selected
hoangzinh 6990440
Run prettier
hoangzinh a63432d
Swap border radius
hoangzinh 0924310
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 940b5bf
Fix unable to load sourceTransaction when merge with card expense
hoangzinh af6e060
Ensure display positive amount number
hoangzinh 2abc8f7
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 0c5bc2d
Apply reviewer suggestion
hoangzinh 666ba84
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 07d285c
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 0c37ce9
Fallback to get transaction from mergeTransaction
hoangzinh d268da4
Update comment feedback
hoangzinh 7291742
Fix confirmation page doesn't show details when merge with a card tra…
hoangzinh 19a2abb
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 9881633
Display button spinner instead of full page loading when checking rep…
hoangzinh df2c95e
Merge branch 'main' into merge-expenses-phase-1
hoangzinh 613de45
Ensure transaction thread report is loaded completely
hoangzinh 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
194 changes: 194 additions & 0 deletions
194
assets/images/simple-illustrations/simple-illustration__empty-shelves.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| "ADDCOMMENT", | ||
| "Addendums", | ||
| "ADFS", | ||
| "aeiou", | ||
| "Aeroplan", | ||
| "águero", | ||
| "Aircall", | ||
|
|
||
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
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
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.