Page MenuHomePhabricator

Register "Report" menu item which opens the report incident application when clicked
Closed, ResolvedPublic5 Estimated Story Points

Description

Register a report button that triggers the ReportIncident dialog, using the hook provided by the DiscussionTools overflow menu feature in T340138: Add ellipsis / action menu to topic headers and individual comments.

In this task, we'll want to implement the yet-to-be-created hook in DiscussionTools that allows extensions to add an item to the overflow menu next to topic headers and comments.

The implementation for anonymous and temp users is still TBD.

For logged-in users, we should add a button with the text "Report" and an icon (TBD), with a CSS class that we can wire our Vue application to. The item should also include in a data property some information about the topic header ID or comment ID that it is linked with; the Vue app will make use of this in the reporting interrface.

Event Timeline

kostajh renamed this task from Create the reporting button to Register "Report" button with DiscussionTools overflow menu hook.Jul 6 2023, 2:44 PM
kostajh updated the task description. (Show Details)
JKieserman renamed this task from Register "Report" button with DiscussionTools overflow menu hook to Register "Report" button and trigger the dialog with DiscussionTools overflow menu hook.Aug 2 2023, 1:14 PM
JKieserman updated the task description. (Show Details)
kostajh subscribed.

I am implementing this in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ReportIncident/+/961810 as part of T342623, so I will tag that patch with this task.

Change 961810 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/ReportIncident@master] discussiontools: Integrate with overflow menu on mobile

https://gerrit.wikimedia.org/r/961810

kostajh renamed this task from Register "Report" button and trigger the dialog with DiscussionTools overflow menu hook to Register "Report" menu item which opens the report incident application when clicked.Sep 29 2023, 11:44 AM
kostajh removed a subscriber: JKieserman.