Page MenuHomePhabricator

Move recently searched
Closed, InvalidPublic3 Estimated Story Points

Description

Background

As part of the ongoing Navigation refresh, we are moving History into Search. To facilitate this, we need to move Recently searched, so that it only shows up after a user has clicked into search.

Requirements
  • On the search tab, Recently searched should display after clicking into search
  • Recently searched should no longer show on initial display of the search tab
  • Recently searched empty state should show if user has no recently searched history
  • Must function on both iPhone and iPad
  • Must function in Landscape mode
Eng Notes

Update: We have made initial progress on this with SwiftUI, please build off of branch feature/history-to-search. Old notes below.

Status bar transparent background already done on System Nav bar PR
Scroll down and scroll up behavior already done on System Nav bar PR (besides toolbar being sticky on iPad. That functionality is covered in T383839).

Changes will need to be made in SearchViewController.swift. Note this view controller is reused in these places:

Explore > search bar search,
Editor > Insert Link search
Editor > Edit Link search
Article > Magnifying glass button
Article > search bar search (in A/B test)
In-app web view. Magnifying glass button (Profile > User Page for example)

Extra care must be taken to ensure regressions don't happen in those areas.

It may be easiest if we just add a opaque overlay on top of the search terms, which then hides when the search bar is activated. The history data view could even serve as that overlay (T384510).

Alternatively (larger lift) we can re-build the recently search term list cells with SwiftUI, then embed the hosting controller into SearchResultsViewController as an overlay. SearchResultsController then decides whether to show the recently search terms overlay or its content (search results) based on the length of the search term.

Designs

https://www.figma.com/design/utNpL8yrjrDkDmlO9qS4T5/iOS-Navigation-(Robin)?node-id=679-745&p=f&t=rQE6Xkj6qUEMcqC7-0

Event Timeline

HNordeenWMF raised the priority of this task from Low to Medium.Feb 3 2025, 10:29 PM
GOlson-WMF set the point value for this task to 3.Feb 4 2025, 4:38 PM
Tsevener subscribed.

Note my first PR in T384510 has downstream effects on this one (it takes steps towards moving recently searched into SwiftUI), so I'm moving this to blocked until that is merged.