Page MenuHomePhabricator

Spike: Look into the iOS & Android apps and identify needed changes for subrefs
Closed, ResolvedPublicSpike

Description

Context:

Currently iOS & Android apps are not compatible when it comes to subrefs. Neither the indentaion nor the numbering works in some cases and the reference previews are broken.
Use #talk-to-mobile-apps to communicate with the apps team.

Goal:
Notes:

From Dmitry Brant

Both iOS and Android apps receive their article content from PCS (Page Content Service), so any fixes and updates would need to be made in that codebase, and will be automatically received by apps. Unfortunately, PCS contains a lot of very legacy code, and at first glance it looks like PCS does some rearranging of reference elements, in a way that is indeed incompatible with sub-referencing. Here is the file within PCS where this logic happens. If you could dig in and make PCS work with sub-referencing, that would be very welcome

Timebox:

2 people 2 days

How to enable testing in the mobile App (Android)
  • Open the Wikipedia App on your device
  • Go to Settings -> About
  • Tab the build number a couple of times (min 5x) until you see "you are now a developer"
  • Go to Settings -> Wikipedia Languages
  • Search for the language "Test" and select it
  • Now you can open an article from test.wikipedia, e.g. CiteDetailsTests

Event Timeline

Restricted Application changed the subtype of this task from "Task" to "Spike". · View Herald TranscriptJul 31 2025, 11:18 AM

Change #1184086 had a related patch set uploaded (by Mareike Heuer; author: Mareike Heuer):

[mediawiki/services/mobileapps@master] Add tests for mobile subreferencing

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

Change #1185077 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/services/mobileapps@master] Add subreference tests for pagelib ReferenceCollection

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

Change #1185220 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/services/mobileapps@master] Integration tests for Cite sub-referencing

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

Change #1185222 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/services/mobileapps@master] Hide subref reflist item numbers

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

Change #1185223 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/services/mobileapps@master] [WIP] Subrefs outide of flexbox

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

Change #1185077 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/services/mobileapps@master] Add subreference tests for pagelib ReferenceCollection

Reason:

Merged as part of I7d90079. 🎉

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