Page MenuHomePhabricator

Clear autofilled deletion reason button
Open, MediumPublicFeature

Description

Feature summary: Provide a button to clear deletion reason when performing deletion action.

Use case(s):
When trying to delete a page via dropdown menu or via direct link, there will appear an autofilled deletion reason looks like content was: "[redacted]...", and the only contributor was "[redacted]. It somehow provide a preview for normal users who are curious about the content of that deleted page, but it could also messed up deletion log and cause the leakage of something inappropriate.
Admins among Wikimedia projects has used script like this for a pretty long period, and I thought it make sense to integrate this feature into core codebase. Despite a abrupt clear of autofilled reason, I think it is a better approach to provide a button which could clear the reason once it is clicked.

image.png (648×1 px, 33 KB)

Benefits :
Beneficial for those admins which are lazy but want a clear deletion log.

Event Timeline

Stang triaged this task as Medium priority.

Change 788445 had a related patch set uploaded (by Stang; author: Stang):

[mediawiki/core@master] Clear autofilled deletion reason button

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

I like the idea, but from an UX viewpoint it would probably be better to have the clear button next to the reason input field.