Page MenuHomePhabricator

MUL - Show `mul` as the last language in the "In more languages" section of mobile termbox by default
Open, Needs TriagePublic

Assigned To
None
Authored By
Manuel
May 16 2023, 3:51 PM
Referenced Files
F36845476: image.png
May 16 2023, 3:51 PM
F36913033: image.png
May 16 2023, 3:51 PM
F36913031: image.png
May 16 2023, 3:51 PM
Subscribers

Description

User story:
As a Wikidata editor,
I want to find the mul Labels and Aliases at a consistent place in the termbox,
so that I am always able to find it quickly.

Solution:

  • Always show mul as the last language in the "In more languages" section.
    • It is not relevant if the mul Label or Aliases are empty or not.
    • A consistent place is preferable to 'mul' jumping around from entity to entity. We chose the bottom position as it is unproblematic even for non-Latin UI users and entities that should not use mul. Also, it makes the fallback functionality intuitive.
  • All Wikibase products will in the future get mul as an option (tmpEnableMulLanguageCode).
    • Initially, we will not activate this particular feature in Wikidata either to allow for a soft rollout. So this needs to be configurable via a second (temporary) flag.

Mockup:

image.png (403×218 px, 17 KB)

Expected fallback:

image.png (230×652 px, 17 KB)

Notes:

  • T316767 solves the same issue for desktop termbox.
  • The soft rollout flag (to change the behavior during soft rollout) should already exist by now due to T316767.

BDD:

If mul is NOT specified in the user's Babels:

After the soft rollout, show mul as the last language in the "In more languages" section.

GIVEN a wikibase where mul is enabled
AND the soft rollout phase has successfully ended (=configured for normal use/no soft rollout flag exists)
AND the user has not specified mul in their Babels (OR the Babel extension is disabled)
WHEN editing or viewing an Item on mobile (or desktop)

During the soft rollout, if mul is NOT already used in the entity, do NOT show mul.

GIVEN a wikibase where mul is enabled
AND we are only in the soft rollout phase (=configured for limited rollout)
AND the user has NOT specified mul in their Babels
AND mul is not already used in the entity
WHEN editing or viewing an Item on mobile (or desktop)
THEN do NOT show mul

If mul is already used in an entity, then show mul as the last language in the "In more languages" section. (This case is covered by the general case after the soft rollout.)

GIVEN a wikibase where mul is enabled
AND the user has NOT specified mul in their Babels
AND the Item uses mul
WHEN editing or viewing an Item on mobile (or desktop)
THEN show mul as the last language in the "In more languages" section of termbox

Exception in case mul is specified in the user's Babels:

During the soft rollout, if mul is specified in a user's Babels, show mul as the last language in the "In more languages" section.

GIVEN a wikibase where mul is enabled
AND the Babel extension is enabled
AND the user has specified mul in their Babels
WHEN editing or viewing an Item on mobile (or desktop)
THEN show mul as the last language in the "In more languages" section.

Acceptance criteria:

During soft rollout:

  • During the soft rollout, if mul is NOT already used in the entity, do NOT show mul.
    • Exception: If mul is specified in a user's Babels, then show mul as the last language in the "In more languages" section.
    • Exception: If mul is already used in an entity, then show mul as the last language in the "In more languages" section.

After soft rollout:

  • After the soft rollout, show mul as the last language in the "In more languages" section.

Release:

  • Release to test.wikidata.org

Event Timeline

Manuel updated the task description. (Show Details)
Manuel updated the task description. (Show Details)