Skip to content

[$250] Company card - Device back button navigate company card page rather than add card page #57969

Closed

Description

@lanitochka17

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: 9.1.10-0
Reproducible in staging?: Y
Reproducible in production?: Y
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): testpayment935+468@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Create WS and enable company card
  3. Navigate to company card and click add card
  4. From add card page choose any bank and click next
  5. Click app back button and notice you end up in add card page
  6. Repeat step 4
  7. Now click device back button and notice you end up in company card page

Expected Result:

The Device back button navigate back add card page as app back button function

Actual Result:

After choosing card device back button navigate to the main company card page rather than add card page

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
Bug6763449_1741305170011.Screen_Recording_20250307_021815_Chrome.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021899200224849143843
  • Upwork Job ID: 1899200224849143843
  • Last Price Increase: 2025-03-10

Activity

  1. added
    Bug
    Daily
    on Mar 7, 2025
  2. melvin-bot commented on Mar 7, 2025

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (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. nkdengineer commented on Mar 7, 2025

    @nkdengineer
    Contributor

    Proposal

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

    After choosing card device back button navigate to the main company card page rather than add card page

    What is the root cause of that problem?

    We are handling these steps as currentSteps in Onyx. So when we change the steps, we will not update the navigation stacks.

    const [addNewCardFeed] = useOnyx(ONYXKEYS.ADD_NEW_COMPANY_CARD);
    const {currentStep} = addNewCardFeed ?? {};

    switch (currentStep) {
    case CONST.COMPANY_CARDS.STEP.SELECT_BANK:
    return <SelectBankStep />;
    case CONST.COMPANY_CARDS.STEP.SELECT_FEED_TYPE:
    return <SelectFeedType />;
    case CONST.COMPANY_CARDS.STEP.CARD_TYPE:
    return <CardTypeStep />;
    case CONST.COMPANY_CARDS.STEP.BANK_CONNECTION:
    return <BankConnection policyID={policyID} />;
    case CONST.COMPANY_CARDS.STEP.CARD_INSTRUCTIONS:
    return <CardInstructionsStep policyID={policyID} />;
    case CONST.COMPANY_CARDS.STEP.CARD_NAME:
    return <CardNameStep />;
    case CONST.COMPANY_CARDS.STEP.CARD_DETAILS:
    return <DetailsStep policyID={policyID} />;
    case CONST.COMPANY_CARDS.STEP.AMEX_CUSTOM_FEED:
    return <AmexCustomFeed />;
    default:
    return <SelectBankStep />;
    }

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

    1. We should add 1 more param to the WORKSPACE_COMPANY_CARDS_ADD_NEW route like currentStep

    2. We also need to update the submit functions from step to step to add the current step params.

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

    None navigation bug

    What alternative solutions did you explore? (Optional)

    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. melvin-bot commented on Mar 10, 2025

    @melvin-bot

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

  5. Christinadobrzyn commented on Mar 10, 2025

    @Christinadobrzyn
    Contributor

    I think this might be the same as - #57037 - asking

  6. added
    External
    on Mar 10, 2025
  7. changed the title [-]Company card - Device back button navigate company card page rather than add card page[/-] [+][$250] Company card - Device back button navigate company card page rather than add card page[/+] on Mar 10, 2025
  8. melvin-bot commented on Mar 10, 2025

    @melvin-bot
  9. added
    Help Wanted
    on Mar 10, 2025
  10. 36 remaining items

  11. blimpich commented on Mar 24, 2025

    @blimpich
    Contributor

    @adamgrzybowski thank you for your insight! I think given the information that this was the intended original design and that changing it would be a big effort I feel like we can close this issue. I don't think this is important enough that we should spend a lot of resources changing our core navigation logic. Maybe we can revisit this down the road, but I personally don't think it's worth it right now.

    @puneetlath @shawnborton @dannymcclain @dubielzyk-expensify do you agree?

  12. dubielzyk-expensify commented on Mar 25, 2025

    @dubielzyk-expensify
    Contributor

    I'm fine with it 👍 Keen to hear from others

  13. melvin-bot commented on Mar 25, 2025

    @melvin-bot

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

  14. Christinadobrzyn commented on Mar 25, 2025

    @Christinadobrzyn
    Contributor

    Not overdue Melvin, we're discussing #57969 (comment)

  15. dannymcclain commented on Mar 26, 2025

    @dannymcclain
    Contributor

    Yup, I agree @blimpich!

  16. shawnborton commented on Mar 26, 2025

    @shawnborton
    Contributor

    Yeah, that works for me. Though I will note that it is interesting that all of us are aligned that the current behavior is "incorrect" from our POV. Perhaps we can tackle this as a separate initiative, but yeah - it feels like what we implemented is wrong and we should make it better.

  17. adamgrzybowski commented on Mar 26, 2025

    @adamgrzybowski
    Contributor

    So just to create a vision of possible improvement here. Is there any reason to use many steps on one screen instead of one screen per step? If not, maybe that's the way to go.

  18. adamgrzybowski commented on Mar 26, 2025

    @adamgrzybowski
    Contributor

    Maybe we could reach out to somebody who created this flow?

  19. Christinadobrzyn commented on Mar 27, 2025

    @Christinadobrzyn
    Contributor

    Just a heads up that I'm going to be ooo March 27th - April 6th. Back on the 7th.

    I'm not going to assign another BZ teammate but if you need someone while I'm gone, please remove and add the Bug label.

  20. blimpich commented on Mar 27, 2025

    @blimpich
    Contributor

    Maybe we could reach out to somebody who created this flow?

    I did a brief search and looked at git blames, but I wasn't really able to pinpoint this decision to a particular project or person. I think it also might be a decision that was made so long ago that the person who made it might not either work here anymore or might not remember.

    I've made an issue here to eventually come back to this. For now though I'm going to close this issue.

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

Metadata

Metadata

Labels

BugDailyExternalHelp Wanted

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions