Page MenuHomePhabricator

Offload clickHandler DOM transformations to service
Closed, ResolvedPublic

Description

See if we can offload more DOM transformation the Android app does to the service.

Event Timeline

bearND claimed this task.
bearND raised the priority of this task from to Medium.
bearND updated the task description. (Show Details)
bearND moved this task to Doing on the Mobile-Content-Service board.
bearND subscribed.

Change 253357 had a related patch set uploaded (by BearND):
Hide IPA transformations

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

Only was able to do the "hide IPA" transformation.

I looked at collapsing tables + references. Both are very much related. The problem is that the collapsing table transformation requires three translated strings.
This means we would need either:
(1) a way to inject the translated strings into the served HTML via some sort of templating mechanism [=do some heavy string replacements of the client side; sounds like it could negatively affect performance; the opposite of what we want] or
(2) deal with I18N on the services side and for some wikis which allow language variants to also keep them separate (from a storage/caching standpoint) [also add TWN syncs]
This seems too much risk and effort to take on right now.

Checked with 2.1.134-alpha-2015-11-19 on Nexus 5 (Android 5.1.1) .

A good example to test will be the article - Help:IPA for Russian. There are four collapsable tables and collapsable Notes.