Page MenuHomePhabricator

[User Story US-10] Reader can get back to a query they ran (Android)
Closed, ResolvedPublic1 Estimated Story Points

Description

User Story

  • As a reader
  • I want the queries I ran to show up in my search history and recent searches
  • So that I can pick a thread back up

Where in the flow: Search entry screen (date-grouped history) and the search empty state (recent searches).

Acceptance criteria

  • Queries appear in the date-grouped history on the search entry screen and in the recent-searches list.

TS: Per our last sync, Queries only appear in recent-searches list, NOT incorporated in the history list alongside articles.
TS: Tapping a recent search query pre-populates search bar and kicks off search experiment (i.e. shows lexical search results, with semantic entry point at top).
TS: Highlights are not saved, so tapping article from history is not expected to highlight.

  • Clearing history and clearing recent searches both remove Dive queries.

TS: See above note

  • History behaviour honours each app’s existing history and privacy settings; no new persistence mechanism is introduced.
  • History should show the article and recent search should show the query

Out of scope

Saving individual passages or a reading list of passages.

Design reference

https://www.figma.com/design/s3KF9DqhJg2aAHpZBS8lwg/iOS---Android---%3E-Semantic-Search-%7C-Phase-2?node-id=6470-32736&t=rAhSYE80AZ2MVsOU-11

Event Timeline

Eng Sync questions:

  • Can you clear individual search items (swipe like on iOS)?
  • Do you still see persisted searches in your history after experiment ends?
  • Do we allow long press of search item?
  • Is it always date-based?
  • What happens if they tap the item...are we showing the "Find" modal again, and we just do the query again?
  • Are we discarding this mock with the full highlighted search result as well? (link)

Tentative estimates:
iOS: 3
Android: 3

ABendall-WMF renamed this task from [User Story] Reader can get back to a query they ran to [User Story US-10] Reader can get back to a query they ran.Sep 8 2026, 7:56 PM

@TLessa-WMF

Which of these two explorations are in the requirements? Adding horizontally scrolling semantic search results in history would be a lot of work.

Screenshot 2026-09-10 at 3.41.07 PM.png (503×473 px, 58 KB)

Hey @Tsevener, I am still working on it and talking to Jaz about this view. As it stands now, we will keep following the pattern of "history" being dedicated to articles users visited, and recent searches will be the space for queries. We won't have cards displayed on recent searches (or history), and we are aiming to simplify the interface as much as possible. @JTannerWMF FYI

Notes after meeting:

  • Queries no longer display in History, only articles display. Queries now only save in recent searches (same way key word searches do now).
  • Tapping a recent search query pre-populates search bar and kicks off search experiment (i.e. shows lexical search results, with semantic entry point at top).
  • Highlights are not saved, so tapping article from history is not expected to highlight.
Tsevener set the point value for this task to 1.Sep 16 2026, 9:34 PM

Should be small lift (basically testing).

@JTannerWMF Please update user story requirements to remove mentions of queries in history. Also please confirm our notes above look correct, thanks!

Tsevener renamed this task from [User Story US-10] Reader can get back to a query they ran to [User Story US-10] Reader can get back to a query they ran (Android).Sep 16 2026, 9:36 PM
Seddon raised the priority of this task from Medium to High.Sep 28 2026, 11:58 AM

Testing for design review / QA:

The latest APK can be found here: https://github.com/wikimedia/apps-android-wikipedia/actions/runs/37542330369/artifacts/11449457996

Setup:

  • Please download the APK and add it to your device or emulator
  • Go to Dev Settings and ensure that the desired switches are enabled (see example image)
    • semanticSearchEnabled: must be ON
    • semanticSearchFirstUse: can be ON or OFF
    • semanticSearchOverrideSupportLanguage -> ON = All languages enabled | OFF = ar, ja, fr only
    • semanticSearchIsTestActive: must be ON
    • apps_semantic_search: must equal 1
      DevSetting.png (1,344×2,992 px, 282 KB)

Testing:

  • Go to the search screen and type in a query.
  • Click the semantic search entry card to generate results
  • Click on a semantic search result to go to an article.
  • Click on the back button to get back to the semantic search results.
  • Dismiss the semantic search results bottom sheet (tap the scrim or click "x" or drag it down)
  • Clear the search field (backspace all the characters, or press the "x" in the search field.
  • You should see the recent searches list populate with your original query.
  • Click on your original query and you should be taken back to the search results screen with your query inside the semantic search entry card.
  • Click on the back button near the search query textfield.
  • You should see your semantic search article populate in the history list.

This can move forward but the punctuation in RTL is aligning on the wrong side if you carry over a query in a LTR language. @ABendall-WMF can you file a task for this.

Screenshot_20261007-182627.png (1,080×2,340 px, 178 KB)

ABorbaWMF subscribed.

Testing on 50611-alpha-2026-10-08
Tested on:
Pixel 8, Android 16
Galaxy A36, Android 15

Requirement✅❓❌Notes
Go to the search screen and type in a query.✅Works as expected
Click the semantic search entry card to generate results✅Works as expected
Click on a semantic search result to go to an article.✅Works as expected
Click on the back button to get back to the semantic search results.✅Works as expected
Dismiss the semantic search results bottom sheet (tap the scrim or click "x" or drag it down)✅Works as expected
Clear the search field (backspace all the characters, or press the "x" in the search field.✅Works as expected
You should see the recent searches list populate with your original query.✅Works as expected
Click on your original query and you should be taken back to the search results screen with your query inside the semantic search entry card.✅Works as expected
Click on the back button near the search query textfield.✅Works as expected
You should see your semantic search article populate in the history list.✅Works as expected