App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-11-22] Details page - Show tooltip on user detail page if the email is too long

Open isagoico opened this issue 5 years ago • 37 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Navigate to a conversation with a user that has a long email
  2. Open the user detail page
  3. Hover the cursor over the email

Expected Result:

There should be a tooltip to view the email address

Actual Result:

There's no tooltip to view the email address.

Workaround:

Unknown.

Platform:

Where is this issue occurring?

  • Web
  • Desktop App

Version Number: 1.1.2-5

Reproducible in staging?: yes Reproducible in production?: yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:

Issue reported by: @akshayasalvi Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1632614361076100

View all open jobs on GitHub

isagoico avatar Sep 27 '21 19:09 isagoico

Triggered auto assignment to @MitchExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Sep 27 '21 19:09 MelvinBot

Solution

In CommunicationsLink.js, we can add Tooltip only to the else block as it is for wide screen width.

Replace the {props.children} in the else (after : ) block with the following code:

<Tooltip text={props.value}>
      <View style={[styles.communicationsLinkWidth]}>
          {props.children}
      </View>
  </Tooltip>

and in style.js add the following:

communicationsLinkWidth: {
    maxWidth: 320,
}

We need to wrap the props.children around a View so that the view doesn't break when we have a very long email address.

Screenshots:

image

image

akshayasalvi avatar Sep 27 '21 20:09 akshayasalvi

You are showing a tooltip even if the email is small and clearly visible but the issue title says, show the tooltip when the email is too long and trimmed.

parasharrajat avatar Sep 28 '21 01:09 parasharrajat

You are showing a tooltip even if the email is small and clearly visible but the issue title says, show the tooltip when the email is too long and trimmed.

I thought about it. But in the main chat screen we're showing tooltips irrespective of the length of the email.

image image

akshayasalvi avatar Sep 28 '21 05:09 akshayasalvi

because it shows displayName here. DisplayName could be any of these => First+last Name, email + phone. In most cases, it would be First+last Name and thus we show login in the tooltip.

But on the details page, it's always email so why duplicate this unless Email is trimmed as you reported in Slack.

parasharrajat avatar Sep 28 '21 05:09 parasharrajat

Reproduced and agree its valuable. This is n6-hold so not labeling eng just yet

MitchExpensify avatar Sep 29 '21 02:09 MitchExpensify

On hold

MitchExpensify avatar Oct 01 '21 21:10 MitchExpensify

On hold

MitchExpensify avatar Oct 04 '21 22:10 MitchExpensify

On hold

MitchExpensify avatar Oct 08 '21 15:10 MitchExpensify

@MitchExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

MelvinBot avatar Oct 11 '21 19:10 MelvinBot

On hold

MitchExpensify avatar Oct 11 '21 19:10 MitchExpensify

On hold

MitchExpensify avatar Oct 15 '21 00:10 MitchExpensify

@MitchExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

MelvinBot avatar Oct 18 '21 19:10 MelvinBot

Not overdue

MitchExpensify avatar Oct 19 '21 16:10 MitchExpensify

@MitchExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

MelvinBot avatar Oct 22 '21 19:10 MelvinBot

Apologies for the delay here, catching up from SuiteWorld and labeling eng! Seems like a good external candidate to me!

MitchExpensify avatar Oct 23 '21 00:10 MitchExpensify

Triggered auto assignment to @sketchydroide (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Oct 23 '21 00:10 MelvinBot

I agree, external, and it seems we already have a good suggestion for a solution

sketchydroide avatar Oct 25 '21 11:10 sketchydroide

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

MelvinBot avatar Oct 25 '21 15:10 MelvinBot

External didn't auto-assign because of my triage assignment so I unapplied/reapplied

MitchExpensify avatar Oct 25 '21 15:10 MitchExpensify