Open lanitochka17 opened 1 week ago
Triggered auto assignment to @abekkala (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@abekkala Whoops! This issue is 2 days overdue. Let's get this updated quick!
Job added to Upwork: https://www.upwork.com/jobs/~021851677782773395839
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (External
)
Mentioned user in description shown as hidden when creating task
The user may not exist in the system. So backend return the account payload like:
{
"accountID": 18092501,
"avatar": "https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_6.png",
"firstName": "",
"lastName": ""
}
The payload does not have displayName or login, so MentionUserRenderer will return 'Hidden' as the displayname by default.
Option 1: If we are okay to user the accountId returned from backend as the displayName, we can set the accountId as default value when getDisplayName.
mentionDisplayText = LocalePhoneNumber.formatPhoneNumber(user?.login ?? '') || PersonalDetailsUtils.getDisplayNameOrDefault(user, accountID.toString(), true, false);
Option 2: If we want a more friendly name (e.g email address we entered), backend need to return the data first. And then base on the payload backend returned, we can modify the default value in the same place as option 1.
N/A Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
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: 9.0.54-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
On task created, description must not be shown as hidden
Actual Result:
On task created, description shown as hidden. On opening description hidden not highlighted. Again saving with same description and refreshing page shows a whisper message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/f8d62492-ee87-4ff9-a902-eae8fb9cb1ec
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @akinwale