coralproject / talk

A better commenting experience from Vox Media
https://coralproject.net
Other
1.89k stars 355 forks source link

[CORL-2995]: Top commenter front end #4475

Closed kabeaty closed 8 months ago

kabeaty commented 8 months ago

What does this PR do?

These changes update to add in the front end for the Top commenter badge feature. If the Top commenter feature is enabled, then: 1) a star is shown beside Featured for the featured tab 2) a star is shown next to a commenter's username if they are a top commenter. Clicking on the star shows a tooltip that explains what a Top commenter is. 3) there is a star in the Featured tag for any featured comments

These changes will impact:

What changes to the GraphQL/Database Schema does this PR introduce?

none

Does this PR introduce any new environment variables or feature flags?

no

If any indexes were added, were they added to INDEXES.md?

n/a

How do I test this PR?

This PR can be tested by turning the Top commenter feature on and featuring some comments. See that users with featured comments get the star with tooltip next to their names. Their featured comments should have the star icon in the Featured tag. The Featured tab should have a star icon next to it.

Turn the Top commenter feature off in the admin. None of this should be displayed now.

Were any tests migrated to React Testing Library?

How do we deploy this PR?