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

[MM-18146] Order tooltip for reactions on web by who recently reacted with those emoji #3671

Merged
merged 5 commits into from
Sep 24, 2019

Conversation

abdusabri
Copy link
Contributor

@abdusabri abdusabri commented Sep 15, 2019

Summary

In the tooltip of an emoji reaction to a post, the users are ordered by recency (who reacted most recently) who reacted first, not alphabetically. And if the logged-in user has reacted, "You" - or its localized equivalent - will precede the other users in the tooltip (even if they reacted after before the logged-in user).

Ticket Link

Fixes mattermost/mattermost#12186

@hanzei hanzei requested a review from esethna September 16, 2019 07:52
@hanzei hanzei added 1: PM Review Requires review by a product manager Setup Cloud Test Server Setup a test server using Mattermost Cloud 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Sep 16, 2019
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.

Nice work @abdusabri!

@esethna esethna removed the 1: PM Review Requires review by a product manager label Sep 16, 2019
@esethna esethna added this to the v5.18.0 milestone Sep 16, 2019
@esethna esethna changed the title [GH-12186] Order tooltip for reactions on web by who recently reacted with those emoji [MM-18146] Order tooltip for reactions on web by who recently reacted with those emoji Sep 16, 2019
@hmhealey
Copy link
Member

The code looks great, but I want to double check the ordering with @esethna. Based on the ticket, I would've expected that the list starts with the user who reacted first, but this has them appearing last.

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.

@hmhealey you are correct, good catch. @abdusabri can we please reverse the order so the first person who reacted with the emoji appears first in the tooltip, and the most recent person appears last. Apologies the ticket should have been more clear.

@abdusabri
Copy link
Contributor Author

Thanks @hmhealey for the feedback!

@esethna , no problem 🙂, updated.

@mattermod
Copy link
Contributor

Mattermost test server updated with git commit 48cde007f1b0192f49a86d337efc59d22ecf9288.

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

Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for changing that. I'll bump Eric for a re-review so we can get this in

@hmhealey hmhealey removed the 2: Dev Review Requires review by a core commiter label Sep 23, 2019
@esethna
Copy link
Contributor

esethna commented Sep 23, 2019

Thanks @abdusabri, nice work!

users,
['You', 'username_2', 'username_3']
);
});
Copy link
Member

Choose a reason for hiding this comment

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

💯

Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

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

Tested and passed.

Thanks @abdusabri!

@saturninoabril saturninoabril added 4: Reviews Complete All reviewers have approved the pull request and removed Setup Cloud Test Server Setup a test server using Mattermost Cloud 3: QA Review Requires review by a QA tester labels Sep 24, 2019
@mattermod
Copy link
Contributor

Test server destroyed

@saturninoabril saturninoabril merged commit 307ccc6 into mattermost:master Sep 24, 2019
jwilander pushed a commit that referenced this pull request Sep 24, 2019
… with those emoji (#3671)

* Order tooltip for reactions by who recently reacted

* Improve sorting by recency test for reactions

* Order reactions by who reacted first (instead of who reacted last)
skheria pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 3, 2019
… with those emoji (mattermost#3671)

* Order tooltip for reactions by who recently reacted

* Improve sorting by recency test for reactions

* Order reactions by who reacted first (instead of who reacted last)
skheria pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 3, 2019
… with those emoji (mattermost#3671)

* Order tooltip for reactions by who recently reacted

* Improve sorting by recency test for reactions

* Order reactions by who reacted first (instead of who reacted last)
skheria pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 3, 2019
… with those emoji (mattermost#3671)

* Order tooltip for reactions by who recently reacted

* Improve sorting by recency test for reactions

* Order reactions by who reacted first (instead of who reacted last)
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Nov 19, 2019
@lindy65 lindy65 added the Tests/Not Needed Does not require new release tests label Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Order tooltip for reactions on web by who recently reacted with those emoji
9 participants