Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Add Shipping Details" CTA button is not displayed in the workspace chat when self-assigning an Expensify card. #54917 #55026

Open
1 of 8 tasks
mallenexpensify opened this issue Jan 9, 2025 · 3 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Needs Reproduction Reproducible steps needed

Comments

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Jan 9, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] 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

@mallenexpensify
Copy link
Contributor Author

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 @[email protected] 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?

@mallenexpensify mallenexpensify added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Jan 9, 2025
Copy link

melvin-bot bot commented Jan 9, 2025

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

@MelvinBot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Needs Reproduction Reproducible steps needed
Projects
None yet
Development

No branches or pull requests

3 participants