Page MenuHomePhabricator

Notify user if they try to favourite a template when they already have the max number of favourites
Closed, ResolvedPublic3 Estimated Story Points

Description

If a user clicks on the 'favourite' icon when they already have the max number (50) of template favourites, inform them that they cannot favourite anymore templates until they remove one.

We can do this on the frontend. Data validation on the backend is handled by T377729: Use SaveUserOptions hook to validate template favourites

Event Timeline

Samwilson renamed this task from Disable favourite icon if the max has been reached to Disable favourite icon in search results if the max has been reached.Oct 17 2024, 10:41 PM
Samwilson updated the task description. (Show Details)
Cparle renamed this task from Disable favourite icon in search results if the max has been reached to Notify user if they try to favourite a template when they already have the max number of favourites.Oct 23 2024, 11:27 AM
Cparle updated the task description. (Show Details)

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

[mediawiki/extensions/TemplateData@master] templateDiscovery: Set a max number of favorites, and warn

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

TheresNoTime set the point value for this task to 3.Mar 4 2025, 12:24 PM

Change #1124095 merged by jenkins-bot:

[mediawiki/extensions/TemplateData@master] templateDiscovery: Set a max number of favorites, and warn

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

KSiebert changed the task status from Open to Stalled.Mar 27 2025, 10:38 AM
dom_walden subscribed.

I tested this alongside T377466#10764131.