Page MenuHomePhabricator

Surface recently selected filters
Open, MediumPublic

Description

Currently, the filters for Content Translation suggestions provide several options for filtering. Some are shown initially, and other options are only found when searching for them or checking the "view all" option for those where only part of a long list is surfaced (as per T392753).

This ticket proposes to create a "Recent" section that shows up to four filters that the user selected recently, and are not initially visible.

Existing.png (1×512 px, 78 KB)

This will be helpful to:

  • Allow users to quickly switch back and forth effortlessly between previous options without having to search them again and again.
  • Remove the "Active filter" section, which is often redundant. For example, in the example above, the active "For you" filter is shown selected twice. The cases where the active filter is not visible would be covered by the "Recent" section as illustrated below.
CurrentProposed
Existing.png (1×512 px, 78 KB)
Proposed.png (1×512 px, 80 KB)

Additional considerations:

  • The filters considered for the "Recent" section are those for which the user has confirmed (pressed the "Done" button), and the current selection (if it is not present in the initial list).
  • Filters that are already present in the initial menu should not be duplicated into the "Recent" section.
  • If there are no filters to show, the "Recent" section will be completely hidden.
Related work
  • T398154(Reorder search bar and tabs) - Moves search above tabs. The mockups in this task already reflect that change.
Notes for engineers

This task can be implemented:

  • After T398154 - If taking tasks separately
  • Together with T398154 - If reorganising the dialog structure in one go is more efficient.

Event Timeline

This is a good idea.
I would suggest to use a simple client side memory for the recent selections - like localstorage and avoid server side storage(which require database, and big effort and resulting maintanance cost and tech debt).
I think it is acceptable to not have the recent selections when user switch browsers/computers.

PWaigi-WMF added a project: Design.
PWaigi-WMF moved this task from Backlog to Incoming on the LPL Hypothesis board.