Skip to content

Truncated long user lists in award emoji tooltips

What does this MR do?

Truncates award emoji tooltips so that they only show 10 users maximum.

Further users are indicated by appending "and X more."

Are there points in the code the reviewer needs to double check?

Is 10 too little, should it be raised?

My test cases rely on join() to build the expected output. This feels a little iffy is it alright?

Why was this MR needed?

Some issues have a large number of thumbs causing tooltips to be very large.

What are the relevant issue numbers?

closes #18334 (closed), closes #19542 (closed)

Screenshots (if relevant)

Before

Screenshot_from_2016-06-20_19-49-12

After

Screenshot_from_2016-06-20_19-50-58

Truncation point modified for purposes of screenshot

Does this MR meet the acceptance criteria?

Merge request reports