Directory

⚓ T380379 Basic topic selection: Dialog responsivenes when adjusting suggestions
Page MenuHomePhabricator

Basic topic selection: Dialog responsivenes when adjusting suggestions
Open, MediumPublic4 Estimated Story Points

Description

In T368422, an initial version was implemented to support basic topic selection in order to customize translation suggestions. The "Adjust suggestions view" provides a list of topics for users to select. This is intended to work similar to a Codex dialog component. While it takes the full view on narrow screens, for wider ones the dialog may need some adjustments:

  • Reduce maximum width. Currently, the dialog looks too wide, making it look stretched. We could use a max-width size of size-3200 (512px) based on the Dialog component and Size tokens from Codex.
  • Add an overlay. The standard overlay from the Dialog component should be used. In this way, all elements from the background become less distracting while still providing context for user orientation.

This will help users on wider devices such as tablets, and make it ready for desktop eventually too. Examples of current and proposed states are shown below:

CurrentProposed
bn.m.wikipedia.org_w_index.php_title=%E0%A6%AC%E0%A6%BF%E0%A6%B6%E0%A7%87%E0%A6%B7_%E0%A6%AC%E0%A6%BF%E0%A6%B7%E0%A6%AF%E0%A6%BC%E0%A6%AC%E0%A6%B8%E0%A7%8D%E0%A6%A4%E0%A7%81_%E0%A6%85%E0%A6%A8%E0%A7%81%E0%A6%AC%E0%A6%BE%E0%A6%A6&active- (3).png (768×1 px, 119 KB)
bn.m.wikipedia.org_w_index.php_title=Special_ContentTranslation&active-list=suggestions&from=en&to=bn&filter-type=automatic&filter-id=previous-edits(Wiki Tablet).png (768×1 px, 115 KB)

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

SBisson triaged this task as Medium priority.
SBisson moved this task from Backlog to In-progress on the LPL Hypothesis board.

@Pginer-WMF While working on this I noticed that our dialog component has a customizable overlay. From a quick search, here are the values used throughout the app:

ContextOverlay opacity
Login0.25
Translation deletion0.7
Confirm translation start0.7
Language selector0
Article search0
Publish animation0.85
Publish captcha0.65
Publish options0.7
Block template status0.7
Confirm back navigation0.7

Is there an intention behind those values or do you think it could be standardized to what the codex dialog is using (0.65, not configurable as far as I can see)?

@Pginer-WMF While working on this I noticed that our dialog component has a customizable overlay. From a quick search, here are the values used throughout the app:

ContextOverlay opacity
Login0.25
Translation deletion0.7
Confirm translation start0.7
Language selector0
Article search0
Publish animation0.85
Publish captcha0.65
Publish options0.7
Block template status0.7
Confirm back navigation0.7

Is there an intention behind those values or do you think it could be standardized to what the codex dialog is using (0.65, not configurable as far as I can see)?

I think it makes sense to standardize around the value used on codex (0.65). Especially since it is quite similar to most of the cases listed above. "Publish animation" may be the only exception (more on this below).

For the few outliers, we may want to verify that nothing gets broken. For Login, Language selector, and Article search where the current overlay is less visible, having a more visible overlay is not expected to cause problems since there is no strong requirement for reading what is in the background.

However, for "Publish animation", if it refers to the case illustrated below with a screenshot, we may want to be careful since the overlay is used differently. Since text is placed directly on top of the overlay, a more solid background is needed. In fact, there was a request to make it even more visible (0.95) to ensure legibility: T273964: Adjust the overlay opacity to 95%

publish-feedback.png (1×720 px, 88 KB)
Nikerabbit set the point value for this task to 4.Nov 26 2024, 8:15 AM

Thanks @Pginer-WMF, I propose to keep the overlay configurable in the dialog component but instead of accepting any numerical value, there would be only a few named values: medium: 0.65 (default), high: 0.95. This would keep enough flexibility for handling the two cases we currently see but in the spirit of the design tokens, it would restrict the options to a few "good" values.

Change #1099038 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] Standardize dialog width and overlay color and opacity

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

Change #1099038 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Standardize dialog width and overlay color and opacity

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

Change #1104703 had a related patch set uploaded (by Sbisson; author: Sbisson):

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

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

Change #1104703 merged by jenkins-bot:

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

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