Add offline message to IOU and Split bill and allow currency selection while offline#4019
Add offline message to IOU and Split bill and allow currency selection while offline#4019
Conversation
63d5d7b to
de88d27
Compare
marcaaron
left a comment
There was a problem hiding this comment.
Just to clarify, it seems like this PR is solving two separate issues?
- Disallow creating IOUs while offline
- Preventing requests to get a preferred currency while offline from "hanging" because promises that should not be retried never resolve.
The code changes for 1 look straightforward. I'd like to discuss the changes for 2 some more also wondering whether this can be solved by adding some kind of default currency as suggested here
|
Hey @marcaaron! Thank you so much for the awesome feedback - I really appreciate it!
Correct! The goal for 2 is to allow users to go through the IOU flow and get to the confirmation page while offline. We currently set a default currency, but the issue is that we never set |
de88d27 to
8f10ad7
Compare
|
Updated! Changes to |
|
Updated with requested changes! I will create a PR in Web-E renaming |
|
Updated! |
|
Leaving this to @marcaaron, as he also requested changes |
marcaaron
left a comment
There was a problem hiding this comment.
LGTM! Left some small comments
|
Updated! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Add offline message to IOU and Split bill and allow currency selection while offline (cherry picked from commit fd92e19)
|
I requested a CP for this PR as deploying it will fix this issue sooner. Until then, some users will not be able to make IOU requests. Update: I just realized this wasn't necessary as we already had a PR on staging which made the API change 🤦 |
|
🚀 Deployed to staging in version: 1.0.79-4🚀
|
|
🚀 Deployed to production in version: 1.0.79-4🚀
|
|
🚀 Deployed to staging in version: 1.0.79-5🚀
|
|
🚀 Deployed to production in version: 1.0.80-2🚀
|
cc @chiragsalian
cc @tgolen and @marcaaron because of changes to
processNetworkRequestQueueCurrently, requests that are sent offline and should not be retried are hanging since the promises never resolve. This PR should solve that and allow users to go through the currency selection, as well as see an offline error message on the confirmation page.
Fixed Issues
$ #3792
Tests
Request MoneyLooks like you're offline. Please check your connection and try again.error message on the request confirmation page.Split BillLooks like you're offline. Please check your connection and try again.error message on the request confirmation page.QA Steps
Steps above.
Tested On
Screenshots
Web
web.mov
Mobile Web
mobile-web.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov