Page MenuHomePhabricator

Special:WatchlistLabels should have some form of feedback after creating, editing or deleting a label
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):

I think it would be useful to display a success message after creating, editing or deleting a watchlist label, for example:

image.png (661×304 px, 42 KB)

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

There is currently no feedback to show the user that the operation was completed successfully.
Since the labels are sorted in descending order by the amount of items by default, newly created labels appear at the bottom of the list, so users who have many labels currently have to scroll down and look for the label to confirm that it was actually created.

Benefits (why should this be implemented?):

Users would receive feedback this way after performing the action.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

nb. passing the state back from Special:WatchlistLabels/edit to Special:WatchlistLabels when the redirect happens appears to be done elsewhere by using session-based state storage (looking at things like SpecialPreferences), so I'm going to follow that pattern

Change #1240820 had a related patch set uploaded (by Samtar; author: Samtar):

[mediawiki/core@master] SpecialWatchlistLabels: Show success message for add/edit/delete

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

I suggest that the message should specify the name of the label, and be grammatical (present perfect, not past simple):

Label "Foo" has been created.

Label "Foo" has been deleted.

Label "Foo" has been renamed to "Bar"

Good idea, I'll look at doing this

Change #1240820 merged by jenkins-bot:

[mediawiki/core@master] SpecialWatchlistLabels: Show success message for add/edit/delete

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

dom_walden subscribed.

Creating a new label:

watchlistlabel_create.png (1,331×298 px, 29 KB)

Editing an existing label:

watchlistlabel_edit.png (1,311×293 px, 29 KB)

Deleting one label:

watchlistlabel_deleted.png (1,321×301 px, 29 KB)

Deleting two labels:

watchlistlabel_deleted2.png (1,318×296 px, 28 KB)

Tested on testwiki.