Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-23772/MM-23696 Fix channel header popover for existing channels #5258

Merged
merged 8 commits into from
Apr 6, 2020

Conversation

nevyangelova
Copy link
Contributor

Summary

After merging #5159 the popover changed for existing channels. After discussing with @esethna we decided to keep single line breaks on one line, and only consider double breaks. This also addresses CSS fixed introduced in https://mattermost.atlassian.net/browse/MM-23772 the case for which were missed in the previous fixes. Please keep in mind while testing:

  1. CSS cases
  • When the user is a member of a single team and uses the old sidebar (DM's and Channels).
  • When the user is a member of a single team and uses the new sidebar (DM's and Channels).
  • When the user is a member of multiple teams and uses the old sidebar (DM's and Channels).
  • When the user is a member of multiple teams and uses the new sidebar (DM's and Channels).
  1. Popover cases
  • Multiple single lines and a double line should align the single lines in the header and only create a line break for the double line.
  • Make sure existing channel descriptions don't break
[Process](https://docs.mattermost.com/process/feature-release.html) | [Release Checklist channel](https://community.mattermost.com/core/channels/release-checklist) | **NEXT RELEASE v5.22 - THURSDAY, 16 APRIL 2020**
- Wed, Mar 18: Feature Complete;
- Wed, Mar 25: Judgment Day;
- Thur, Mar 26: Code Complete;
- Thur, Apr 2: RC-1 Cut;
- Fri, Apr 3: RC Testing;
- Mon, Apr 6: RC Testing Finished;
- Tue, April 14: Release Build Cut;
- Thur, April 16: Release Day 
**NEXT MOBILE APP RELEASE v1.30 - 16 APRIL 2020**

I need all the help I could get with testing this as some test cases have been missed and current channels displays were broken.

Ticket link

https://mattermost.atlassian.net/browse/MM-23772
https://mattermost.atlassian.net/browse/MM-23696

@nevyangelova nevyangelova added 1: PM Review Requires review by a product manager 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Apr 2, 2020
@nevyangelova nevyangelova added this to the v5.22.0 milestone Apr 2, 2020
@esethna esethna added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Apr 2, 2020
@esethna
Copy link
Contributor

esethna commented Apr 2, 2020

@nevyangelova bullet points are broken on hovering. They should appear on separate lines (as tested on community server)

- test
- test 2

image

Another example:
image

@esethna
Copy link
Contributor

esethna commented Apr 2, 2020

@nevyangelova there is a small (~1px) shift in the pop-up and text with DMs

image

That shift is larger with the new sidebar enabled

@nevyangelova
Copy link
Contributor Author

@esethna FYI the Popover is inserted into the top level html without any relation to the channel header, this is why we can't position it relatively and keep having to tweak the CSS. Any new elements that affect the general layout will cause it to be misaligned. I have proposed a definitive fix in https://mattermost.atlassian.net/browse/MM-23621


&.chanel-header__popover--dm {
margin-left: 70px;
margin-left: 69.5px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why is the .5px required? I haven't encountered a situation in webapp that required this before.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a combination of a mix between em's and pixels somewhere down the line. I used those values because this is the most correct adjustment for the popover. We can address this in the ticket above as well.

@esethna esethna removed the 1: PM Review Requires review by a product manager label Apr 2, 2020
Copy link
Contributor

@esethna esethna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nevyangelova!

@hmhealey hmhealey changed the title Fix channel header popover for existing channels MM-23772/MM-23696 Fix channel header popover for existing channels Apr 3, 2020
@amyblais amyblais removed the 2: Dev Review Requires review by a core commiter label Apr 3, 2020
@jgilliam17
Copy link
Contributor

Thank you @nevyangelova
Looks good, just one small issue.

  • On DMs when user has a status of Away or DND popover shifts due to change in status text length.
  • Question for UX, is it possible to start the channel description on DMs at the point where status change can no longer have an impact? e.g. take DND length and start all descriptions at this point on the header regardless of the actual status shown

Screen Shot 2020-04-03 at 5 57 15 PM

Screen Shot 2020-04-03 at 5 46 08 PM

Screen Shot 2020-04-03 at 5 46 59 PM

@jgilliam17
Copy link
Contributor

One more thing.

  • When channel has guests popover is out of line. See Town Square on test server.

Screen Shot 2020-04-03 at 6 58 13 PM

@mattermod
Copy link
Contributor

Mattermost test server updated with git commit f5e9019e982688323feb1644d66c1765831a9a35.

Access here: https://mattermost-webapp-pr-5258.test.mattermost.cloud

Copy link
Contributor

@jgilliam17 jgilliam17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @nevyangelova
Tested, looks good to merge.

  • Verified channel description popover on both desktop and browser.
  • Verified for users that belong to only one team, using old and new sidebar.
  • Verified for users that belong to more then one team, using old and new sidebar.
  • Verified popover for channels with guests, popover does not shift due to longer guest label under the channel name
  • Verified popover for DMs, no shift - popover displays as expected
  • Verified multiple single lines align as the single lines in the header and create a line break for the double line.

@jgilliam17 jgilliam17 added QA Review Done and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Apr 6, 2020
@mattermod
Copy link
Contributor

Test server destroyed

@nevyangelova nevyangelova merged commit 465960f into master Apr 6, 2020
@nevyangelova nevyangelova deleted the MM-23772 branch April 6, 2020 21:08
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Apr 6, 2020
mattermod pushed a commit that referenced this pull request Apr 6, 2020
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Apr 7, 2020
@jgilliam17 jgilliam17 added the Tests/Done Release tests have been written label Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Not Needed Does not require a changelog entry CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation QA Review Done Tests/Done Release tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants