Page MenuHomePhabricator

Newcomer tasks: Use Drawer component for mobile UI
Closed, ResolvedPublic

Assigned To
Authored By
MMiller_WMF
Nov 12 2019, 10:56 PM
Referenced Files
F31464336: image.png
Dec 9 2019, 9:01 PM
F31458878: IMG_8621.PNG
Dec 5 2019, 11:08 PM
F31314693: image.png
Nov 27 2019, 12:20 PM
F31290966: image.png
Nov 26 2019, 11:23 AM
F31111699: image.png
Nov 20 2019, 11:41 AM
F31059504: image.png
Nov 12 2019, 10:56 PM
F31063492: image.png
Nov 12 2019, 10:56 PM

Description

Currently on mobile, the task explanation widget is a popup like on desktop:

image.png (685×389 px, 54 KB)

It should be a MobileFrontend Drawer component as shown in this mockup, here in Zeplin, and below.

image.png (642×360 px, 111 KB)

Event Timeline

MMiller_WMF renamed this task from Newcomer tasks: mobile task explanation widget should be toast to Newcomer tasks: mobile TaskExplanationWidget should be toast.Nov 13 2019, 1:17 AM
MMiller_WMF updated the task description. (Show Details)
RHo renamed this task from Newcomer tasks: mobile TaskExplanationWidget should be toast to Newcomer tasks: mobile TaskExplanationWidget should be bottom sheet.Nov 13 2019, 2:09 PM
RHo updated the task description. (Show Details)

@MMiller_WMF I changed from toast to bottom sheet or dialog, since "toast" suggests it goes away by itself after some interval, but this dialog/sheet stays until the user taps on the X or outside of it.

@RHo Kosta pointed out elsewhere that the design is similar to the drawer component of MobileFrontend, but when the MF drawer is open, the rest of the page is dimmed (and inaccessible) but in the mockup here the top navigation bar is still accessible. Would it be OK to use the standard drawer UX? Dimming only parts of the page might be complicated even if we use a custom component, and it would be nice to avoid the code duplication.

hi @Tgr - yes I have updated the mocks so the nav bar is now also dimmed and we can use the standard drawer component. Thanks!

Change 552816 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[mediawiki/extensions/MobileFrontend@master] Add Drawer to mobile.startup

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

Change 552817 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[mediawiki/extensions/GrowthExperiments@master] (wip) Suggested Edits: Use Drawer component on mobile

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

kostajh renamed this task from Newcomer tasks: mobile TaskExplanationWidget should be bottom sheet to Newcomer tasks: Use Drawer component for mobile UI.Nov 25 2019, 2:29 PM
kostajh updated the task description. (Show Details)

Change 552816 abandoned by Jdlrobson:
Add Drawer to mobile.startup

Reason:
My bad. I see this came before https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/MobileFrontend/ /552614/ which I've just 2ed. They both achieve the same but the other seems to have the correctly built assets.

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

@RHo the Drawer component uses a down arrow rather than an X, is that OK to use?

image.png (578×836 px, 74 KB)

@RHo the Drawer component uses a down arrow rather than an X, is that OK to use?

image.png (578×836 px, 74 KB)

Hi @kostajh - for the sake of simplicity I think that's fine.
Unrelated(?): Is there a horizontal scroll happening inside that drawer, and if so can we remove it?

Unrelated(?): Is there a horizontal scroll happening inside that drawer, and if so can we remove it?

You're right that there is horizontal scroll, but it's not caused by the addition of the drawer (it's currently reproducible on beta), so we should probably deal with that in T238280

@RHo how does this look?

image.png (1×880 px, 146 KB)

As discussed the down arrow is used in place of the X. The heading seems to be slightly different from the mock, and the link doesn't have an underline as in the mock. Do you want any adjustments to those?

@RHo how does this look?

image.png (1×880 px, 146 KB)

As discussed the down arrow is used in place of the X. The heading seems to be slightly different from the mock, and the link doesn't have an underline as in the mock. Do you want any adjustments to those?

Thanks for the changes @kostajh - It's ok for the link to not have the underline, but the title should be a bit larger and the same size as the article title in the card (16px) on mobile – but it's a little hard to tell if because that is still requiring some UI tweaks noted on T238280. Similarly the slightly misaligned baseline for the MEDIUM tag text and the time on task ("15 - 20 minutes") text may be resolved on that task.

Thanks for the changes @kostajh - It's ok for the link to not have the underline, but the title should be a bit larger and the same size as the article title in the card (16px) on mobile – but it's a little hard to tell if because that is still requiring some UI tweaks noted on T238280.

From what I can tell, the task type label with is already 16px, while the article title is 19.2px. Do you want the "Find references" to also be 19.2px?

Similarly the slightly misaligned baseline for the MEDIUM tag text and the time on task ("15 - 20 minutes") text may be resolved on that task.

Agreed, let's deal with that in a separate task.

Thanks for the changes @kostajh - It's ok for the link to not have the underline, but the title should be a bit larger and the same size as the article title in the card (16px) on mobile – but it's a little hard to tell if because that is still requiring some UI tweaks noted on T238280.

From what I can tell, the task type label with is already 16px, while the article title is 19.2px. Do you want the "Find references" to also be 19.2px?

Ah the article title should be 16px on mobile (same as the task type label) as per the Zeplin http://zpl.io/2ZmBXqq so it's only article title that needs to be fixed on T238280. This should be good then, thanks!

Change 552817 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Suggested Edits: Use Drawer component on mobile

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

For @RHo review - functionality-wise, all seem to be in place.

  • is the dimming a little bit too strong?

IMG_8621.PNG (1×640 px, 68 KB)

Thanks @Etonkovidova - yes, you're right, the dimming expected is a white overlay @ 50% opacity, but this is using rgba(0,0,0,.8) @ opacity:50%.

@kostajh – is this effortful to customize? Would be good if this is relatively easy to change so it seems less 'heavy' an interaction.

image.png (1×838 px, 371 KB)

^ That's what it looks like with a white background. I can push a patch for it, but is it a problem that this component is then inconsistent in appearance from the other Drawer component implementations?

Change 556058 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[mediawiki/extensions/GrowthExperiments@master] Suggested edits: Lighten the dimming effect on Drawer component

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

image.png (1×838 px, 371 KB)

^ That's what it looks like with a white background. I can push a patch for it, but is it a problem that this component is then inconsistent in appearance from the other Drawer component implementations?

Hmmm, I've thought about it and agree that on balance it is better to keep the semi-transparent black for consistency with other mobile drawers (like when tapping on references on articles). Sorry for the runaround!

Change 556058 abandoned by Kosta Harlan:
Suggested edits: Lighten the dimming effect on Drawer component

Reason:
Per T238164#5725842

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

No worries! I've abandoned the patch.

Thank you! I think it looks good!