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-10-24] [$250] Additional Details - Duplicate offline indicator in Enable Payment Page. #29438

Closed
6 tasks done
kbecciv opened this issue Oct 12, 2023 · 28 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

@kbecciv
Copy link

kbecciv commented Oct 12, 2023

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


Version Number: 1.3.81-0
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697012903021189

Action Performed:

  1. Login with any account
  2. Go to Enable Payment page (/enable-payments).
  3. Go offline
  4. Observer the offline indicator.

Expected Result:

Offline indicator shouldn't duplicate

Actual Result:

Duplicate offline indicator is duplicate

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native

Screenshot 2023-10-11 at 15 31 17

Android: mWeb Chrome

Screenshot_20231012_085923_Chrome (1)

iOS: Native
RPReplay_Final1697012763.MP4
iOS: mWeb Safari
RPReplay_Final1697073270.MP4
MacOS: Chrome / Safari

Screenshot 2023-10-11 at 15 32 03

MacOS: Desktop

Screenshot 2023-10-11 at 15 31 37

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014c703cecba895920
  • Upwork Job ID: 1712458057448759296
  • Last Price Increase: 2023-10-12
  • Automatic offers:
    • akinwale | Reviewer | 27183809
    • hungvu193 | Contributor | 27183810
    • hungvu193 | Reporter | 27183812
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 12, 2023
@melvin-bot melvin-bot bot changed the title Additional Details - Duplicate offline indicator in Enable Payment Page. [$500] Additional Details - Duplicate offline indicator in Enable Payment Page. Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

Job added to Upwork: https://www.upwork.com/jobs/~014c703cecba895920

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

melvin-bot bot commented Oct 12, 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

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

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

@kbecciv
Copy link
Author

kbecciv commented Oct 12, 2023

Proposal by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697012903021189

Proposal

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

Offline Indicator is duplicate at Enable Payment page when offline.

What is the root cause of that problem?

We're using ScreenWrapper to wrap our logic of EnablePaymentPage here, however inside AdditionalDetailsStep we also have the OfflineIndicator which caused this issue:

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={EnablePaymentsPage.displayName}

<OfflineIndicator containerStyles={[styles.mh5, styles.mb3]} />

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

Since ScreenWrapper already had the OfflineIndicator itself. We can remove OfflineIndicator inside AdditionalDetailsStep.

Deep diving, AdditionalDetailsStep have another view with ScreenWrapper here:

