Page MenuHomePhabricator

Evaluate Wikidata's mobile site: Reconsider how Wikidata uses MobileFrontend/Minerva
Open, Needs TriagePublicBUG REPORT

Description

Wikidata engineers should spend some time assessing how Wikidata uses MobileFrontend/Minerva and determine whether it should continue to operate in that way or change it's strategic direction. In 2023 better options exist then the ones we had in 2012. I suggest an engineer evaluates the 3 options below and makes a decision on the approach that makes most sense for Wikidata.

Background

MobileFrontend provides various features

  1. creates a separate mobile site (skin) for your mobile traffic,
  2. provides various content transformations to make your content more friendly (mostly designed for removing content via the nomobile class)
  3. simplifies mobile footer and adds a desktop/mobile site link,
  4. provides replacements for special pages that are not mobile friendly: Special:Watchlist, Special:Preferences
  5. provides a beta mode with a feature management system for adding experimental features for anonymous users.

The WMF web team has recently been working towards minimizing the functions of MobileFrontend to #1-#3 in the list above and reducing the technology gap between mobile and desktop experiences.

Over the years Wikidata.org has developed various customizations that are tied to MobileFrontend and Minerva. Despite this additional code, Wikidata.org seems to lack many functions on mobile that exist on desktop. It also seems to not make use of the content transformations that MobileFrontend provides, in fact seems to workaround and from the look of it may even disable some of them (for example section collapsing is not available on https://www.wikidata.org/wiki/Help:About_data)

There are a few paths that should be evaluated.

Possible options

Keep the status quo

Pros: Doing nothing is always the easiest option; Having completely separate sites means you can maintain completely different experiences (At a. cost)
Cons: Maintaining a mobile and desktop experience may be expensive given work by the web team. For example, in future the plan is for Minerva to use the same search as desktop and it's not clear how that would impact Wikidata (T275252). Over time this may require for maintenance work to keep up with the evolving Minerva/MobileFrontend codebases.

Disable MobileFrontend, continue using Minerva

Upon inspection of Wikidata.org I noticed that the desktop Minerva skin performs quite well on mobile devices (barring a few minor modifications), potentially even better than the mobile skin.

The Minerva desktop skin can be enabled either via query string or by user preference:
https://www.wikidata.org/wiki/Q1?useskin=minerva

I found minor issues that could easily be rectified using the following user/site styles:
https://www.wikidata.org/wiki/User:Jdlrobson/minerva.css

The code that switches skins, could be reduced to a simple configuration change that sets wgDefaultSkin when the mobile domain is detected.

Pros: Wikidata.org will not be impacted negatively by any upstream changes in MobileFrontend / Minerva. Site will be more performant; Completely in control of Wikidata engineers - no need for support from teams at WMF.
Cons: The Wikidata desktop code is not quite optimized for mobile so there would be work to do here by wikidata maintainers

Limit MobileFrontend, continue using Minerva

You could disable the various unused functions in MobileFrontend to minimize the differences between the mobile and desktop site. For example if you need section collapsing but not the special pages, you could use configuration to disable the special pages.

Pros: Limited benefits on short term; Retain useful features; Remove unnecessary
Cons: You'd still need to remove all the MobileFrontend specific checks inside Wikidata.

Use responsive version of Vector 2022

The Desktop Improvements (Vector 2022) project has worked hard to improve the responsiveness of Vector 2022. Currently the web team intentionally only supports down to 500px but could be convinced to support a responsive skin if we had motivation.

There is a small amount of work remaining by web team to realize this (see T319305) but a Wikidata engineer can imagine this by using Vector 2022 on a mobile device on Wikidata using the following user script https://en.wikipedia.org/wiki/User:Jdlrobson/responsiveVector2022.js

https://phabricator.wikimedia.org/phame/post/view/286/should_vector_be_responsive/

Pros: Web team are motivated to make Vector 2022 mobile friendly; Wikidata mobile experience would benefit from all features currently desktop only
Cons: Some editors may dislike a responsive skin and would require some community outreach (they can easily opt out using existing preferences in Special:preferences); The Vector 2022 skin is not quite mobile friendly and WMF web team need to be onboard with any changes here.

Have a Wikidata-only skin

Having a Wikidata only skin allows Wikidata to have its own distinct brand optimized for its own features. Special:ContentTranslation took this approach to sandbox it from changes by other teams.

Pros: Wikidata can make decisions around page rendering.
Cons: More work required to create a new skin

Event Timeline

I like Disable MobileFrontend, continue using Minerva, except for having to adjust my preferences or use query parameters all the time if I use Wikidata both on desktop and mobile. Could MobileFrontend be changed so that feature #2 can be turned off at a site (or, even better, at a namespace) level while keeping features #1 and #3?

for example section collapsing is not available on https://www.wikidata.org/wiki/Help:About_data

I do see collapsible sections on https://m.wikidata.org/wiki/Help:About_data (of course not at your link, as it points to the desktop site). And it makes sense to have collapsible sections and other content transformations on wikitext pages on Wikidata, which is why I’d prefer turning off content transformations at a namespace level if possible.

Collapsible sections in part of MobileFrontend, so disabling MobileFrontend would remove the feature. MobileFrontend could be retained using a more limited set of functionality, I've added that as an option.

which is why I’d prefer turning off content transformations at a namespace level if possible.

It is possible. That's what $wgMFMobileFormatterOptions does.

Thanks for filing this, Jon!

@ItamarWMDE @Sarai-WMDE We should talk about this also in the context of our Item UI improvement planning.

In regard to this issue:

  • The current mobile UI for Wikidata falls short in usability, lacking essential features such as language fallback support and offering only limited editing capabilities. The forthcoming addition of the multi-language code feature (T285156) may further complicate the user experience.
  • It's no surprise that many users are steering clear of the mobile UI. Preliminary analytics data, as part of T336361, indicates that approximately one-third of all Wikidata mobile traffic already utilizes the desktop UI. The proportion could be even higher for editing, and Andrew and I are actively investigating this aspect.
  • Our plan is to revamp the editing UI, and accommodating two distinct interfaces will only complicate this undertaking. Therefore, it appears increasingly likely that adopting a responsive design approach is the most prudent course of action. Consequently, I am deferring any investments into the mobile UI at this time.

In summary, it appears to me that we are already on a clear path toward transitioning from a split UI to a responsive approach in Wikidata's near future. Additionally, there is an enticing proposal put forth by @Nikki (T330820) that could potentially accelerate our move to a single, unified UI.