Page MenuHomePhabricator

[2.1.143-alpha-2016-03-18] 'Find in page' cannot search collapsed tables
Closed, ResolvedPublic1 Estimated Story Points

Description

  1. Search for "find phrase" - in quotes. Two articles are listed: Richard Whately and Charles Sanders Peirce.
  2. Go to the either of the article and use 'Find in page' to search for find phrase (with or without quotes)
  3. 'Find in page' will return zero results.

Searching desktop wiki will show that 'find phrase' is in Notes which are collapsed in the app(the screenshot is from Richard Whately article).

Screen Shot 2016-03-18 at 12.36.31 PM.png (210×819 px, 79 KB)

  1. Uncollapse Notes and perform 'Find in page' search again - the 'find phrase' is found now.

  • Determine if PCS exposes a function to expand all tables at once (and if not, expose it).
  • Call the above function right before starting the search.

Event Timeline

MBinder_WMF set the point value for this task to 1.May 18 2016, 7:48 PM

We use the native WebView find functionality. Perhaps this is a fundamental limitation of that approach?

iOS uses a solution of expanding all tables when starting to search. Not perfect, but they like it more than potentially missing incidents of search terms.

LGoto triaged this task as Medium priority.Feb 25 2021, 5:14 PM

Change 668226 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[mediawiki/services/mobileapps@master] Expose the toggleCollapsedForAll method for find-in-page usage in the app

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

Change 668226 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Expose the toggleCollapsedForAll method for find-in-page usage in the app

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

Change 673156 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[mediawiki/services/mobileapps@master] Create expandOrCollapseTables() method for find-in-page usage in the app

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

Change 673156 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Create expandOrCollapseTables() method for find-in-page usage in the app

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

@cooltey please provide a link to the test apk for this. Also tried to test this the old fashioned way via Alpha but the link throws out a 404. Thanks.

Hi @schoenbaechler

I forgot to add the HOLD tag on this PR so it has been merged to the master branch. In another word, you now can test it on the latest alpha APK.

Please note that when clicking on "find in article" button, all the hidden divs (e.g. info box) or sections (e.g. References) will be expanded.