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
[HOLD for payment 2024-04-15] [$500] [HIGH] When mentioning a user the "actionable whisper" message shows the full display name #38079
changed the title [-]When mentioning a user the "actionable whisper" message shows the full display name [/-][+][HIGH] When mentioning a user the "actionable whisper" message shows the full display name [/+]on Mar 11, 2024
changed the title [-][HIGH] When mentioning a user the "actionable whisper" message shows the full display name [/-][+][$500] [HIGH] When mentioning a user the "actionable whisper" message shows the full display name [/+]on Mar 11, 2024
What changes do you think we should make in order to solve the problem?
firstName should be used.
function getEffectiveDisplayName(personalDetail?: PersonalDetails): string | undefined {
if (personalDetail) {
return LocalePhoneNumber.formatPhoneNumber(personalDetail?.login ?? '') || personalDetail.firstName;
}
return undefined;
}
The problem at hand involves the "actionable whisper" message displaying the full user's display name when mentioning them.
The root cause of this issue lies in the use of the displayName attribute in the getEffectiveDisplayName function, which results in the presentation of the complete display name instead of the intended behavior. The function relies on LocalePhoneNumber.formatPhoneNumber for formatting or defaults to the firstName of the personal details if available.
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
[@sobitneupane] 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:
[@sobitneupane] A discussion in #expensify-bugs 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:
[@sobitneupane] Determine if we should create a regression test for this bug.
Yes.
[@sobitneupane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Activity
melvin-bot commentedon Mar 11, 2024
Triggered auto assignment to @adelekennedy (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.[-]When mentioning a user the "actionable whisper" message shows the full display name [/-][+][HIGH] When mentioning a user the "actionable whisper" message shows the full display name [/+]ShridharGoel commentedon Mar 11, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When mentioning a user the "actionable whisper" message shows the full display name.
What is the root cause of that problem?
displayNameis used here, which leads to the full display name being shown.App/src/libs/PersonalDetailsUtils.ts
Lines 205 to 211 in 9447937
What changes do you think we should make in order to solve the problem?
firstNameshould be used.[-][HIGH] When mentioning a user the "actionable whisper" message shows the full display name [/-][+][$500] [HIGH] When mentioning a user the "actionable whisper" message shows the full display name [/+]melvin-bot commentedon Mar 11, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01c8171385c92b3a6a
melvin-bot commentedon Mar 11, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)abzokhattab commentedon Mar 11, 2024
what is the correct result then? @sobitneupane @quinthar
whitestar613910 commentedon Mar 11, 2024
The problem at hand involves the "actionable whisper" message displaying the full user's display name when mentioning them.
The root cause of this issue lies in the use of the
displayNameattribute in thegetEffectiveDisplayNamefunction, which results in the presentation of the complete display name instead of the intended behavior. The function relies onLocalePhoneNumber.formatPhoneNumberfor formatting or defaults to thefirstNameof the personal details if available.79 remaining items
adelekennedy commentedon Apr 15, 2024
Payouts due:
Upwork job is here.
adelekennedy commentedon Apr 15, 2024
Payment summary above - just pending checklist if relevant @sobitneupane !
puneetlath commentedon Apr 17, 2024
@sobitneupane bump on the checklist.
adelekennedy commentedon Apr 22, 2024
@sobitneupane will you complete the checklist today so we can close?
sobitneupane commentedon Apr 24, 2024
#36998
#36998 (comment)
Yes.
#38079 (comment)
sobitneupane commentedon Apr 24, 2024
Regression Test Proposal:
adelekennedy commentedon Apr 24, 2024
@sobitneupane Thank you!
https://github.com/Expensify/Expensify/issues/390576
JmillsExpensify commentedon May 12, 2024
$500 approved for @sobitneupane