Skip to content

[Due for payment 2025-03-11] [$250] "Add Shipping Details" CTA button is not displayed in the workspace chat when self-assigning an Expensify card. #54917 #55026

Closed

Description

@mallenexpensify

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:
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @puneetlath
Slack conversation (hyperlinked to channel name): convert

Action Performed:

  1. Assign a card to yourself.
  2. Observe the message in the workspace chat requesting an address update.
  3. Notice that the message does not provide a direct link to the address section.

Expected Result:

The message in the workspace chat should include a clear link or instructions on how to navigate to the address section of the profile and Add shipping Details button

Actual Result:

The message only mentions that an address is required but does not provide guidance on where or how to add it and Add shipping details button not displayed

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

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021878515422018280977
  • Upwork Job ID: 1878515422018280977
  • Last Price Increase: 2025-01-12
  • Automatic offers:
    • allgandalf | Reviewer | 105738953
    • DylanDylann | Contributor | 105738954
Issue OwnerCurrent Issue Owner: @maddylewis

Activity

  1. mallenexpensify commented on Jan 9, 2025

    @mallenexpensify
    ContributorAuthor

    Posts from others in deleted issue, in order

    From @DylanDylann

    @vit @JoeKaufman I investigated this issue. This is my assumption:

    In this issue, the card isn't created successfully for some reason but the BE still returns a report action with reportName is CARDMISSINGADDRESS

    Let's see the condition to display the message: issued @dylandylan9112+3211@gmail.com an Expensify Card! The card will be shipped once shipping details are added.

    const shouldShowAddMissingDetailsMessage = !isAssigneeCurrentUser || (reportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.CARD_MISSING_ADDRESS && missingDetails);

    Let's see the condition to display Add shipping detail button

    const shouldShowAddMissingDetailsButton = !isEmptyObject(card) && action?.actionName === CONST.REPORT.ACTIONS.TYPE.CARD_MISSING_ADDRESS && missingDetails && isAssigneeCurrentUser;

    We have an additional condition compared to the condition to display the message. It is the check isEmptyObject(card)

    And in this case, the card isn't created successfully. So the CARDMISSINGADDRESS message still be displayed but the card button isn't displayed.

    My suggestion is to make the condition display the message and the button are consistent.

    From @mountiny

    @DylanDylann hmm if the card was not created successfully, we would not create the report action either, the command would throw

    From @DylanDylann

    @mountiny This is only my assumption. Currently, I can't reproduce this problem, @puneetlath could you help to reproduce this issue again? If you still reproduce it, please export your Onyx data then I can help to investigate and finD the correct RCA

    cc @puneetlath

    From @mountiny

    This was from a real customer so we cannot easily get the data unfortunately. Its not clear right now why this happened.

    It might be good to write failing unit test that would lead to show this message but no button

    From @DylanDylann

    It might be good to write failing unit test that would lead to show this message but no button

    @mountiny Agreed with you. Do you want to export this to contributors?

  2. added
    Daily
    Needs Reproduction
    Bug
    on Jan 9, 2025
  3. melvin-bot commented on Jan 9, 2025

    @melvin-bot

    Current assignee @maddylewis is eligible for the Bug assigner, not assigning anyone new.

  4. MelvinBot commented on Jan 9, 2025

    @MelvinBot
    Contributor

    This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

  5. maddylewis commented on Jan 10, 2025

    @maddylewis
    Contributor

    From @DylanDylann
    It might be good to write failing unit test that would lead to show this message but no button

    @mountiny Agreed with you. Do you want to export this to contributors?

    will wait for Vit to confirm ^^

  6. self-assigned this
    on Jan 12, 2025
  7. added
    External
    on Jan 12, 2025
  8. melvin-bot commented on Jan 12, 2025

    @melvin-bot
  9. changed the title [-]"Add Shipping Details" CTA button is not displayed in the workspace chat when self-assigning an Expensify card. #54917[/-] [+][$250] "Add Shipping Details" CTA button is not displayed in the workspace chat when self-assigning an Expensify card. #54917[/+] on Jan 12, 2025
  10. added
    Help Wanted
    on Jan 12, 2025
  11. 40 remaining items

  12. added
    Daily
    and removed
    Weekly
    on Mar 10, 2025
  13. maddylewis commented on Mar 10, 2025

    @maddylewis
    Contributor

    ill keep as daily for now since payment is due tomorrow -- ill check back on the issue in the AM 👍

  14. added
    Daily
    and removed
    Daily
    on Mar 10, 2025
  15. maddylewis commented on Mar 11, 2025

    @maddylewis
    Contributor

    both $250 payments sent/approved in Upwork.

  16. maddylewis commented on Mar 11, 2025

    @maddylewis
    Contributor

    Final to-dos

    • waiting for regression test proposal
    • i will make regression test
    • close out issue
  17. mallenexpensify commented on Mar 12, 2025

    @mallenexpensify
    Author
  18. allgandalf commented on Mar 12, 2025

    @allgandalf
    Contributor

    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/51230/files#r1990492096

    • [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: https://github.com/Expensify/Expensify/issues/480502

    Regression Test Proposal

    Precondition:

    Test:

    1. Assign a new physical Expensify Card to account A in workspace B (Note that: account A haven't completed the personal detail)
    2. Login to account A
    3. Go to workspace B chat

    Verify this message appears: "issued *** an Expensify Card! The card will be shipped once shipping details are added." with the "Add shipping Detail" button

    1. On the admin account there are no "Add shipping Detail" button
    2. Go to profile page
    3. Fill all personal information
    4. Back to workspace B chat
    5. Clicking on "Add shipping Detail" button
    6. All information in step 6 are displayed
    7. Clicking confirm

    Verify this message appears: " *** added shipping details. Expensify Card will arrive in 2-3 business days." without the "Add shipping Detail" button

    Do we agree 👍 or 👎

  19. maddylewis commented on Mar 14, 2025

    @maddylewis
    Contributor

    Before closing issue

    • regression test proposed
    • regression test created
    • payments confirmed / sent (if applicable)

    Payment Summary

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