Skip to content

[HOLD for payment 2023-10-09] [$500] Web - Task preview - phone number contact is displayed @expensify.sms #27330

Closed

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Login with new account
  2. Create a WS
  3. Invite user phone number account (user B) into WS
  4. Open the announce rom
  5. Click + on composer
  6. Click assign task
  7. Input title and click next
  8. Assign above account B
  9. Click confirm
  10. Click From.... on header, Observe that on the task preview , the phone number contact is displayed with @expensify.sms in the end

Expected Result:

App should display phone number or the display name

Actual Result:

App display phone number with @expensify.sms in the end

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.67.13
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
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-08-15.at.22.54.24.1.mov
Recording.4425.mp4

Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694333604061429

View all open jobs on GitHub

Activity

  1. added
    External
    Daily
    Bug
    on Sep 13, 2023
  2. changed the title [-]Web - Task preview - phone number contact is displayed @expensify.sms[/-] [+][$500] Web - Task preview - phone number contact is displayed @expensify.sms[/+] on Sep 13, 2023
  3. melvin-bot commented on Sep 13, 2023

    @melvin-bot

    Triggered auto assignment to @flaviadefaria (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  4. melvin-bot commented on Sep 13, 2023

    @melvin-bot
  5. melvin-bot commented on Sep 13, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  6. added
    Help Wanted
    on Sep 13, 2023
  7. melvin-bot commented on Sep 13, 2023

    @melvin-bot

    Triggered auto assignment to @sonialiap (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. melvin-bot commented on Sep 13, 2023

    @melvin-bot

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

  9. namhihi237 commented on Sep 13, 2023

    @namhihi237
    Contributor

    Proposal

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

    The app should display a phone number or the display name

    What is the root cause of that problem?

    When we invite the user to login with a phone number to WS, the backend returns data with the key personalDetailsList like this:

    "login": "+xxxxxx@expensify.sms",
    

    Therefore, when creating the task and assigning the user to this phone number, we are displaying the login information here.

    const assigneeLogin = lodashGet(props.personalDetailsList, [taskAssigneeAccountID, 'login'], '');
    const assigneeDisplayName = lodashGet(props.personalDetailsList, [taskAssigneeAccountID, 'displayName'], '');
    const taskAssignee = assigneeLogin || assigneeDisplayName;
    const htmlForTaskPreview = taskAssignee ? `<comment><mention-user>@${taskAssignee}</mention-user> ${taskTitle}</comment>` : `<comment>${taskTitle}</comment>`;

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

    We should update like this to show the assignee:

    const taskAssignee = LocalePhoneNumber.formatPhoneNumber(assigneeLogin) || assigneeDisplayName;
    

    And update optimisticData for getNewPersonalDetailsOnyxData

    displayName: LocalePhoneNumber.formatPhoneNumber(login),
    

    displayName: login,

    What alternative solutions did you explore? (Optional)

    In addition, here we are also prioritizing the use of show display name before login information. so I think we can prioritize using the display name before login.

    const taskAssignee = assigneeDisplayName || LocalePhoneNumber.formatPhoneNumber(assigneeLogin);
    
  10. flaviadefaria commented on Sep 14, 2023

    @flaviadefaria
    Contributor

    @sonialiap I was about to unassign you, since you seem to have been assigned in duplicity, but since I'm going OoO for 1 week I'll leave you assigned to it so that you can move this forward while I'm OoO. I'll then take it back once I'm online again.

  11. 38 remaining items

  12. flaviadefaria commented on Oct 9, 2023

    @flaviadefaria
    Contributor

    Switching this to daily so that I can issue payment this week.

  13. added
    Daily
    and removed
    Weekly
    on Oct 9, 2023
  14. added
    Daily
    and removed
    Daily
    on Oct 9, 2023
  15. flaviadefaria commented on Oct 11, 2023

    @flaviadefaria
    Contributor

    Payment summary:

    @cubuspl42 - $500 + 50% bonus = $750
    @namhihi237 - $500 + 50% bonus + $50 (reporting) = $800

  16. flaviadefaria commented on Oct 11, 2023

    @flaviadefaria
    Contributor

    @cubuspl42 @namhihi237 offers sent!

  17. namhihi237 commented on Oct 11, 2023

    @namhihi237
    Contributor

    Accepted thanks

  18. flaviadefaria commented on Oct 11, 2023

    @flaviadefaria
    Contributor

    @namhihi237 - paid!

  19. flaviadefaria commented on Oct 11, 2023

    @flaviadefaria
    Contributor

    @cubuspl42 please accept the offer so that I can pay you!

  20. jakub-trzebiatowski commented on Oct 12, 2023

    @jakub-trzebiatowski
    Contributor
  21. flaviadefaria commented on Oct 12, 2023

    @flaviadefaria
    Contributor

    Everyone has been paid so closing.

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