Page MenuHomePhabricator

Template Favouriting
Closed, DuplicatePublic

Description

What + Why

Editors tend to work with templates when adding complex content and templates simplify repetitive and nested types of content.
Editors can easily recall templates they commonly use when they have a feature to favourite them right from one of the editing interfaces.

Details

  • As a user I want to be able to favourite templates that I use frequently, so that I can recall them easily.
  • As a user I want to be able to see all of my favourited templates, so that I can reuse them quickly.
  • As a user I want to be able to remove a favourited template if I do not need it anymore, so that I can keep my favourites list tidy.

Goals:

  • most sense would make to track if people use favouriting templates (database query)
  • possibly data scientists can check for correlation with template usage after, but it's hard to track

Research findings / data:

Designs:

https://www.figma.com/design/QWD6oDEz9NMEnF2ppVc4Xq/Template-recall-and-discovery?node-id=765-5322&t=5fa0wrAPMO3MAqrD-1

Out of scope:

  • we don't think about most used and used in this article for now
  • ordering how they are being displayed
  • adding sections to favourites list
  • we are not showing categories of templates
  • we are not highlighting recently searched templates

Related Conversations:

Contact person/team: (Optional)

For example wish lead of a project.

General Implementation:

  • it's going to use OOUI widget in TemplateData and the widget will be used in Template Wizard and Visual Editor
  • search behaviour will be prefix search or Cirrus search

Discussion Notes:

  • we currently track from template wizard when templates are being inserted
  • user preferences are available in superset already, first time someone introduces a favourite can be found

Resources:

Notes:

  • Favo(u)rite is spelt favorite in the code! (decision)
  • Feature flag is $wgTemplateDataFavoriteTemplates
  • Favourited templates are saved in user_properties with the key templatedata-favorite-templates (decision)
  • Maximum favourited templates is 50 (for now) (decision)

Event Timeline

I don't know if it is already planned or not in the scope of current work, but it would be convenient to be able to favorite a template directly from the template page.

I don't think that'll be part of the first round of work, but it's definitely something that's come up and will be considered more properly after the basic functionality is done.

TheresNoTime renamed this task from Template Favouriting to Template Favouriting.Oct 15 2024, 12:01 PM