Page MenuHomePhabricator

[S] [minor] "Show thumbnails in Special:Search" option is available on mobile
Closed, ResolvedPublic

Description

Currently, thumbnails are not available on mobile, however the Preference "Show thumbnails in Special:Search" is displayed in Preferences on mobile.

Steps to reproduce:

  1. On mobile type Special:Search in the search field or click on Settings - enable Advanced mode - click on Open preferences
Screen Shot 2022-10-20 at 12.29.34 PM.png (1×732 px, 154 KB)
  1. The option "Show thumbnails in Special:Search" is present and clickable. Clicking on it won't have any effect on mobile Search experience - CORRECT behavior.

Screen Shot 2022-10-20 at 12.29.51 PM.png (1×794 px, 189 KB)

Notes:
(1) Having an option that doesn't do anything might be confusing for users. Changing the option's status will affect desktop experience which can add to the users confusion.
(2) This case (the option that doesn't do anything on mobile) is not unique to "Show thumbnails in Special:Search". Another example is Watchlist -"Use non-JavaScript interface".

Acceptance Criteria

  • Change the copy of the preference title and subtitle/help text to the following:

    Title: Show thumbnails in Special:Search on Desktop

    Subtitle: Displays thumbnails for [Article] namespace results on special:search page

Event Timeline

@Sneha I wonder if an easy solution could be to just say "Show thumbnails in Special:Search on desktop" as the preference text?

@CBogen Are we not able to hide that setting if we detect a mobile skin? If not we can say on Desktop.

However, the copy of the setting needs to be updated. The way it is written right now is a bit confusing and lengthy.

Here is my suggestion for copy:
Title: Show thumbnails
OR
Title: Show thumbnails on desktop

Subtitle: Displays thumbnails for article namespace results on special:search page"

@CBogen Are we not able to hide that setting if we detect a mobile skin? If not we can say on Desktop.

However, the copy of the setting needs to be updated. The way it is written right now is a bit confusing and lengthy.

Here is my suggestion for copy:
Title: Show thumbnails
OR
Title: Show thumbnails on desktop

Subtitle: Displays thumbnails for article namespace results on special:search page"

I'm not sure. @matthiasmullie do you know?

I have done some small research and there is no native way to disable the config on mobile. We could do some work to prevent the Config to be created if on mobile skin, but it is not currently done from what I can see. (I used this reference for all available properties on the config type:https://www.mediawiki.org/wiki/HTMLForm)

I have also done some investigation on the mobile config and other config that are skin dependent and they seem to specify where something will work, for example this is from the mobile config: "Optimize and simplify special pages when on mobile (recommended)" and this "Adapt layout to screen size on mobile."

Hmm okay then we can change the copy (as shown below) to make things more clear. Also the title is getting long already so reduced the help text under it. Since we are clearly saying this for article namespace we don't have to mention files.

Title: Show thumbnails in Special:Search on Desktop
Subtitle: Displays thumbnails for article namespace results on special:search page"

CBogen updated the task description. (Show Details)
CBogen renamed this task from [minor] "Show thumbnails in Special:Search" option is available on mobile to [S] [minor] "Show thumbnails in Special:Search" option is available on mobile.Dec 14 2022, 5:27 PM
CBogen updated the task description. (Show Details)

Change 868119 had a related patch set uploaded (by Vadim Kovalenko; author: Vadim Kovalenko):

[mediawiki/core@master] "Show thumbnails in Special:Search" option is available on mobile

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

Change 868119 merged by jenkins-bot:

[mediawiki/core@master] "Show thumbnails in Special:Search" option is available on mobile

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

Checked in betalabs - the text has been changed accordingly:

Screen Shot 2022-12-22 at 4.54.42 PM.png (1×818 px, 133 KB)

Checked in testwiki wmf.20 - the text is correct:

Screen Shot 2023-01-25 at 1.46.26 PM.png (1×820 px, 144 KB)