Note: this is somewhat blocked by T338534: Generate a design that accommodates multiple comment- and topic-level actions, though from initial conversations with @ppelberg and @Esanders it's my understanding that an ellipsis overflow menu seems likely.
In a DiscussionTools page, we have topic headers and then individual comments. Next to each individual comment is a reply button. This task proposes to add an ellipsis menu next to each topic header and comment.
The menu should have a server-side hook that passes data about the topic header ID / text and comment ID / text so that extensions can add relevant items to the menu. The items would have a CSS class and optional URL.
Notes:
- It is probably easier to fire the hook once per comment than to fire the hook with hundreds of objects in a parameter
- DiscussionTools should not render the ellipsis menu if the hook doesn't yield any newly registered menu items
References:
- Comment thanking proof of concept: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DiscussionTools/+/752325
- Mockup of ellipsis menu F37102547
- Ellipsis menu for headers on talk pages in mobile: F37130628
- Rough notes from meeting with @JKieserman @Esanders and @kostajh