App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2022-01-27] Web - Group chat contacts are not showing ellipsis - Reported by @Tushu17

Open mvtglobally opened this issue 4 years ago β€’ 39 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. open app
  2. Create group with multiple contacts
  3. check LHN for display

Expected Result:

Ellipsis should display if contacts are not fitting

Actual Result:

Group chat contacts are not showing ellipsis on Web

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.23-0 Reproducible in staging?: Y Reproducible in production?: Y Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Screen Shot 2021-12-28 at 2 36 37 PM

Expensify/Expensify Issue URL: Issue reported by: @Tushu17 Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1640035419420700

View all open jobs on GitHub

mvtglobally avatar Dec 28 '21 19:12 mvtglobally

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

MelvinBot avatar Dec 28 '21 19:12 MelvinBot

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

MelvinBot avatar Dec 28 '21 19:12 MelvinBot

I believe this was introduced when we updated react-native-web in this PR https://github.com/Expensify/App/pull/6738. cc @azimgd

luacmartins avatar Dec 29 '21 19:12 luacmartins

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

MelvinBot avatar Dec 29 '21 19:12 MelvinBot

This can be worked externally. Applied the labels. Unassigning myself.

luacmartins avatar Dec 29 '21 19:12 luacmartins

Related discussion here https://expensify.slack.com/archives/C01GTK53T8Q/p1640809897239200?thread_ts=1640704361.161500&cid=C01GTK53T8Q

For whomever works on this issue, please also check that the ellipsis are showing properly in Search in Right Hand Nav (RHN) too.

mallenexpensify avatar Dec 29 '21 21:12 mallenexpensify

The ellipsis is not working well because of the white-space: nowrap applied here:

https://github.com/Expensify/App/blob/894231476c5d3a5d8d17af30b1d4b641ec11e504/src/styles/styles.js#L1092-L1097

https://user-images.githubusercontent.com/47149004/147717963-023a0d2d-c8f3-42be-bee0-0fc0a808ff7a.mov

Proposal

Remove this line of code: https://github.com/Expensify/App/blob/894231476c5d3a5d8d17af30b1d4b641ec11e504/src/styles/styles.js#L1096

This will not affect native because the style whiteSpace.noWrap is already empty for those platforms, see https://github.com/Expensify/App/blob/main/src/styles/utilities/whiteSpace/index.native.js

CamilaRivera avatar Dec 30 '21 02:12 CamilaRivera

https://www.upwork.com/jobs/~01cfaafbf8184740e9

laurenreidexpensify avatar Dec 30 '21 09:12 laurenreidexpensify

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

MelvinBot avatar Dec 30 '21 09:12 MelvinBot

Triggered auto assignment to @Beamanator (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Dec 30 '21 09:12 MelvinBot

@CamilaRivera 's proposal seems simple enough and looks effective, what do you think @parasharrajat ?

Beamanator avatar Dec 30 '21 11:12 Beamanator

Yup, I agree. It looks good. I don't think it will have any side effects. But I would like to see these to be tested in PR.

  1. Search page.
  2. Single User Chat In LHN.
  3. Group title not reaching the sidebar boundary.

:ribbon: :eyes: :ribbon:

parasharrajat avatar Dec 30 '21 11:12 parasharrajat

Agreed! @CamilaRivera would you mind checking that your proposal doesn't cause any side-effects on the pages mentioned ^ (above)?

Beamanator avatar Dec 30 '21 12:12 Beamanator

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

MelvinBot avatar Dec 31 '21 08:12 MelvinBot

@mallenexpensify am OOO next week, reassigning thanks

laurenreidexpensify avatar Dec 31 '21 08:12 laurenreidexpensify

Yup, I agree. It looks good. I don't think it will have any side effects. But I would like to see these to be tested in PR.

  1. Search page.
  2. Single User Chat In LHN.
  3. Group title not reaching the sidebar boundary.

πŸŽ€ πŸ‘€ πŸŽ€

Hey @parasharrajat, so with my proposal it looks like this screenshot. I'm not so sure how to test case 3 "Group title not reaching the sidebar boundary".

Screen Shot 2021-12-31 at 11 59 05 AM

CamilaRivera avatar Dec 31 '21 15:12 CamilaRivera

Ok. I think it's fine. I will test it on PR.

parasharrajat avatar Dec 31 '21 15:12 parasharrajat

So... as @parasharrajat pointed out here, my first proposal of removing white-space: nowrap breaks the the tooltip positioning.

Doing some more testing, I found another way of fixing it.

Proposal 2

Add display: inline-block and white-space: nowrap to this component:

https://github.com/Expensify/App/blob/615f5b3ff21cbdcf83ef2a050c875de2a0dbfb26/src/components/DisplayNames/index.js#L86-L91

changing the style to:

style={[...this.props.textStyles, styles.pRelative, {display: 'inline-block'}, styles.noWrap]}

Result: the tooltip is now correctly placed

image

Optionally, we can remove the nowrap from here because the proposed change already applies to the same component only on web.

CamilaRivera avatar Dec 31 '21 21:12 CamilaRivera

Closed previous PR and created new now in case you want to test the second proposal: https://github.com/Expensify/App/pull/6972

CamilaRivera avatar Dec 31 '21 21:12 CamilaRivera

πŸ“£ @CamilaRivera You have been assigned to this job by @Beamanator! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

MelvinBot avatar Jan 04 '22 07:01 MelvinBot