You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[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
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
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:
Assign a card to yourself.
Observe the message in the workspace chat requesting an address update.
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?
@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.
@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
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
[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.
Assign a new physical Expensify Card to account A in workspace B (Note that: account A haven't completed the personal detail)
Login to account A
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
On the admin account there are no "Add shipping Detail" button
Go to profile page
Fill all personal information
Back to workspace B chat
Clicking on "Add shipping Detail" button
All information in step 6 are displayed
Clicking confirm
Verify this message appears: " *** added shipping details. Expensify Card will arrive in 2-3 business days." without the "Add shipping Detail" button
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
mallenexpensify commentedon Jan 9, 2025
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
reportNameis CARDMISSINGADDRESSLet'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.App/src/libs/ReportActionsUtils.ts
Line 1838 in 4d0472f
Let's see the condition to display
Add shipping detailbuttonApp/src/components/ReportActionItem/IssueCardMessage.tsx
Line 55 in 4d0472f
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?
melvin-bot commentedon Jan 9, 2025
Current assignee @maddylewis is eligible for the Bug assigner, not assigning anyone new.
MelvinBot commentedon Jan 9, 2025
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
maddylewis commentedon Jan 10, 2025
will wait for Vit to confirm ^^
melvin-bot commentedon Jan 12, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021878515422018280977
[-]"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[/+]40 remaining items
maddylewis commentedon Mar 10, 2025
ill keep as daily for now since payment is due tomorrow -- ill check back on the issue in the AM 👍
maddylewis commentedon Mar 11, 2025
both $250 payments sent/approved in Upwork.
maddylewis commentedon Mar 11, 2025
Final to-dos
mallenexpensify commentedon Mar 12, 2025
allgandalf commentedon Mar 12, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[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:
Verify this message appears: "issued *** an Expensify Card! The card will be shipped once shipping details are added." with the "Add shipping Detail" button
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 👎
maddylewis commentedon Mar 14, 2025
Before closing issue
Payment Summary