Skip to content
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

Improve room leader #7578

Merged
merged 2 commits into from
Jul 27, 2017
Merged

Improve room leader #7578

merged 2 commits into from
Jul 27, 2017

Conversation

sampaiodiego
Copy link
Member

@sampaiodiego sampaiodiego commented Jul 26, 2017

@RocketChat/core

  • Use i18n
  • Better leader user info handling
  • Better leader status handling
  • Reuse CSS for status colors
  • Show user's name even if user not online
  • Show leader header smoothly

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-7578 July 26, 2017 13:33 Inactive
@danieljhochman
Copy link

@sampaiodiego - we also noticed that the leader bar appears and disappears too abruptly when you scroll up/down. It needs to slide in/out. Should we file a different issue for this or handle here?

@sampaiodiego sampaiodiego force-pushed the improve-chat-leader branch from cf42ea7 to 113763b Compare July 26, 2017 18:16
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-7578 July 26, 2017 18:16 Inactive
@@ -494,6 +492,13 @@ Template.room.events({
},

'scroll .wrapper': _.throttle(function(e) {
if (e.target.scrollTop < lastScrollTop) {
$('.room-leader').removeClass('animated-hidden');
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather have this as vanilla js than jquery

Copy link
Member Author

Choose a reason for hiding this comment

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

I've changed it to use a ReactiveVar instead 😉

- Use i18n
- Better leader user info handling
- Better leader status handling
- Reuse CSS for status colors
- Use color classes
- Animate show/hide header
@sampaiodiego sampaiodiego force-pushed the improve-chat-leader branch from 113763b to 41ada40 Compare July 27, 2017 14:18
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-7578 July 27, 2017 14:18 Inactive
@rodrigok rodrigok merged commit e2f7491 into develop Jul 27, 2017
@rodrigok rodrigok deleted the improve-chat-leader branch July 27, 2017 20:03
@rodrigok rodrigok modified the milestone: 0.58.0 Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants