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

[Waiting on checklist] [$250] Expensify Card - Verifying page does not show offline indication when user is offline #51885

Closed
6 of 8 tasks
lanitochka17 opened this issue Nov 1, 2024 · 54 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 1, 2024

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: 9.0.56-3
Reproducible in staging?: Y
Reproducible in production?: Unable to check
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
**Email or phone of affected tester (no customers):**[email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Expensify Card
  3. Click Issue new card
  4. Add a bank account if not yet
  5. Go offline
  6. Select the added bank account

Expected Result:

Verifying page will show that user is offline

Actual Result:

Verifying page shows the animation as long as user is offline

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6652493_1730478171236.bandicam_2024-11-02_00-19-59-021.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021852431360082320267
  • Upwork Job ID: 1852431360082320267
  • Last Price Increase: 2024-11-01
  • Automatic offers:
    • ahmedGaber93 | Reviewer | 104729929
Issue OwnerCurrent Issue Owner: @ahmedGaber93
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Nov 1, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

Triggered auto assignment to @francoisl (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Nov 1, 2024

💬 A slack conversation has been started in #expensify-open-source

Copy link
Contributor

github-actions bot commented Nov 1, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@Nodebrute
Copy link
Contributor

Nodebrute commented Nov 1, 2024

Edited by proposal-police: This proposal was edited at 2024-11-01 22:11:15 UTC.

Proposal

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

Verifying page does not show offline indication when the user is offline.

What is the root cause of that problem?

Currently, to display the offline indicator on wider screens, we need to use the shouldShowOfflineIndicatorInWideScreen prop, which is missing in this instance.

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

we can pass shouldShowOfflineIndicatorInWideScreen here if we want to show the offline indicator in wider screens

Optionally we can add offlineIndicatorStyle={styles.mtAuto} so that in android, the indicator stays below the content

What alternative solutions did you explore? (Optional)

If we decide to show the FullPageOfflineBlockingView, as suggested in another proposal to wrap this code block in FullPageOfflineBlockingView , I believe this is not correct. Once the bank is verified, we display the verified state/waitlist state, so there"s no need to block that view. There are no pending requests now we are just waiting for the user to take action.

title={translate("workspace.expensifyCard.bankAccountVerified")}

title={translate("workspace.expensifyCard.oneMoreStep")}

Let"s only wrap the code block below in FullPageOfflineBlockingView, as a write request is being made when it"s pressed, and the response cannot be anticipated.

{!isInVerificationState && (
<View style={styles.flex1}>
<Text style={[styles.mh5, styles.mb3]}>{translate("workspace.expensifyCard.chooseExistingBank")}</Text>
{renderBankOptions()}
<MenuItem
icon={Expensicons.Plus}
title={translate("workspace.expensifyCard.addNewBankAccount")}
onPress={handleAddBankAccount}
/>
</View>

Optional: Although there is no need to block the view while it is in a loading state, if we decide to do so, let"s just wrap this component in FullPageOfflineBlockingView.

Alternative 2
If we want to allow users to use the plus icon on the select bank account page, we can wrap only the loading state in the FullPageOfflineBlockingView.

<BlockingView
title={translate("workspace.expensifyCard.verifyingBankAccount")}
subtitle={translate("workspace.expensifyCard.verifyingBankAccountDescription")}
animation={LottieAnimations.ReviewingBankInfo}
animationStyles={styles.loadingVBAAnimation}
animationWebStyle={styles.loadingVBAAnimationWeb}
subtitleStyle={styles.textLabelSupporting}
containerStyle={styles.pb20}
/>

@francoisl
Copy link
Contributor

Sounds like it could come from #51407.
The proposal makes sense to me, going to label External to get a second pair of eyes on it.

@francoisl francoisl added the External Added to denote the issue can be worked on by a contributor label Nov 1, 2024
@melvin-bot melvin-bot bot changed the title Expensify Card - Verifying page does not show offline indication when user is offline [$250] Expensify Card - Verifying page does not show offline indication when user is offline Nov 1, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 1, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

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

@ahmedGaber93
Copy link
Contributor

reviewing...

@twilight2294
Copy link
Contributor

twilight2294 commented Nov 1, 2024

Proposal

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

Verifying page does not show offline indication when user is offline

What is the root cause of that problem?

We did not wrap the WorkspaceExpensifyCardBankAccounts with FullPageOfflineBlockingView

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

We need to wrap the content inside the page with FullPageOfflineBlockingView, this will return a blocking view when the user if offline:

if (isOffline) {
return (
<BlockingView
icon={Expensicons.OfflineCloud}
iconColor={theme.offline}

We do the same for connect bank account page:

Screen.Recording.2024-11-02.at.2.22.25.AM.mov
<FullPageOfflineBlockingView>
                {isInVerificationState && renderVerificationStateView()}
                {!isInVerificationState && (
                    <View style={styles.flex1}>
                        <Text style={[styles.mh5, styles.mb3]}>{translate("workspace.expensifyCard.chooseExistingBank")}</Text>
                        {renderBankOptions()}
                        <MenuItem
                            icon={Expensicons.Plus}
                            title={translate("workspace.expensifyCard.addNewBankAccount")}
                            onPress={handleAddBankAccount}
                        />
                    </View>
                )}
                </FullPageOfflineBlockingView>

What alternative solutions did you explore? (Optional)

@twilight2294
Copy link
Contributor

@ahmedGaber93 can you also please review my proposal ^, i think my proposal causes consistency across the application

@ahmedGaber93
Copy link
Contributor

@Nodebrute Thanks for the proposal

Your solution not work with me, unless I remove !shouldUseNarrowLayout && from the below condition.

{!shouldUseNarrowLayout && shouldShowOfflineIndicatorInWideScreen && (

I think your RCA is not complete.

@Nodebrute
Copy link
Contributor

@ahmedGaber93 I believe we don"t display offline indicators in the Right Hand Panel (RHP). Since this is a part of the RHP, I think we"re not supposed to show an offline indicator here.

@Nodebrute
Copy link
Contributor

@ahmedGaber93 Could you please confirm the expected behavior here? Also, which offline pattern is this related to?

@ahmedGaber93
Copy link
Contributor

@francoisl What do you think about the expected behavior here

  1. display OfflineIndicator at the bottom of screen
  2. display FullPageOfflineBlockingView

@twilight2294
Copy link
Contributor

@ahmedGaber93 @francoisl for wide screen we never show the offline indicator on the RHP, also you can see that the central Pane already shows this indicator, in our case we need to block the view using FullPageOfflineBlockingView

@ahmedGaber93
Copy link
Contributor

for wide screen we never show the offline indicator on the RHP

Hmm! I am not sure about that, Let"s get confirmation from @Expensify/design for #51885 (comment)

@Nodebrute
Copy link
Contributor

Proposal Updated
#51885 (comment)

@dubielzyk-expensify
Copy link
Contributor

@francoisl What do you think about the expected behavior here

  1. display OfflineIndicator at the bottom of screen
  2. display FullPageOfflineBlockingView

I think 2 is appropriate in this instance. But let"s see if the other @Expensify/design"ers agree

@melvin-bot melvin-bot bot added the Overdue label Nov 3, 2024
@shawnborton
Copy link
Contributor

I think that sounds right to me, but will let others chime in as well.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 4, 2024
@twisterdotcom
Copy link
Contributor

Agree here. @twilight2294 happy to pay for your solution, but as you aren"t doing the work, it will be $125 for you, not the full $250.

@Nodebrute
Copy link
Contributor

@twisterdotcom, @koko57 decided to go with my solution #51885 (comment)

@twisterdotcom
Copy link
Contributor

Wow, sorry. I cannot keep up. Okay, in which case, that would be for you.

@twilight2294
Copy link
Contributor

@twisterdotcom , I was the first to suggest the use or FullPageOfflineBlockingView, @Nodebrute first suggested to use shouldShowOfflineIndicatorInWideScreen and then edited their solution after i added mine:

Screenshot 2024-11-04 at 7 11 09 PM

I suggested the use of FullPageOfflineBlockingView, and @Nodebrute wrote their alternative solution based on it, @ahmedGaber93 can you also confirm this please :)_

@Nodebrute
Copy link
Contributor

@twilight2294 your solution wasn’t fully correct. Just suggesting FullPageOfflineBlockingView isn’t a complete fix on its own. I"ve thoroughly researched when it"s appropriate to block the user and when it"s not. Also, I noticed you posted your solution here while you still had pending actions on this PR. This goes against guidelines, as contributors shouldn"t submit proposals on issues when they have assigned issues or PRs awaiting their action https://expensify.slack.com/archives/C01GTK53T8Q/p1717003214375549, Thank you!

@twilight2294
Copy link
Contributor

twilight2294 commented Nov 4, 2024 via email

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 7, 2024
@melvin-bot melvin-bot bot changed the title [$250] Expensify Card - Verifying page does not show offline indication when user is offline [HOLD for payment 2024-11-14] [$250] Expensify Card - Verifying page does not show offline indication when user is offline Nov 7, 2024
Copy link

melvin-bot bot commented Nov 7, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 7, 2024
Copy link

melvin-bot bot commented Nov 7, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 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 2024-11-14. 🎊

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

Copy link

melvin-bot bot commented Nov 7, 2024

@ahmedGaber93 @twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@twisterdotcom
Copy link
Contributor

twisterdotcom commented Nov 14, 2024

Payment Summary:

@twisterdotcom twisterdotcom changed the title [HOLD for payment 2024-11-14] [$250] Expensify Card - Verifying page does not show offline indication when user is offline [Waiting on checklist] [$250] Expensify Card - Verifying page does not show offline indication when user is offline Nov 14, 2024
@twisterdotcom twisterdotcom removed the Awaiting Payment Auto-added when associated PR is deployed to production label Nov 14, 2024
@Nodebrute
Copy link
Contributor

Nodebrute commented Nov 14, 2024

Wow, sorry. I cannot keep up. Okay, in which case, that would be for you.

@twisterdotcom friendly bump ^ #51885 (comment)

@Nodebrute
Copy link
Contributor

Accepted.

Copy link

melvin-bot bot commented Nov 15, 2024

@francoisl @twisterdotcom @koko57 @ahmedGaber93 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what"s blocking us from getting this issue assigned? Don"t hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented Nov 15, 2024

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn"t considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on both staging and production
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other: Applause - Internal Team
  • [Contributor] 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: https://github.com/Expensify/App/pull/51407/files#r1843618525

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

Test:

  1. Create new Workspace
  2. Go to Settings > Workspace > More features
  3. Enable Expensify Card
  4. Go offline
  5. Go to Expensify Card page, click Issue New card
  6. Verify the Choose Bank Account page should display the full page oflline blocking view.
  7. Try the same with workspaces that already have the Bank account verified or in verifying state - you should see the modal with this state instead

Do we agree 👍 or 👎

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests