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

[SMARTSCAN] [HOLD for payment 2023-09-27] [$500] HIGH: Receipt modal closes when API response updates image url #26828

Closed
6 tasks done
luacmartins opened this issue Sep 5, 2023 · 44 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. SmartScan Wave5-free-submitters Weekly KSv2

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Sep 5, 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:

  1. Request money via Scan option
  2. Tap the report preview
  3. Tap the request preview
  4. Tap the receipt image
  5. Verify that the modal opens
  6. Wait for a bit and notice that the modal closes

Video:
#26815 (comment)

Expected Result:

Modal should remain open

Actual Result:

Modal closes when API response updates the image URL

Workaround:

Reopen the modal

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:
Reproducible in staging?:
Reproducible in production?:
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
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019f02e5a5c44adaa8
  • Upwork Job ID: 1701050065977769984
  • Last Price Increase: 2023-09-11
  • Automatic offers:
    • tienifr | Contributor | 26663318
@luacmartins luacmartins added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 5, 2023
@luacmartins luacmartins self-assigned this Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 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

@bernhardoj
Copy link
Contributor

When the API response updates the image source, the old (local) source will be considered deleted. If it's deleted, we will dismiss the attachment modal.

// Dismiss the modal when deleting an attachment during its display in preview.
if (initialPage === -1 && _.find(attachments, (a) => a.source === source)) {
Navigation.dismissModal();
} else {

There is a previous discussion about this behavior here but there is no action taken yet.

@allroundexperts
Copy link
Contributor

I think we can also just disable the carousel when the image is being uploaded. This can be done by adding enableOnPreview conditionally if the source starts with blob here.

@luacmartins
Copy link
Contributor Author

Thanks for the link @allroundexperts! It seems like we're treating this as a new feature. So I'll remove the bug label, add new feature, mark it external and bump it to weekly for now.

@luacmartins luacmartins added Weekly KSv2 NewFeature Something to build that is a new item. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

Current assignee @bfitzexpensify is eligible for the NewFeature assigner, not assigning anyone new.

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Sep 11, 2023
@melvin-bot melvin-bot bot removed the Daily KSv2 label Sep 11, 2023
@melvin-bot melvin-bot bot changed the title Receipt modal closes when API response updates image url [$500] Receipt modal closes when API response updates image url Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

Job added to Upwork: https://www.upwork.com/jobs/~019f02e5a5c44adaa8

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

melvin-bot bot commented Sep 11, 2023

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

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

@tienifr
Copy link
Contributor

tienifr commented Sep 11, 2023

Proposal

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

Modal closes when API response updates the image URL

What is the root cause of that problem?

In here, we'll dismiss the modal if the source of an image change since we assume that the image was deleted, however it was not true in this case since the image is the same, it's just local source is different from the Expensify source.

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

If the source changes, but another unique identifier of the image (for example the transactionID in this case) remains the same, then we don't consider the image as deleted, and avoid this issue.

The user in that case will still see the local image, or will see the Expensify-source image being loaded on top when it's available, depending on our preference.

What alternative solutions did you explore? (Optional)

If we don't want to show the carousel if the image is being uploaded, we can disable enableOnPreview here if we detect that the image is a local one. If we still want to show the carousel if the user is in offline mode, we can check for that as well.

@melvin-bot melvin-bot bot added the Overdue label Sep 13, 2023
@luacmartins
Copy link
Contributor Author

Still looking at proposals

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2023
@dylanexpensify
Copy link
Contributor

@luacmartins do we think we'll have this completed by Fancy week?

@melvin-bot melvin-bot bot added the Overdue label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

@luacmartins, @bfitzexpensify, @thesahindia, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@luacmartins
Copy link
Contributor Author

Still waiting on #27824

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 16, 2023
@bfitzexpensify
Copy link
Contributor

Same update, still waiting on #27824

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

@luacmartins, @bfitzexpensify, @thesahindia, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@luacmartins
Copy link
Contributor Author

Gonna move this to weekly while it's on hold

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@luacmartins luacmartins added Weekly KSv2 and removed Daily KSv2 labels Oct 23, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 1, 2023
@bfitzexpensify
Copy link
Contributor

Still on hold for the moment

@melvin-bot melvin-bot bot removed the Overdue label Nov 1, 2023
@dylanexpensify dylanexpensify changed the title [HOLD for payment 2023-09-27] [$500] HIGH: Receipt modal closes when API response updates image url [SMARTSCAN] [HOLD for payment 2023-09-27] [$500] HIGH: Receipt modal closes when API response updates image url Nov 7, 2023
@dylanexpensify dylanexpensify added the SmartScan Wave5-free-submitters label Nov 7, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 9, 2023
@luacmartins
Copy link
Contributor Author

still waiting on #27824

@melvin-bot melvin-bot bot removed the Overdue label Nov 9, 2023
@dylanexpensify
Copy link
Contributor

27824 is merged and deployed! What's next here?

@dylanexpensify
Copy link
Contributor

Actually, confirmed - this bug doesn't exist any longer. @bfitzexpensify feel free to complete the remaining steps!

@bfitzexpensify
Copy link
Contributor

Sweet. We left this open to address a regression from the initial work done here. Payments here are all complete, the BZ checklist was also completed. Now that that's solved, we can close this one out.

@thesahindia
Copy link
Member

Hey @bfitzexpensify, can you please comment the payment summary?

@thesahindia
Copy link
Member

Bump @bfitzexpensify

@bfitzexpensify
Copy link
Contributor

Sorry, missed your message the other day. Payment summary:

Contributor: @tienifr $500 paid via Upwork
C+: @thesahindia $500 to be paid via manual request

@JmillsExpensify
Copy link

$500 payment approved for @thesahindia based on comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. SmartScan Wave5-free-submitters Weekly KSv2
Projects
No open projects
Development

No branches or pull requests

8 participants