Page MenuHomePhabricator

Disable default mobile edit view for Wikibase items
Closed, ResolvedPublic

Description

Currently when visiting the default edit mode on a Wikidata item, the plain JSON representation of that data is inserted into the edit form. [1] The edit link is hidden via local css but the editor is still available. This edit mode should be disabled as the items should be editable via a javascript interface on the page itself like on desktop. Furthermore, it would be greate if the edit link (the pencil) could be assigned with a different action so when clicking on edit, instead of opening the default editor the item page should go in edit mode (same as on desktop).

Bildschirmfoto_am_2015-04-13_um_12.21.56.png (640×360 px, 28 KB)

[1] https://m.wikidata.org/w/index.php?title=Q2&mobileaction=toggle_view_mobile#/editor/0

Event Timeline

Bene raised the priority of this task from to Medium.
Bene updated the task description. (Show Details)
Bene updated the task description. (Show Details)
Bene set Security to None.
Bene added subscribers: Bene, Aklapper.

This can be done with only a config change for wikidata (add 'edit' as an array value to $wmgMFRemovePageActions in InitialiseSettings.php of #operations-mediawiki-config) or do it like ProofReadPage directly in Wikibase-Repo:
https://gerrit.wikimedia.org/r/#/c/203549

Both solutions will hide the edit pencil _and_ disables the editor (or better: the editor isn't loaded).

@Florian thanks for you reply, I think we should do it like ProofReadPage and remove the edit button in the extension itself.

Change 204024 had a related patch set uploaded (by Bene):
Disable mobile editor for entity pages

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

Change 204024 merged by jenkins-bot:
Disable mobile editor for entity pages

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

Florian claimed this task.
Florian reassigned this task from Florian to Bene.
Florian removed a project: Patch-For-Review.