if (!_.isEmpty(walletAdditionalDetails.questions)) {
return (
<ScreenWrapper
style={[styles.flex1, styles.pt0]}

We should add shouldShowOfflineIndicator={false} to this ScreenWrapper, or replace it with View to avoid duplicate OfflineIndicator.

Also inside OnfidoStep, we have FullPageOfflineBlockingView, so when we render the OnfidoStep we will have both FullPageOfflineBlockingView and OfflineIndicator at the bottom:

<FullPageOfflineBlockingView>
{shouldShowOnfido ? (
<Onfido

we should avoid that by adding props shouldShowOfflineIndicator to our ScreenWrapper of EnablePaymentsPage component with the condition that only show the OfflineIndicator when offline and the currentStep is not Onfido.

What alternative solutions did you explore? (Optional)

N/A

@hungvu193
Copy link
Contributor

Proposal by: @hungvu193 Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697012903021189

Proposal

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

Offline Indicator is duplicate at Enable Payment page when offline.

What is the root cause of that problem?

We're using ScreenWrapper to wrap our logic of EnablePaymentPage here, however inside AdditionalDetailsStep we also have the OfflineIndicator which caused this issue:

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={EnablePaymentsPage.displayName}

<OfflineIndicator containerStyles={[styles.mh5, styles.mb3]} />

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

Since ScreenWrapper already had the OfflineIndicator itself. We can remove OfflineIndicator inside AdditionalDetailsStep.

Deep diving, AdditionalDetailsStep have another view with ScreenWrapper here:

if (!_.isEmpty(walletAdditionalDetails.questions)) {
return (
<ScreenWrapper
style={[styles.flex1, styles.pt0]}

We should add shouldShowOfflineIndicator={false} to this ScreenWrapper, or replace it with View to avoid duplicate OfflineIndicator.
Also inside OnfidoStep, we have FullPageOfflineBlockingView, so when we render the OnfidoStep we will have both FullPageOfflineBlockingView and OfflineIndicator at the bottom:

<FullPageOfflineBlockingView>
{shouldShowOnfido ? (
<Onfido

we should avoid that by adding props shouldShowOfflineIndicator to our ScreenWrapper of EnablePaymentsPage component with the condition that only show the OfflineIndicator when offline and the currentStep is not Onfido.

What alternative solutions did you explore? (Optional)

N/A

@mountiny mountiny changed the title [$500] Additional Details - Duplicate offline indicator in Enable Payment Page. [$250] Additional Details - Duplicate offline indicator in Enable Payment Page. Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

Upwork job price has been updated to $250

@mountiny
Copy link
Contributor

decreasing the price as its minor issue

@gs3bopar
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~0176028098f8a29acb

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

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

@sobitneupane
Copy link
Contributor

@laurenreidexpensify I will be unavailable next week. Therefore, I am unassigning myself from the issue. Please feel free to assign it to another C+.

@sobitneupane sobitneupane removed their assignment Oct 13, 2023
@laurenreidexpensify laurenreidexpensify added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Oct 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

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

@ghost
Copy link

ghost commented Oct 13, 2023

I m interested to work

@akinwale
Copy link
Contributor

@hungvu193's proposal correctly identifies the root cause and the suggested solution is comprehensive enough with attention to detail. I recommend moving forward with this.

🎀 👀 🎀 C+ reviewed.

@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

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

@robertjchen
Copy link
Contributor

Thanks, the proposal makes sense to me 👍

@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

📣 @hungvu193 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

📣 @hungvu193 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 15, 2023

🎯 ⚡️ Woah @akinwale / @hungvu193, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @hungvu193 got assigned: 2023-10-13 17:21:39 Z
  • when the PR got merged: 2023-10-15 15:12:25 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 17, 2023
@melvin-bot melvin-bot bot changed the title [$250] Additional Details - Duplicate offline indicator in Enable Payment Page. [HOLD for payment 2023-10-24] [$250] Additional Details - Duplicate offline indicator in Enable Payment Page. Oct 17, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.85-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-10-24. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 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:

  • [@akinwale] The PR that introduced the bug has been identified. Link to the PR:
  • [@akinwale] 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:
  • [@akinwale] 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:
  • [@akinwale] Determine if we should create a regression test for this bug.
  • [@akinwale] 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.
  • [@laurenreidexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@laurenreidexpensify laurenreidexpensify added Daily KSv2 and removed Weekly KSv2 labels Oct 24, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 24, 2023
@laurenreidexpensify
Copy link
Contributor

Payment Summary

  • @akinwale - C+ $250 + 50% urgency bonus - payment issued in Upwork
  • @hungvu193 - Bug Report $50 - payment issued in Upwork
  • @hungvu193 - Issue Fix $250 + 50% urgency bonus - payment issued in Upwork

@melvin-bot melvin-bot bot added Daily KSv2 and removed Overdue Daily KSv2 labels Oct 24, 2023
@laurenreidexpensify
Copy link
Contributor

@akinwale bump for checklist so we can close this one out. Thanks

@akinwale
Copy link
Contributor

@akinwale bump for checklist so we can close this one out. Thanks

Will get to it in a few hours.

@akinwale
Copy link
Contributor

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:

  • [@akinwale] The PR that introduced the bug has been identified. Link to the PR:
  • [@akinwale] 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:
  • [@akinwale] 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:

Not a regression. This particular case was missed when the Additional Details page was added.

  • [@akinwale] Determine if we should create a regression test for this bug.
  • [@akinwale] 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.
  1. Launch Expensify
  2. Navigate to the Enable Payment page (/enable-payments).
  3. Turn off the network connection on the device to go offline.
  4. Scroll to the bottom of the page (on smaller screens).
  5. Verify that only one "network offline" message is visible.

Do we agree 👍 or 👎?

@akinwale
Copy link
Contributor

@laurenreidexpensify Done!

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
None yet
Development

No branches or pull requests

8 participants