Page MenuHomePhabricator

Codex Typeahead search should be adapted for mobile (Vector and Minerva)
Open, MediumPublic

Description

In the interest of unifying mobile and desktop (Vector and Minerva) I explored using the existing WvuiTypeaheadSearch component as a swap in replacement for the existing search experience. While it works fine for the tablet and desktop experience of Minerva, it reveals problems in the current mobile friendliness of the component, here are my findings.

Existing experience:

Screen Shot 2021-02-19 at 1.57.21 PM.png (1×844 px, 330 KB)

With WVUI (as is now)

Screen Shot 2021-02-19 at 2.19.34 PM.png (1×960 px, 217 KB)

Differences

These should be turned into actionables for a future iteration of wvui:

  • In mobile the search within pages appears at the top rather than the bottom, this means for large amounts of search results it must be scrolled to. Is that a problem?
  • In Vector focusing the search causes the input to shift to the left. In mobile this focus state doesn't make sense. Proposal: Limit the existing focus state with a media query.
  • In mobile we currently snap the search results to the entire viewport. Proposal: For lower resolutions, make search results position fixed and full screen.

With wvui proposed changes:

Screen Shot 2021-02-19 at 1.57.34 PM.png (1×778 px, 277 KB)

POC: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/665434

Event Timeline

For vector the proposed changes would look like this on a mobile device:

Screen Shot 2021-02-19 at 2.23.25 PM.png (1×782 px, 267 KB)

@alexhollender @Volker_E I would like the team to tackle this task as part of a technical goal. Would it be possible to chat through this some time soon (within next 2 weeks)?

@alexhollender @Volker_E I would like the team to tackle this task as part of a technical goal. Would it be possible to chat through this some time soon (within next 2 weeks)?

yea sounds good

Jdlrobson renamed this task from WvuiTypeaheadSearch should be adapted for mobile to WvuiTypeaheadSearch should be adapted for mobile (Vector and Minerva).Jul 20 2021, 7:31 PM
Jdlrobson renamed this task from WvuiTypeaheadSearch should be adapted for mobile (Vector and Minerva) to Codex Typeahead search should be adapted for mobile (Vector and Minerva).Mar 22 2022, 3:43 PM
Jdlrobson edited projects, added Codex, Design-Systems-team-20200324-20220422; removed WVUI.
Jdlrobson triaged this task as Medium priority.Mar 15 2023, 10:41 PM

Change 665434 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/MobileFrontend@master] POC: use Codex search widget in mobile

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

Change 665434 abandoned by Jdlrobson:

[mediawiki/extensions/MobileFrontend@master] POC: use Codex search widget in mobile

Reason:

Not active right now (T275252)

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