-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Refactor the money request creation flow #28618
Merged
Merged
Changes from all commits
Commits
Show all changes
282 commits
Select commit
Hold shift + click to select a range
5419e47
Remove weird props
tgolen 100cf3c
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen d58ec44
Finish participant selector
tgolen 293f393
Rename things to be steps instead of fields
tgolen 2e4cd78
More step renaming
tgolen 04f0265
Fix a missing constant name
tgolen ed3ed9b
Add skeleton confirm page
tgolen b41b910
WIP on building confirmation page
tgolen f738843
Finish adding the pieces for the confirmation flow
tgolen 7b9c7a1
Introduce backTo param to confirmation step
tgolen 7788e70
Add confirmation page to routes
tgolen f82892b
Auto assign participants from report
tgolen 35b380f
Remove backto prop
tgolen a28025f
Work on confirmation page
tgolen 6450c27
Get the comment and description fields working
tgolen 722a55a
Get distance step built
tgolen 187fabd
Get description step working
tgolen 17bf4b0
Clean up imports
tgolen 386de4f
Build the date step
tgolen 3c24286
Build the row for distance confirmation
tgolen d8576d8
Get the category row working
tgolen 3caa941
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 8526f16
Implement new transactionutils methods
tgolen c568fdd
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 90b9f49
Make a copy of the confirmation list
tgolen 6412175
Fix policy props
tgolen 8ed97c0
Properly set the reportID for confirmation step
tgolen c25ee81
WIP on adding the new tag page
tgolen 97954fc
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen cc4abe7
Apply style changes
tgolen 9bce13f
Get tag step implemented
tgolen 9aad4e1
Add some cleanup comments
tgolen aeed0ab
WIP on navigating back to confirmation
tgolen 328a423
Add some WIP reminders
tgolen ed1b6ae
Change optimistic ID
tgolen 409bafb
Pass the route using context API
tgolen 6db7d0e
WIP on removing the CreateTab components
tgolen eed6583
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 8b71fb5
Implement draggable list into distance screen
tgolen 1ffcbcc
Rename file and remove unused components
tgolen 97994ab
Refactor how the steps are rendered
tgolen 43ef40e
Add a screen wrapper component
tgolen de60721
Use the screen wrapper on the distance step
tgolen 79db914
WIP on trying to get participants to work
tgolen 374b199
Only store a subset of the participant data
tgolen 8dbb294
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 22bc057
Start working on displaying the amount step
tgolen 678c94a
Build out the currency selection step
tgolen 12ff7dd
Get the initial currency selection page working
tgolen b773de4
Get back navigation working from currency selection
tgolen a554d6f
Use the current route instead
tgolen d5943c6
Refactor button label
tgolen b483c6f
Remove unused libs
tgolen 66089d6
Have tabs properly reset the type of request
tgolen c2d59a5
Implement the confirmation page for amount
tgolen d413621
Clear transaction when cancelling out of modal
tgolen 72a9918
Remove route context
tgolen 4aa9646
Clear out unused variables
tgolen 48c93e7
Remove more context provider
tgolen 6589b05
Fix logic
tgolen 1139a59
Add the initial scan page
tgolen c2642f4
Rebuild the receipt selector page
tgolen 15514d9
Make similar changes to native file
tgolen c30aafb
Rename the waypoint index
tgolen e4333a2
Navigate to the participant page
tgolen 2efaa42
Build out the merchant page
tgolen 0de7c4a
Use step screen wrapper in most steps
tgolen 453e6b8
DRY up the route prop types
tgolen 5333c4d
Fix a few little errors
tgolen 155d13f
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 6efd975
Cleanup some consts and proptypes
tgolen 6cd5204
Remove a bunch of TODOs and record them in an issue instead
tgolen 7e43f80
Remove extra not found component
tgolen 0317dbc
Use DRY prop types
tgolen c35d0dc
Remove unused module
tgolen c8b5899
Make code consistent
tgolen f12a0c5
Give utility method positive framing
tgolen 193da0d
Check write actions for report
tgolen bb77d23
Make prop destructuring consistent
tgolen e4bc8af
Get the add receipt step working
tgolen a4abf65
Handle auto participants better
tgolen 6760c12
Create distance requests
tgolen af34c53
Remove debug
tgolen 85856ca
Set min and max date
tgolen fcf4377
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 90a18ff
Remove todo
tgolen befff2e
Remove extra params and let money requests be created
tgolen 26935d7
Get smartscan working
tgolen 49d49c6
Finish the split flow
tgolen 11fe0f0
Clean up request creation
tgolen d63fd90
Make sure the billable flag works
tgolen d8486fc
Make sure editing receipt images will still work
tgolen 053c8ab
Remove todo about splits
tgolen 524636b
Remove unnecessary TODO
tgolen e9c60fe
Get image options working
tgolen 6bae517
Rename constants
tgolen a9c3824
More renaming of constants
tgolen 0eedab8
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen b23fd32
Apply changes from existing components to copied components
tgolen d832bc7
Apply changes from main
tgolen d5f78da
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen c50f553
Copy changes from main
tgolen d83122c
Copy changes from main
tgolen 0391d71
Fix errors while creating requests
tgolen 3e82cd2
Fix splits
tgolen 8a151ae
Remove patch changes
tgolen 44d7f55
Put back some pages that weren't supposed to be removed
tgolen dfd3a31
Fix style
tgolen 906f9e1
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 44b101a
Readd style to file from main
tgolen ad3c794
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 8da6202
Reorganize files to create less conflicts
tgolen a78616b
Rename temporary refactor methods
tgolen 060b3ab
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen d7990a3
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen fac2d89
Fix constant and use new method for getting URL
tgolen 1da3fee
Remove extra space and clean up comments
tgolen fdcc21c
Remove unused translation
tgolen ddf5cd6
Fix import paths
tgolen 5705811
Fix missing parenthesis
tgolen 78afd93
Include changes from main
tgolen f028249
Copy changes from main
tgolen 1cde38c
Copy changes from main
tgolen 80dd8af
Copy changes from main
tgolen cfe14ec
Remove unused imports
tgolen 0af0542
Copy changes from main
tgolen f07b292
Copy changes from main
tgolen acac7e5
Copy changes from main
tgolen 77d27d4
Copy changes from main
tgolen 25d0248
Remove redundant code
tgolen 777f0cd
Fixing lint
tgolen dd8ff74
Run prettier on everything
tgolen dd7bad6
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen ad67201
Rename some of the route stuff
tgolen db26078
Remove withreportornotfound
tgolen ac423e4
Rename route and fix participant step
tgolen 92ee191
More renaming routes
tgolen 0a1fb85
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 0d4ddde
Store filename and source properly on transaction
tgolen 254cf6f
Get the file upload working properly
tgolen 7c490fc
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 81dc694
Update component from main
tgolen 29bfe11
Get the distance flow working
tgolen 04ec59f
Remove old param
tgolen b086765
Rename to use a temporary collection
tgolen 6238dd9
Get participants working
tgolen ac94cde
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen b5271c3
Change the name of the onyx collection
tgolen 4b36b05
Improve comment
tgolen 7050ad5
Rename methods
tgolen 254383b
Add comment and change method for generating report ID
tgolen 241051d
Use a specific method for clearing a money request
tgolen 28eeedb
Use date-fns instead of moment
tgolen f03619f
Use form provider
tgolen 5ed5e2f
Rename method
tgolen 0caf279
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 1840f43
Clear the request if the reportID changes
tgolen 0f754ca
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 0ccb8ad
Updating comments mostly
tgolen 90c69ee
Refactored to destructure props
tgolen 2e6ac79
Fix navigation when going back from the participants step
tgolen 5388eb6
Fix merchant text field
tgolen fd38907
Fix undefined const reference
tgolen e0a238e
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen a96c7e6
Redirect to start step if image doesn't exist
tgolen 8cad1cb
Store routes on draft transaction
tgolen 8011081
Fix TS error
tgolen 7917175
Put back in the old components so things can be edited
tgolen 5383afd
Use last accessed report ID
tgolen aae45d4
Remove unused import
tgolen 17e36a2
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 1344392
Update src/libs/actions/IOU.js
tgolen 5605c99
DRY up code for refreshing during new scan request
tgolen eb769cb
Fix the header title
tgolen 9dc3c3b
Move refresh code to the right component
tgolen 271fee3
Pass transaction instead of loading it
tgolen d7e2597
Fix back navigation from confirmation step
tgolen 14455ab
Properly set the participants of a distance request
tgolen a19d1cc
Clear draft transaction in optimistic data
tgolen e41b210
Define function type and fix lint
tgolen c86b7a7
Fix some navigation animations
tgolen a5461f9
Fix the redirection to new user report
tgolen e30077a
Fix back navigation
tgolen 10eec00
Fix animation direction
tgolen a03d794
Split out routes
tgolen e9f1b49
Export the current path
tgolen a28cf1c
Remove unused file and constant
tgolen b1305b3
Create HOC to check permissions
tgolen 18c3fec
Implement new HOC on all steps
tgolen bd1905b
Make back navigation consistent
tgolen 025530b
Go to distance step directly
tgolen 07db437
Remove unused constant
tgolen 0e596ca
Remove temporary name from routes
tgolen 751f7b6
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 040a53b
Remove betas
tgolen c2c568c
Remove unused import
tgolen c5fe5ee
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 98c6711
Copy changes from main
tgolen 253fabf
Copy changes from main
tgolen c6f64ce
Copy changes from main
tgolen f35dfc3
Copy changes from main
tgolen 54fc262
Copy changes from main
tgolen 280c36e
Copy changes from main
tgolen fe619c5
Copy changes from main
tgolen d1b3a0a
Copy changes from main
tgolen 25738e7
Copy changes from main
tgolen e0db3cb
Copy changes from main
tgolen 448fae0
Copy changes from main
tgolen 0677e57
Copy changes from main
tgolen 5a6434c
Copy changes from main
tgolen 29adc2d
Copy changes from main
tgolen ae0a23c
Clean up param
tgolen fc4531b
Cleaning up library refs
tgolen 541c008
Add dependent variables to array
tgolen 860c6f9
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen bf04cd7
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen b0eaeac
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 807676b
Use proper method for getting the active route
tgolen 25bb617
Copy changes from main
tgolen 8c38b6d
Fix Expense - App crashes when opening Category list in confirmation …
tgolen 5a1e22b
Remove unused beta reference
tgolen 9b8cf0f
Fix Expense - 'Amount' header disappears after selecting currency in …
tgolen f4a57f5
Fix Expense - Previously entered amount is not preserved after changi…
tgolen b0e14ea
Fix Expense - Missing header in Add receipt modal
tgolen 9439da4
Fix Expense - Description input field does not expand when adding mul…
tgolen e437327
Fix Expense - Opening IOU preview in IOU report page redirects user b…
tgolen d7d650f
Fix Distance - iou.error.duplicateWaypointsErrorMessage when proceedi…
tgolen 5d3b797
Fix Distance - Addresses in Recent destinations show one-line format
tgolen d1ec9ee
Distance - Unable to delete a waypoint
tgolen c20ea70
Fix Distance - Red dot briefly appears next to Amount in distance det…
tgolen 3846589
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 24e39fa
Fix console error
tgolen f53fa56
Fix Request - User is redirected to participant selection page after …
tgolen 0116a1f
Fix Request Money - Tag is not being deselected
tgolen 6cff8ba
Fix Send money - Send money in 1:1 DM opens Request money RHP
tgolen 968f39f
Fix - IOU - To field is empty and Amount is $NaN when opening confirm…
tgolen 459c2df
Fix Request – User can drag & drop file on the Distance page. The map…
tgolen e48b513
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 7a4c276
Add "as const" to fix TS errors
tgolen 4c61f05
Add missing hook dependency
tgolen bfb2a30
Fix the reordering of waypoints
tgolen 8d14eff
Update MoneyTemporaryForRefactorRequestParticipantsSelector.js
tgolen 6eef6b5
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 41c9252
Remove extra import
tgolen c04ca80
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen b884e29
Fix component reference
tgolen ecd5bf3
Fix scan page loading indefinitely
tgolen 923b452
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen 91c4ee1
Merge branch 'main' into tgolen-refactor-request-navigation2
tgolen e153f6c
Implement screen refactoring
tgolen 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.
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.
Coming from #33205 (comment)
The routes added here have a trailing
/
. It lead to inconsistenecy because our routes don't have trailing slashes.There was also a bug that broke "go back" because our code didn't handle trailing slashes.