⚓ T216032 Adjust new article invite for out of beta graduation (original) (raw)

Adjust new article invite for out of beta graduation

Currently an invite is shown for users trying to create an article. The invite lets them know that Content translation beta feature exists, and encourages to try it.

Screenshot 2019-02-13 at 12.40.06.png (550×1 px, 100 KB)

As Content translation graduates out of beta we want to still let editors know that translating is an alternative available for them. We want also to update the approach to, while still informing users, make the experience less distracting for users not interested in the tool.

Proposed solution

In order to achieve this, we want the updated invite to follow these considerations:

This interactive user flow illustrates the proposal.

Invite at the bottom of the new article page
When users start to create a new page, if the above considerations are met, a non-blocking dialog appears at the bottom of the viewport.

Invite Translation dashboard
cx-newpage-invite.png (768×1 px, 132 KB) cx-newpage-invite-small copy 2.png (768×1 px, 71 KB)

The dialog shows the following text:

Start with a translation instead?
Create a new article by translating from another language you know.
[Start translating]

Compact when typing
If users starts typing, the invite will become compact to (a) show only the first line of text, and (b) make the button frameless. Supporting the change with a transition will make it more fluent.

Expanded version (default) Compact version (when the user types)
cx-newpage-invite.png (768×1 px, 132 KB) cx-newpage-invite-small.png (768×1 px, 126 KB)

Follow-ups

This ticket captures the basic approach. There are two follow-up improvements that are supported by separate tickets:

Event Timeline

Comment Actions

Note that we may need to also hint that users can start a translation anytime from the Contributions page (e.g., a welcome screen may be needed when users land in Content translation)

Comment Actions

and using that, I get

image.png (242×632 px, 16 KB)

Reusing is great, but I'm not sure I understand all the implications. Can you detail a bit more which are the aspects from the spec above that cannot be supported with the approach you propose? From the example it is not completely clear where do you propose the Popup to appear, how does it appear, which contents does it accept and what happens when scrolling.

Some thoughts that may help:

Comment Actions

Screenshots from above patch:

After page load On any keypress in the screen
image.png (311×974 px, 20 KB) image.png (311×974 px, 17 KB)

TODO:

  1. Shown only for multilingual users - Need to find out this , preferably from server side so that we don't send unwanted code to browser
  2. Don't show to existing Content translation users. - Need to find out this , from server side
  3. Don't show if it is the very first time for the user in the editor. - No idea how to find out this.

Also:

The dialog will appear with a transition for both opacity (going from transparent to opaque), and vertical position (moving 40px from the bottom with an ease-out acceleration). The transition will take 0.25s and will start with a 0.5s of delay.

There is a non customizable transition for OOUI widget(https://doc.wikimedia.org/oojs-ui/master/js/source/PopupWidget.html#OO-ui-PopupWidget-method-setSize) - I did not bother to change that to the specification above.

Comment Actions

Also:

The dialog will appear with a transition for both opacity (going from transparent to opaque), and vertical position (moving 40px from the bottom with an ease-out acceleration). The transition will take 0.25s and will start with a 0.5s of delay.

There is a non customizable transition for OOUI widget(https://doc.wikimedia.org/oojs-ui/master/js/source/PopupWidget.html#OO-ui-PopupWidget-method-setSize) - I did not bother to change that to the specification above.

@Pginer-WMF, can you confirm this is fine to leave out? 510710 does not implement the transitions specified in the description.

There is another spec not completed, but that is better to be done in a follow up, since dashboard needs to be updated to support the usecase (having search box open when landing on CX dashboard):

The "Start translating" action will lead the user to the Content translation dashboard with the search box ready to start a new translation.

Comment Actions

Thanks for pinging, @Petar.petkovic. Comments below:

Also:

The dialog will appear with a transition for both opacity (going from transparent to opaque), and vertical position (moving 40px from the bottom with an ease-out acceleration). The transition will take 0.25s and will start with a 0.5s of delay.

There is a non customizable transition for OOUI widget(https://doc.wikimedia.org/oojs-ui/master/js/source/PopupWidget.html#OO-ui-PopupWidget-method-setSize) - I did not bother to change that to the specification above.

@Pginer-WMF, can you confirm this is fine to leave out? 510710 does not implement the transitions specified in the description.

Yes. It is ok, to use the component default transition. I'll review when it is available and create a follow-up ticket if needed.

There is another spec not completed, but that is better to be done in a follow up, since dashboard needs to be updated to support the usecase (having search box open when landing on CX dashboard):

The "Start translating" action will lead the user to the Content translation dashboard with the search box ready to start a new translation.

Also makes sense. Let's see how the workflow feels in practice and create follow-up tickets as needed.

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits