NOTE: Must be done first: T377186: [STORY] New widget to search and favourite templates
User Story:
As a user I want to be able to favourite a template, so that I can reuse it without having to search for it again
Acceptance criteria:
- Clicking on an "unselected" icon in the template search results dropdown causes a template to be added to favourites
- Show a bubble notification after adding
- Notify the user if they try to favourite a template when they already have the max number of favourites
Details for QA:
- Check favourites are actually added to user's preferences
Designs:
Tasks in order of implementation:
- T377948: Add template to favourites on click
- T377729: Use SaveUserOptions hook to validate template favourites
- T377466: Show bubble notification after adding favourite
- T377949: Handle error when saving favourite templates
- T377460: Notify user if they try to favourite a template when they already have the max number of favourites
- T385845: Add favourite button to template form in VisualEditor
- T385846: Add favourite button to template form in TemplateWizard