Skip to content

[Due for payment 2025-05-14] [$250] Cards - Refreshing What bank issues these cards? screen briefly displays Who’s your bank? page #60786

Closed

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: V9 1.32-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
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): Slottwo1 33qgggwp@gmail.com
Issue reported by: Applause Internal Team
Device used: Redminote 10s android 13
App Component: Workspace Settings

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Go to workspace settings - company card
  3. Tap add card - other - visa card
  4. Tap next
  5. Refresh What bank issues these cards? page

Expected Result:

Refreshing What bank issues these cards? screen must not briefly display Who’s your bank? page.

Actual Result:

Refreshing What bank issues these cards? screen briefly displays Who’s your bank? page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021916906169601409094
  • Upwork Job ID: 1916906169601409094
  • Last Price Increase: 2025-04-28
  • Automatic offers:
    • ishakakkad | Contributor | 107099347
Issue OwnerCurrent Issue Owner: @rushatgabhane

Activity

  1. added
    Bug
    Daily
    on Apr 24, 2025
  2. melvin-bot commented on Apr 24, 2025

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. ishakakkad commented on Apr 24, 2025

    @ishakakkad
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-04-24 06:19:19 UTC.

    Proposal

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

    Cards - Refreshing What bank issues these cards? screen briefly displays Who’s your bank?

    What is the root cause of that problem?

    During initial load currentStep is not present so briefly it will show default step

    const {currentStep} = addNewCardFeed ?? {};

    default:
    return <SelectBankStep />;
    }

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

    To fix this issue we need to show loader or return null during currentStep status is loading

    const [addNewCardFeed, metadata] = useOnyx(ONYXKEYS.ADD_NEW_COMPANY_CARD);
    const isLoading = metadata.status === 'loading';
    

    Add following code here

    if(isLoading) {
          return null; // OR show loading state
      }
    

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    NA

    What alternative solutions did you explore? (Optional)

    Use this code to get isLoading status

    const [addNewCardFeed, addNewCardFeedMetadata] = useOnyx(ONYXKEYS.ADD_NEW_COMPANY_CARD);
    const isLoading = isLoadingOnyxValue(addNewCardFeedMetadata);

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. CortneyOfstad commented on Apr 28, 2025

    @CortneyOfstad
    Contributor

    Was able to recreate — getting eyes on this

  5. added
    External
    on Apr 28, 2025
  6. melvin-bot commented on Apr 28, 2025

    @melvin-bot
  7. changed the title [-]Cards - Refreshing What bank issues these cards? screen briefly displays Who’s your bank? page[/-] [+][$250] Cards - Refreshing What bank issues these cards? screen briefly displays Who’s your bank? page[/+] on Apr 28, 2025
  8. added
    Help Wanted
    on Apr 28, 2025
  9. melvin-bot commented on Apr 28, 2025

    @melvin-bot

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

  10. rushatgabhane commented on Apr 28, 2025

    @rushatgabhane
    Member

    agree, i think we should show loading screen when currentStep isn't present.

    🎀 👀 🎀 #60786 (comment)

  11. 28 remaining items

  12. melvin-bot commented on May 19, 2025

    @melvin-bot

    @CortneyOfstad Whoops! This issue is 2 days overdue. Let's get this updated quick!

  13. CortneyOfstad commented on May 20, 2025

    @CortneyOfstad
    Contributor

    @rushatgabhane can you complete the checklist before EOD?

  14. CortneyOfstad commented on May 22, 2025

    @CortneyOfstad
    Contributor
  15. rushatgabhane commented on May 22, 2025

    @rushatgabhane
    Member

    @CortneyOfstad sorry im really occupied at the moment. is it okay if i complete this over the weekend?

  16. CortneyOfstad commented on May 23, 2025

    @CortneyOfstad
    Contributor

    That is fine but please make sure to prioritize the checklists before payment date to avoid delays. Also please make sure to prioritize following up on GH comments for continued communication and context. Thanks!

  17. CortneyOfstad commented on May 23, 2025

    @CortneyOfstad
    Contributor

    @ishakakkad has been paid via Upwork already, just waiting on the checklist for the full payment summary/regression test details

  18. melvin-bot commented on May 27, 2025

    @melvin-bot

    @CortneyOfstad Whoops! This issue is 2 days overdue. Let's get this updated quick!

  19. CortneyOfstad commented on May 27, 2025

    @CortneyOfstad
    Contributor

    @rushatgabhane — please complete this by EOD as this is nearly 2 weeks overdue. We cannot close this out until the checklist is completed.

  20. rushatgabhane commented on May 27, 2025

    @rushatgabhane
    Member

    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 (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [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/50733/files#r2110530484

    • [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.

    Regression Test Proposal Template
    • [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. 1Go to workspace settings - company card
    2. Tap add card - other - visa card
    3. Tap next
    4. Refresh What bank issues these cards? page
    5. Verify that the user can see a loading indicator and not flickering between sccreens.

    Do we agree 👍 or 👎

  21. CortneyOfstad commented on May 28, 2025

    @CortneyOfstad
    Contributor

    Payment Summary

    @ishakakkad – paid $250 via Upwork
    @rushatgabhane — to be paid $250 via NewDot

    Regression Test

    No test needed, per comment here

  22. garrettmknight commented on Jun 5, 2025

    @garrettmknight
    Contributor

    $250 approved for @rushatgabhane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions