Skip to content

[Due for payment 2025-11-20] [$100] Admin user is asked to “refer their boss” on the Create Expense → Choose Recipient page #73699

Closed

Description

@m-natarajan

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.2.39-3
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: @quinthar
Slack conversation (hyperlinked to channel name): #Migrate

Action Performed:

  1. Log in as a workspace admin (not a member or employee)
  2. Create a new expense
  3. On the Choose recipient step
  4. Observe the banner/prompt suggesting: “Submit an expense, refer your boss”

Expected Result:

New feature:

Update the copy to "Submit an expense, refer your team" instead so it fits everyone.

Actual Result:

The page shows referral messaging: "Submit an expense, refer your boss" which doesn't always fit when shown to an admin.

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Recording.1830.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021985397092189781042
  • Upwork Job ID: 1985397092189781042
  • Last Price Increase: 2025-11-03
  • Automatic offers:
    • daledah | Contributor | 109426990
Issue OwnerCurrent Issue Owner: @strepanier03

Activity

  1. added
    Daily
    Bug
    on Oct 28, 2025
  2. melvin-bot commented on Oct 28, 2025

    @melvin-bot

    Triggered auto assignment to @strepanier03 (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. twilight2294 commented on Oct 28, 2025

    @twilight2294
    Contributor

    Proposal

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

    Admin user is asked to “refer their boss” on the Create Expense → Choose Recipient page

    What is the root cause of that problem?

    Feature request, we need to update the following text:

    App/src/languages/en.ts

    Lines 6660 to 6664 in 758609d

    [CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SUBMIT_EXPENSE]: {
    buttonText: 'Submit an expense, <success><strong>refer your boss</strong></success>.',
    header: 'Submit an expense, refer your boss',
    body: "Want your boss to use Expensify, too? Just submit an expense to them and we'll take care of the rest.",
    },

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

    Update the following text to:

    buttonText: 'Submit an expense, <success><strong>refer your team</strong></success>.',

    Also update in all translation files and take confirmation for spanish ones on slack

    App/src/languages/en.ts

    Lines 6660 to 6664 in 758609d

    [CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SUBMIT_EXPENSE]: {
    buttonText: 'Submit an expense, <success><strong>refer your boss</strong></success>.',
    header: 'Submit an expense, refer your boss',
    body: "Want your boss to use Expensify, too? Just submit an expense to them and we'll take care of the rest.",
    },

    Also update here:

    title: 'Submit an expense, refer your boss',

    What alternative solutions did you explore? (Optional)

  4. mohammadjafarinejad commented on Oct 28, 2025

    @mohammadjafarinejad
    Contributor

    Proposal

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

    Admins should not see messaging asking them to refer their boss, since they are already the workspace owner/admin.

    What is the root cause of that problem?

    The banner shows up whenever it's not dismissed and it's not an invoice. The code doesn't check if the user is an admin/owner of a workspace.

    const shouldShowReferralBanner = !isDismissed && iouType !== CONST.IOU.TYPE.INVOICE && !shouldShowListEmptyContent;

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

    Add a check to see if the user is a workspace admin. If they are, hide the banner.

    We can either use hasActiveAdminWorkspaces() like this:

    const isUserWorkspaceAdmin = useMemo(() => hasActiveAdminWorkspaces(currentUserLogin), [currentUserLogin]);

    Or by using isPolicyAdmin() with policy or activePolicyID, like this:

    const isUserWorkspaceAdmin = useMemo(() => isPolicyAdmin(policy, currentUserLogin), [policy, currentUserLogin]); 

    And then update

    const shouldShowReferralBanner = !isDismissed && iouType !== CONST.IOU.TYPE.INVOICE && !shouldShowListEmptyContent;

    const shouldShowReferralBanner = !isUserWorkspaceAdmin && !isDismissed && iouType !== CONST.IOU.TYPE.INVOICE && !shouldShowListEmptyContent;

    What alternative solutions did you explore? (Optional)

    None

  5. trjExpensify commented on Oct 29, 2025

    @trjExpensify
    Contributor

    Discussed this in thread, we're just going to ask for a copy change here so it applies to everyone:

    Submit an expense, refer your team

  6. daledah commented on Oct 29, 2025

    @daledah
    Contributor

    Proposal

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

    The page incorrectly shows referral messaging: “Refer your boss”

    What is the root cause of that problem?

    We don't hire the banner with admin here

    const shouldShowReferralBanner = !isDismissed && iouType !== CONST.IOU.TYPE.INVOICE && !shouldShowListEmptyContent;

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

    Discussed this in thread, we're just going to ask for a copy change here so it applies to everyone:

    Submit an expense, refer your team

    We should replace refer your boss with refer your team here

    App/src/languages/en.ts

    Lines 6660 to 6664 in 758609d

    [CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SUBMIT_EXPENSE]: {
    buttonText: 'Submit an expense, <success><strong>refer your boss</strong></success>.',
    header: 'Submit an expense, refer your boss',
    body: "Want your boss to use Expensify, too? Just submit an expense to them and we'll take care of the rest.",
    },

    Note 1: we should update all the languages
    Note 2: We can also check other places that use refer your boss translation like here

    title: 'Submit an expense, refer your boss',

    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)

    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.

  7. twilight2294 commented on Oct 30, 2025

    @twilight2294
    Contributor

    ### Updated proposal

    Updated proposal according to latest expectations

  8. melvin-bot commented on Oct 31, 2025

    @melvin-bot

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

  9. trjExpensify commented on Nov 3, 2025

    @trjExpensify
    Contributor

    Simple copy change, updating the price and sending external.

  10. changed the title [-]Admin user is asked to “refer their boss” on the Create Expense → Choose Recipient page[/-] [+][$100] Admin user is asked to “refer their boss” on the Create Expense → Choose Recipient page[/+] on Nov 3, 2025
  11. melvin-bot commented on Nov 3, 2025

    @melvin-bot

    ⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

  12. 27 remaining items

  13. melvin-bot commented on Nov 13, 2025

    @melvin-bot

    @shubham1206agra @strepanier03 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]

  14. added
    Daily
    and removed
    Weekly
    on Nov 19, 2025
  15. strepanier03 commented on Nov 21, 2025

    @strepanier03
    Contributor

    Payment summary

    HOLD FOR CHECKLIST

  16. strepanier03 commented on Nov 21, 2025

    @strepanier03
    Contributor

    @shubham1206agra friendly bump on the checklist.

    @daledah - just a little reminder to accept the contract.

    Thanks!

  17. shubham1206agra commented on Nov 21, 2025

    @shubham1206agra
    Contributor

    @strepanier03 Payment summary should be for $100

  18. shubham1206agra commented on Nov 21, 2025

    @shubham1206agra
    Contributor

    @strepanier03 This is a simple copy change. No checklist required here.

  19. strepanier03 commented on Nov 21, 2025

    @strepanier03
    Contributor

    Great, thank you @shubham1206agra - I was flying through GHs and missed the difference payment amount. I updated the payment copy so feel free to request.

    @daledah - I'll keep an eye out for you to accept the contract.

  20. daledah commented on Nov 24, 2025

    @daledah
    Contributor

    i accepted

  21. strepanier03 commented on Nov 24, 2025

    @strepanier03
    Contributor

    Thanks @daledah - I paid and closed it out.

  22. moved this from MEDIUM or LOW to Done in [#whatsnext] #migrateon Nov 24, 2025
  23. garrettmknight commented on Dec 1, 2025

    @garrettmknight
    Contributor

    $100 approved for @shubham1206agra

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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions