Page MenuHomePhabricator

Remove title and page description from Main Page and non-mainspace pages in mobile-html
Closed, ResolvedPublic

Description

Options for hiding title and description

a) add a display:none to those elements
b) remove those elements

Options for checking namespace and if it's a main page

1) We could check this as part of the Page.setup() call on the client. (do for all for now, maybe make it configurable later)

  1. We could check it when generating the payload server-side.

How to check if a page is the main page or if it's a non-main namespace page

In the <head> element of a main page Parsoid adds this:

<meta property="isMainPage" content="true">
<meta property="mw:pageNamespace" content="0">

Event Timeline

Change 598800 had a related patch set uploaded (by Joewalsh; owner: Joewalsh):
[mediawiki/services/mobileapps@master] Remove page title and description from non-main namespace pages and the main page

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

bearND updated the task description. (Show Details)
bearND added a subscriber: JoeWalsh.
bearND added a subscriber: bearND.

Added some options on how to implement this to the description.

[No idea why it changed the assignee when I was editing the description.]

JoeWalsh renamed this task from Remove title and page description from Main Page in mobile-html to Remove title and page description from Main Page and non-mainspace pages in mobile-html.May 26 2020, 8:26 PM
JoeWalsh updated the task description. (Show Details)

Change 598800 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Remove page title and description from non-main namespace pages and the main page

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

Mentioned in SAL (#wikimedia-operations) [2020-05-27T20:08:18Z] <mbsantos@deploy1001> Started deploy [mobileapps/deploy@9dc827f]: Update mobileapps to b3b9214c (T253648)

Mentioned in SAL (#wikimedia-operations) [2020-05-27T20:11:49Z] <mbsantos@deploy1001> Finished deploy [mobileapps/deploy@9dc827f]: Update mobileapps to b3b9214c (T253648) (duration: 03m 31s)