-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] You" Excluded When Selecting account Email in Share-somewhere Section #39764
Comments
Triggered auto assignment to @isabelastisser ( |
@isabelastisser FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
ProposalPlease re-state the problem that we are trying to solve in this issue."You" excluded when selecting account with long email/name in share-somewhere section What is the root cause of that problem?The Line 771 in ce06355
Line 776 in ce06355
Line 777 in ce06355
What changes do you think we should make in order to solve the problem?When we have a self dm report we need to use the Pseudo-Code/**
* Get the share destination data
* */
function getShareDestination(reportID: string, reports: OnyxCollection<OnyxTypes.Report>, personalDetails: OnyxEntry<OnyxTypes.PersonalDetailsList>): ShareDestination {
const report = reports?.[`report_${reportID}`] ?? null;
const participantAccountIDs = ReportUtils.isSelfDM(report) ? [report?.ownerAccountID ?? 0] : report?.participantAccountIDs ?? [];
const isMultipleParticipant = participantAccountIDs.length > 1;
const displayNamesWithTooltips = ReportUtils.getDisplayNamesWithTooltips(OptionsListUtils.getPersonalDetailsForAccountIDs(participantAccountIDs, personalDetails), isMultipleParticipant);
let subtitle = '';
if ((ReportUtils.isChatReport(report) && ReportUtils.isDM(report) && ReportUtils.hasSingleParticipant(report)) || ReportUtils.isSelfDM(report)) {
const participantAccountID = ReportUtils.isSelfDM(report) ? report?.ownerAccountID ?? -1 : report?.participantAccountIDs?.[0] ?? -1;
const displayName = personalDetails?.[participantAccountID]?.displayName ?? '';
const login = personalDetails?.[participantAccountID]?.login ?? '';
subtitle = LocalePhoneNumber.formatPhoneNumber(login || displayName);
} else {
subtitle = ReportUtils.getChatRoomSubtitle(report) ?? '';
}
return {
icons: ReportUtils.getIcons(report, personalDetails, Expensicons.FallbackAvatar),
displayName: ReportUtils.getReportName(report),
subtitle,
displayNamesWithTooltips,
shouldUseFullTitleToDisplay: ReportUtils.shouldUseFullTitleToDisplay(report),
};
} Also, we need to pass true for fourth parameter of App/src/pages/tasks/NewTaskPage.tsx Lines 45 to 48 in ce06355
Line 773 in ce06355
ResultWhat alternative solutions did you explore? (Optional)If we plan to remove Remove Line 1689 in 1ba0795
App/src/libs/PersonalDetailsUtils.ts Line 35 in 1ba0795
|
Job added to Upwork: https://www.upwork.com/jobs/~011a3106b6d163f6b3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
@parasharrajat, please validate the issue and review the proposals above. Thanks! |
@Krishna2323 I didn't understand your proposal. Why do have to change this id? What is purpose of tooltip in this issue? |
@Expensify/design Should the |
I think we should remain as consistent as possible, so if we are showing this in the contacts list or LHN list, it should also be on this task confirmation page. cc @thienlnam in case you have any additional context as to why it was left out. |
@parasharrajat, we have an inconsistency in assignee details and share somewhere details. In the assignee section, when we select "self dm," the email is displayed, and when we hover over the display name, the tooltip is also shown. However, in the "share somewhere" section, we don't have the tooltip or email displayed. Additionally, in the LHS, we also have the tooltip. task_page_inconsistency.mp4 |
@parasharrajat Just a heads up. (https://expensify.slack.com/archives/C066HJM2CAZ/p1712591630706319) |
Ah great reminder. If we are going to do the subtitle everywhere, then maybe we can just drop the |
I think we should keep it. I like the combo of the |
@Krishna2323 Please post proposal update message when you make changes to your proposal with brief info of what has been changed. |
@parasharrajat, I apologize for that. I planned to make further changes before posting |
Proposal Updated
|
@shubham1206agra Do we have a ticket for this yet? Link does not open for me. |
@parasharrajat Not really. Since this was a minor change, I am doing it with #39956. |
@shubham1206agra is going to make this change in one of its PR #39956. Nothing is required on this issue. There will be no payments @isabelastisser... We can put this on Hold for #38699. |
Thanks for the update, @parasharrajat! |
Not overdue. On hold. |
On hold. |
Not overdue, on hold. |
@isabelastisser Please take it off hold. |
@isabelastisser can we please get this retested? |
Can we get this retested please @isabelastisser? @Expensify/applause |
Hey @Expensify/applauseleads, can you please retest this? Thanks! |
Checking |
Issue is no longer reproducible, build 1.4.75.0 Screen.Recording.2024-05-23.at.10.16.08.PM.mp4 |
Thanks for confirming, @kbecciv ! Closing. |
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: 1.4.60-6
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
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
Action Performed:
Prerequisite: Please use a long display name (if the default display name is used, ensure the email address is long).
1, sign in with your Gmail account > Click on FAB and select Assign task.
2, Add a title and click next.
3, Go to share somewhere and select your account email (the email used to sign in).
4, Notice that "You" is excluded.
Expected Result:
When selecting one's account email (the email used to sign in) in Share Somewhere, "You" should not be excluded.
Actual Result:
When selecting the account email (the email used to sign in) in Share somewhere, "You" is excluded if the displayed name is long.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6438524_1712267855352.Screen_Recording_2024-04-04_at_2.55.41_PM.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: