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

[HOLD for payment 2023-09-13] [$500] Tapping download on download banner should deeplink to App and dismiss banner #26706

Closed
JmillsExpensify opened this issue Sep 4, 2023 · 30 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@JmillsExpensify
Copy link

JmillsExpensify commented Sep 4, 2023

We recently added a download banner as part of our sign-up flow for upcoming conferences, though oddly, if you tap download and we correctly deeplink you to the App Store, the download banner still appears.

Image

Solution: We should dismiss the download banner no matter which option a user choose, either ignore or `download1.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015d3134e73e0c4471
  • Upwork Job ID: 1698771665257160704
  • Last Price Increase: 2023-09-04
@JmillsExpensify JmillsExpensify self-assigned this Sep 4, 2023
@JmillsExpensify JmillsExpensify converted this from a draft issue Sep 4, 2023
@JmillsExpensify JmillsExpensify added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new.

@melvin-bot
Copy link

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

@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label Sep 4, 2023
@melvin-bot melvin-bot bot changed the title Tapping download on download banner should deeplink to App and dismiss banner [$500] Tapping download on download banner should deeplink to App and dismiss banner Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

Job added to Upwork: https://www.upwork.com/jobs/~015d3134e73e0c4471

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

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@b4s36t4
Copy link
Contributor

b4s36t4 commented Sep 4, 2023

Proposal

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

Tapping download on download banner should deeplink to App and dismiss banner

What is the root cause of that problem?

We we click on download we're just opening the app using deeplink but not closing the modal.

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

We should close the modal by setting state here. in this function

const handleOpenAppStore = () => {

setshouldShowBanner & setShowDownloadAppModal to false.

What alternative solutions did you explore? (Optional)

NA

@allroundexperts
Copy link
Contributor

allroundexperts commented Sep 4, 2023

Proposal

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

We're not closing the download app banner after clicking download.

What is the root cause of that problem?

In the handleOpenAppStore function, we're not closing the modal.

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

We need to add the following in the handleOpenAppStore method:

        setShowDownloadAppModal(false);
        setshouldShowBanner(false);

This will also save the modal visibility in Onyx so that it does not appear again in the user session.

What alternative solutions did you explore? (Optional)

None

@allroundexperts
Copy link
Contributor

For the person reviewing this, please note that I proposed the complete solution earlier.

@b4s36t4
Copy link
Contributor

b4s36t4 commented Sep 4, 2023

I agree with @allroundexperts, he proposed the full solution (setShowDownloadAppModal) includes this. It took me sometime to verify my solution and update it.

@parthpvaghani
Copy link

parthpvaghani commented Sep 4, 2023

Proposal

What is the root cause of that problem?
In the handleOpenAppStore function, we're not closing the modal by not calling the handleCloseBanner function.

What changes do you think we should make in order to solve the problem?
We need to make sure we first call handleCloseBanner function inside handleOpenAppStore function so that visually UI/UX wise it represents the closing modal and then visits the external app Url

const handleOpenAppStore = () => {
    handleCloseBanner()
    Link.openExternalLink(link, true);
};

What alternative solutions did you explore? (Optional)

1st >>
const handleOpenAppStore = () => {
setShowDownloadAppModal(false);
setshouldShowBanner(false);
Link.openExternalLink(link, true);
};

2nd >>
We can remove custom logic being set from our DownloadAppModal component and move it to the upper-level parent component

so shouldShowBanner and onClose be propped to our DownloadAppModal and we can utilise it anymore with more controls in the future with callback

const handleOpenAppStore = () => {
    if (onClose) {
        onClose();
    }
    Link.openExternalLink(link, true);
};

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

📣 @parthpvaghani! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@parthpvaghani
Copy link

Contributor details
Your Expensify account email: parthvaghani14@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/pvaghani

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@narefyev91
Copy link
Contributor

Proposal from @allroundexperts looks good to me #26706 (comment)
🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

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

melvin-bot bot commented Sep 5, 2023

📣 @allroundexperts Please request via NewDot manual requests for the Contributor role ($500)

@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@narefyev91 / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@narefyev91 / @allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@narefyev91 / @allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@narefyev91 / @allroundexperts] Determine if we should create a regression test for this bug.
  • [@narefyev91 / @allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@JmillsExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Sep 13, 2023
@JmillsExpensify
Copy link
Author

@allroundexperts Mind getting us kick off with the bug zero checklist?

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2023
@JmillsExpensify
Copy link
Author

In the meantime, here's the payment summary:

@melvin-bot melvin-bot bot added the Overdue label Sep 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

@JmillsExpensify, @cristipaval, @narefyev91, @allroundexperts Huh... This is 4 days overdue. Who can take care of this?

@narefyev91
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: - it's a fully additional functionality which was not coming from any regressions
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • Determine if we should create a regression test for this bug. N/A

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

@JmillsExpensify, @cristipaval, @narefyev91, @allroundexperts Eep! 4 days overdue now. Issues have feelings too...

@cristipaval
Copy link
Contributor

@JmillsExpensify @allroundexperts what's the status for te payment here?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 25, 2023
@cristipaval
Copy link
Contributor

bump @JmillsExpensify @allroundexperts

@melvin-bot melvin-bot bot removed the Overdue label Sep 28, 2023
@allroundexperts
Copy link
Contributor

@cristipaval I have requested the payment in ND. Waiting for @JmillsExpensify to approve the request!

@melvin-bot melvin-bot bot added the Overdue label Oct 2, 2023
@cristipaval
Copy link
Contributor

Alright, @JmillsExpensify might be delayed with some chores due to the traveling over the weekend.

@cristipaval
Copy link
Contributor

It seems that @JmillsExpensify was ooo last days. He'll hopefully take care of this one soon.

@melvin-bot melvin-bot bot removed the Overdue label Oct 4, 2023
@JmillsExpensify
Copy link
Author

$750 payment approved for @allroundexperts based on BZ summary.

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Development

No branches or pull requests

7 participants