Skip to content
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

[$1000] mWeb/safari - IOU - Endless spinner displayed when open the Detail page while offline #15568

Closed
1 of 6 tasks
kbecciv opened this issue Feb 28, 2023 · 17 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented Feb 28, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

Pre: Account A requested money from Account B

  1. Login to account B on mweb
  2. Disable the internet connection on the device
  3. Tap on Pay button

Expected Result:

NO endless spinner displayed when open the Detail page while offline

Actual Result:

Endless spinner displayed when open the Detail page while offline

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.2.77.1

Reproducible in staging?: Yes

Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

RPReplay_Final1677604368.MP4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fcbd7caeb271e664
  • Upwork Job ID: 1631151597307060224
  • Last Price Increase: 2023-03-02
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 28, 2023
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 28, 2023
@MelvinBot
Copy link

Triggered auto assignment to @stephanieelliott (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@MelvinBot
Copy link

MelvinBot commented Feb 28, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kbecciv kbecciv changed the title IOU - Endless spinner displayed when open the IOU page while offline IOU - Endless spinner displayed when open the Detail page while offline Feb 28, 2023
@kbecciv kbecciv changed the title IOU - Endless spinner displayed when open the Detail page while offline mWeb/safari - IOU - Endless spinner displayed when open the Detail page while offline Feb 28, 2023
@stephanieelliott
Copy link
Contributor

This one seems like it can be worked on by an external contributor!

@stephanieelliott stephanieelliott added the External Added to denote the issue can be worked on by a contributor label Mar 2, 2023
@melvin-bot melvin-bot bot unlocked this conversation Mar 2, 2023
@melvin-bot melvin-bot bot changed the title mWeb/safari - IOU - Endless spinner displayed when open the Detail page while offline [$1000] mWeb/safari - IOU - Endless spinner displayed when open the Detail page while offline Mar 2, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~01fcbd7caeb271e664

@MelvinBot
Copy link

Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new.

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 2, 2023
@MelvinBot
Copy link

Triggered auto assignment to @madmax330 (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@bernhardoj
Copy link
Contributor

The IOU details page design will be changed completely here and I think we should hold for it.

@osofus
Copy link

osofus commented Mar 2, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Endless spinner is displayed when trying to pay using PayPal when offline.

What is the root cause of that problem?

The app is trying to open a paypal.me URL, which is not possible, since the app is offline.

This is happening in functions sendMoneyViaPaypal in IOU.js:
asyncOpenURL(Promise.resolve(), buildPayPalPaymentUrl(amount, recipient.payPalMeAddress, currency));

& payMoneyRequestViaPaypal in IOU.js:
asyncOpenURL(Promise.resolve(), buildPayPalPaymentUrl(iouReport.total, recipient.payPalMeAddress, iouReport.currency));

What changes do you think we should make in order to solve the problem?

The above asyncOpenURL function should be called only if network is available.

@thesahindia
Copy link
Member

The IOU details page design will be changed completely here and I think we should hold for it.

Thanks for the information @bernhardoj!

@madmax330, should we put this on hold?

@melvin-bot melvin-bot bot added the Overdue label Mar 6, 2023
@madmax330
Copy link
Contributor

@thesahindia I think this might be a dupe of that issue since in the comments I see a lot of discussion about the endless spinner.
cc @dangrous what do you think, is this a dupe, should we put it on hold?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 6, 2023
@madmax330
Copy link
Contributor

seems @dangrous is OOO this might be a dupe, tagging others from that issue for your thoughts @shawnborton @JmillsExpensify @trjExpensify

@melvin-bot melvin-bot bot removed the Overdue label Mar 9, 2023
@trjExpensify
Copy link
Contributor

oh hm, maybe. The idea on the hold for the other issue is to reduce the chance of conflicts if we were to introduce a skeleton UI for iouDetails when loading now. @Julesssss summarised it pretty succinctly here.

iouDetails should load when offline now though, I'm not sure why we're running into an endless spinner all of a sudden? 😕

@Julesssss
Copy link
Contributor

I'm unable to reproduce on Android mWeb, are we sure this still exists?

android-offline.mp4

@Julesssss Julesssss self-assigned this Mar 9, 2023
@Julesssss
Copy link
Contributor

I think we should close, unless anyone else is able to reproduce this issue.

@osofus
Copy link

osofus commented Mar 9, 2023

I can't reproduce either!

@trjExpensify
Copy link
Contributor

For good measure, me neither on iOS Safari which it was reported on 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

9 participants