Skip to content

[$250] Company Cards - ‘Please click here’ hyperlink doesn’t open #68375

Closed

Description

@nlemma

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.93-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/folder/13176706/test-cases/41236842
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: Macbook, Sequoia 15.6, Chrome | Samsung A15, Android 15, Chrome | iPhone SE 3rd generation (2022), iOS 18.6
App Component: Workspace Settings

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in with applausetester+ccardfeed@applause.expensifail.com
  3. Go to Workspaces > Company Cards tests - DO NOT DELETE! > Company cards
  4. In the feed selector choose Visa Feed
  5. Click 'log into your bank' hyperlink within the error message
  6. Click 'please click here' hyper link in RHN panel

Expected Result:

Clicking the ‘Please click here’ hyperlink should open the intended page.

Actual Result:

Clicking the ‘Please click here’ hyperlink does nothing.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6914909_1755009096805.skreen_Recording_2025-08-12_at_11.13.44_AM.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021955332544229685030
  • Upwork Job ID: 1955332544229685030
  • Last Price Increase: 2025-08-19
Issue OwnerCurrent Issue Owner: @parasharrajat

Activity

  1. added
    Daily
    Bug
    on Aug 12, 2025
  2. melvin-bot commented on Aug 12, 2025

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (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 Aug 12, 2025

    @nkdengineer
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-08-12 20:33:12 UTC.

    Proposal

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

    Clicking the ‘Please click here’ hyperlink does nothing.

    What is the root cause of that problem?

    We don't have Visa in here

    App/src/CONST/index.ts

    Lines 3281 to 3291 in d80a995

    BANKS: {
    AMEX: 'American Express',
    BANK_OF_AMERICA: 'Bank of America',
    BREX: 'Brex',
    CAPITAL_ONE: 'Capital One',
    CHASE: 'Chase',
    CITI_BANK: 'Citibank',
    STRIPE: 'Stripe',
    WELLS_FARGO: 'Wells Fargo',
    OTHER: 'Other',
    },

    It leads to we'll return null here

    function getCompanyCardBankConnection(policyID?: string, bankName?: string | null) {
    const bankConnection = Object.keys(CONST.COMPANY_CARDS.BANKS).find((key) => CONST.COMPANY_CARDS.BANKS[key as keyof typeof CONST.COMPANY_CARDS.BANKS] === bankName);
    if (!bankName || !bankConnection || !policyID) {
    return null;
    }

    => We don't have url so ‘Please click here’ hyperlink doesn’t open

    const onOpenBankConnectionFlow = useCallback(() => {
    if (!url) {
    return;
    }
    customWindow = openBankConnection(url);
    }, [url]);

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

    In case we don't have url we should only show the text like Please connect to ${bankName} via your browser window that just opened.

        const CustomSubtitle = (
            <Text style={[styles.textAlignCenter, styles.textSupporting]}>
                {bankName &&
                    translate(`workspace.moreFeatures.companyCards.pendingBankDescription`, {
                        bankName: addNewCard?.data?.plaidConnectedFeedName ?? bankName,
                        url,
                    })}
                {url && <TextLink onPress={onOpenBankConnectionFlow}>{translate('workspace.moreFeatures.companyCards.pendingBankLink')}</TextLink>}
            </Text>
        );
    
        pendingBankDescription: ({bankName, url}: CompanyCardBankName) => `Please connect to ${bankName} via your browser window that just opened. ${url ? `If one didn’t open, ` : ''}`,
    

    Or something that define by design team

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

    None

    What alternative solutions did you explore? (Optional)

    NA

    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. added
    External
    on Aug 12, 2025
  5. changed the title [-]Company Cards - ‘Please click here’ hyperlink doesn’t open[/-] [+][$250] Company Cards - ‘Please click here’ hyperlink doesn’t open[/+] on Aug 12, 2025
  6. melvin-bot commented on Aug 12, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Aug 12, 2025
  8. melvin-bot commented on Aug 12, 2025

    @melvin-bot

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

  9. mallenexpensify commented on Aug 12, 2025

    @mallenexpensify
    Contributor

    What is the root cause of that problem?
    We don't have url so ‘Please click here’ hyperlink doesn’t open

    @nkdengineer how do you know? Cuz the url doesn't show along the bottom? Or were you able to setup a Visa Feed? or.. When the 👆 was on the link, nothing showed? (mainly just curious)

    Was able to reproduce. @parasharrajat

    1. Think this can be external?
    2. Do we know what the missing link is supposed to be?
    3. Do we also want to address the bug where a new tab wasn't opened in the first place?
    2025-08-12_11-14-58.mp4
  10. parasharrajat commented on Aug 12, 2025

    @parasharrajat
    Member

    So I reviewed the bug and I found the same root cause as above proposal that url is null as Visa is not in our partner list

    App/src/CONST/index.ts

    Lines 3281 to 3291 in d80a995

    BANKS: {
    AMEX: 'American Express',
    BANK_OF_AMERICA: 'Bank of America',
    BREX: 'Brex',
    CAPITAL_ONE: 'Capital One',
    CHASE: 'Chase',
    CITI_BANK: 'Citibank',
    STRIPE: 'Stripe',
    WELLS_FARGO: 'Wells Fargo',
    OTHER: 'Other',
    },

  11. parasharrajat commented on Aug 12, 2025

    @parasharrajat
    Member

    Trying to find the original design now, which could give us hints on the best way to handle this.

  12. nkdengineer commented on Aug 12, 2025

    @nkdengineer
    Contributor

    When the 👆 was on the link, nothing showed? (mainly just curious)

    Screen.Recording.2025-08-13.at.02.57.22.mov

    @mallenexpensify In case the href is null, the link still has a pointer cursor.

  13. nkdengineer commented on Aug 12, 2025

    @nkdengineer
    Contributor

    updated proposal to clear RCA

  14. melvin-bot commented on Aug 15, 2025

    @melvin-bot

    @parasharrajat Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  15. nkdengineer commented on Aug 17, 2025

    @nkdengineer
    Contributor

    Trying to find the original design now, which could give us hints on the best way to handle this.

    @parasharrajat Do we have any updates here?

  16. melvin-bot commented on Aug 19, 2025

    @melvin-bot

    📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

  17. melvin-bot commented on Aug 19, 2025

    @melvin-bot

    @parasharrajat Still overdue 6 days?! Let's take care of this!

  18. parasharrajat commented on Aug 21, 2025

    @parasharrajat
    Member

    I searched a lot of pages, but it is not very clear whether this case was handled or not. I think we need to show a different UI with correct instructions for cases where we don't support the bank .

    @mountiny Do you have any insights here?

  19. mountiny commented on Aug 21, 2025

    @mountiny
    Contributor

    @joekaufmanexpensify Yeah I think this is weird. It is a custom feed so there should be no log in flow really in here

  20. parasharrajat commented on Aug 22, 2025

    @parasharrajat
    Member

    @mountiny so I noticed that for Visa feeds, we don't have Visa in our partner list; thus, there is no modal opened to connect to the bank, and we don't even have a custom link to log in to the bank. I think we should show custom instructions for such cases.

  21. joekaufmanexpensify commented on Aug 22, 2025

    @joekaufmanexpensify
    Contributor

    It is a mistake that we were showing the broken connection error for a commercial card feed. We're fixing it in #68525. I think we can close this issue as that PR obviates this bug.

  22. joekaufmanexpensify commented on Aug 22, 2025

    @joekaufmanexpensify
    Contributor

    Let me know if any other questions!

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

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions