Page MenuHomePhabricator

Reuse the user menu from desktop improvements in Content/Section Translation skin
Open, MediumPublic

Description

Content Translation used a simplified chrome to let users focus on the translation task (e.g., hiding the sidebar which would clutter too much the 3-column translation UI), which was later refactored as a more standard skin (T267102).

This skin in content Translation also supported a more compact version of the personal tool bar and user menu. This is an area where the Desktop improvements project has been also working on. Sharing a similar goal we ended up with two similar but inconsistent solutions, as illustrated below:

image.png (340×644 px, 32 KB)

This ticket proposes to reuse the user menu from the desktop improvements project in the Content Translation skin.
Input from engineers would help to determine whether it is better to start with Content Translation, or the new Section Translation first.


Event Timeline

Pginer-WMF triaged this task as Medium priority.Jul 30 2021, 9:24 AM

Input from engineers would help to determine whether it is better to start with Content Translation, or the new Section Translation first.

Special:ContentTranslation and Special:ContentTranslationStats and section translation mode of Special:ContentTranslation - all use same CX skin. So customization can be done in all pages at once. In other words, doing it in one go is easier than using different styles in CX and SX at same time.

Technically "reuse" is not that easy for skins. Skins are by design independent. So by "reuse" we will require copying the code+styles to CX by keeping the Skin template of CX as such.

Input from engineers would help to determine whether it is better to start with Content Translation, or the new Section Translation first.

Special:ContentTranslation and Special:ContentTranslationStats and section translation mode of Special:ContentTranslation - all use same CX skin. So customization can be done in all pages at once. In other words, doing it in one go is easier than using different styles in CX and SX at same time.

Technically "reuse" is not that easy for skins. Skins are by design independent. So by "reuse" we will require copying the code+styles to CX by keeping the Skin template of CX as such.

Thanks for the clarifications, @santhosh !
It is good to hear that the update to the skin would benefit both CX and SX.