Page MenuHomePhabricator

Dashboard list switcher
Closed, ResolvedPublic

Description

As the new translation dashboard supports different views based on the translaiton status (suggestions, in-progress, and published), a control to switch between those views is needed.

The switcher will support different screen sizes:

Narrow screens

On narrow screens it is presented as a navigation panel at the bottom for easy thumb access on mobile devices:

Dashboard lists - View switcher.png (768×1 px, 108 KB)

Based on the breakpoint proposal (T303522), this applies to:

  • @min-width-breakpoint-mobile 320px - 639px

Wider screens

For larger screens the options to switch between views will be located on the side before the lists (i.e. left side for Left-to-Right languages). To make sure that there is enough space for the contents and the sidebar, it will use a different number of columns based on a 12 column grid (more details about reference grid in T90687).

Desktop Switcher spec.png (768×1 px, 50 KB)

More details can be inspected in the Figma design

This version is shown only for sizes larger than the "phone". Based on the breakpoint proposal (T303522), this applies to:

  • @min-width-breakpoint-desktop-wide 1680px and more
  • @min-width-breakpoint-desktop 1120px - 1679px
  • @min-width-breakpoint-tablet 640px - 1119px

Responsive adjustments

The mockups bellow illustrate some examples of how the switcher is represented differently on different reference sizes:

MobileTablet VerticalTablet HorizontalDesktop
Mobile.png (896×320 px, 89 KB)
TabletV.png (784×768 px, 88 KB)
TabletH.png (768×1 px, 75 KB)
Desktop - Suggestions.png (900×1 px, 115 KB)

Event Timeline

Pginer-WMF triaged this task as Medium priority.Oct 3 2022, 11:39 AM
Pginer-WMF created this task.
Pginer-WMF updated the task description. (Show Details)
Pginer-WMF updated the task description. (Show Details)

To clarify, this is about the Vue dashboard. Currently we had disabled the selectors for "published", "suggestions", "in progress" by using app.config.globalProperties.$incompleteVersion. Just giving true value will bring all the selectors(they are functional too).

The view switcher is a new UI component that we will have to build similar to mw-button-group component we have. @Pginer-WMF is there a standardized name for this selector? Could not find it documented in design guidelines/codex/OOUI

Change 862834 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX: Enable dashboard list switcher and draft translation list

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

Change 862834 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Enable dashboard list switcher and draft translation list

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

ngkountas removed ngkountas as the assignee of this task.

This ticket is currently blocked from being properly completed, until the "published" translation list has been implemented. Moving this back to priority backlog for now.

Change 869344 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20221220

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

Change 869344 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20221220

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

Pginer-WMF raised the priority of this task from Medium to High.Jun 5 2023, 1:59 PM

Change 934254 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX: support published translation list

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

Change 934254 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: support published translation list

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

Change 954671 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230904

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

Change 954671 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230904

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

On wider screens the list switcher is currently displayed as a set of tabs at the top of the different lists.
The expected behaviour on wider screens, is for the list switcher to be placed in a sidebar as a set of selectable pills.

CurrentProposed
bn.m.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=bn(Wiki Tablet).png (768×1 px, 121 KB)
TabletH.png (768×1 px, 75 KB)

The "Wider screens" and "Responsive adjustments" in the ticket description provide more details on this.

Change 961164 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX Unified dashboard: Adjust desktop dashboard switcher to match design

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

Change 961164 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX Unified dashboard: Adjust desktop dashboard switcher to match design

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

Change 971349 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20231103

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

Change 971349 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20231103

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

The latest pending issue (the list switcher to be placed in a sidebar as a set of selectable pills) is now deployed on production. This task can be considered as done.