Page MenuHomePhabricator

MUL - Truncate placeholders for Aliases
Closed, DuplicatePublic

Description

Problem:
With T338330 we implemented the use of mul Labels as placeholders for Labels (both editing and viewing mode) and Aliases (only in the editing mode). The list of Aliases could be extensive, or their text or that of Labels could be long (e.g. https://www.wikidata.org/wiki/Q84621524), this could lead to a very content-heavy table with suboptimal UX.

Solution:

Aliases (this task): Only the first alias will be reused as a placeholder, followed by an ellipsis symbol. We should truncate the text of the MUL placeholders used for aliases in cases it's too long. A maximum of 2 lines of text should be displayed under all circumstances. Ellipsis will be used to indicate that the text was abbreviated.

Labels (T340615): We should truncate the text of the MUL placeholders used for labels. A maximum of 2 lines of text should be displayed under all circumstances. Ellipsis will be used to indicate that the text was abbreviated.

Mockups:

Read modeEdit mode
Labels
Screenshot 2023-06-23 at 15.35.18.png (1×2 px, 428 KB)
Screenshot 2023-06-23 at 15.37.03.png (1×2 px, 428 KB)
AliasesN/A (No changes)
Screenshot 2023-06-23 at 15.37.55.png (1×2 px, 399 KB)

Acceptance criteria:

  • Only the first element in the list of MUL aliases is displayed as a placeholder in other languages' entries
  • Aliases' placeholders never display more than two lines
  • Release to test.wikidata.org

Notes:

  • We tentatively don't see the need to add a title/tooltip that would display the whole text on hover, since the full label/alias will be fully visible in the Multiple languages entry, which will always be in sight due to its placement.
  • Regarding the amount of lines of text: the assumption is that 1 line wouldn't be enough in some cases to convey the meaning (that placeholders are the same as MUL), and that the 2-line limit will offer more coverage (most placeholders won't need ellipsis). Nevertheless, using longer placeholders disrupts the alignment of the termbox table quite a bit on edit mode (see mocks), due to the way it's designed. So using 1 line instead of 2 cannot be discarded in case we want to prioritize avoiding this disruption.

Event Timeline

Manuel renamed this task from MUL - Placeholders for Aliases can only take 2 lines (+ellipsis) in edit mode. to MUL - Placeholders for Aliases can only take 2 lines in edit mode. .Jun 22 2023, 4:17 PM
Manuel renamed this task from MUL - Placeholders for Aliases can only take 2 lines in edit mode. to MUL - Placeholders for Labels and Aliases can only take 2 lines in edit mode. .Jun 22 2023, 4:56 PM
Manuel renamed this task from MUL - Placeholders for Labels and Aliases can only take 2 lines in edit mode. to MUL - Placeholders for Labels and Aliases can only take 2 lines. .Jun 23 2023, 9:08 AM
Manuel updated the task description. (Show Details)
Sarai-WMDE renamed this task from MUL - Placeholders for Labels and Aliases can only take 2 lines. to MUL - Truncate placeholders for Labels and Aliases.Jun 23 2023, 1:52 PM
Sarai-WMDE updated the task description. (Show Details)
Manuel renamed this task from MUL - Truncate placeholders for Labels and Aliases to MUL - Truncate placeholders for Aliases .Jun 28 2023, 8:39 AM
Manuel updated the task description. (Show Details)