Fenix: Use search suggestions without searching

Created on 3 Feb 2020  Ā·  18Comments  Ā·  Source: mozilla-mobile/fenix

Why/User Benefit/User Problem

When i do a search, searh suggestions are great but sometime i want to add other term to it

What/Requirements

Be able to copy/paste the search suggestions into the searchbar without loading it.
Screenshot_20200203-101742_Firefox_Nightly

Acceptance Criteria (how do I know when I’m done?)

I can click on a visible button to put the search suggestions into the searchbar and continue to add word to it

Search engverified ready

Most helpful comment

All 18 comments

Could also use long press.

It is not as easy to know the feature exist, but yep

I went ahead and created an issue in the android-components repo since the functionality actually lives there: https://github.com/mozilla-mobile/android-components/issues/6813

There was some UX feedback on Focus for this request that's worth referencing here: https://github.com/mozilla-mobile/focus-android/issues/3646

Assigning to @brampitoyo

@Octoton your idea makes a lot of sense!

Let’s add a prefill arrow (ā†–ļøŽ) icon to the side of each search suggestion, that can be used to append keywords.

Note: prefill arrow shouldn’t show up on the first search suggestion that tracks with the user’s typing. It’s not useful there. All other search suggestions, which come from the search provider’s server, should have this action.

Asset: https://share.getcloudapp.com/z8u87yKE

@brampitoyo Could you possibly take a look at my PR https://github.com/mozilla-mobile/android-components/pull/6824?

@cypressious Feedback added. Thanks!

@brampitoyo are we fine with the copy for the accessibility?

@jonalmeida @cypressious Sorry. I didn’t know that there’s copy involved in this issue.

It would be fine to follow the same copy that Fennec or Firefox for iOS uses for this icon.

@brampitoyo
I don't think Fennec has that functionality. I don't have an iPhone to test Firefox for iOS

@jonalmeida @cypressious For accessibility/screen reader/TalkBack purpose, the label for this button should be Refine.

@jonalmeida @cypressious I’d like to add a small correction to PR https://github.com/mozilla-mobile/android-components/pull/6824

The first search suggestion is meant to track with the user’s keyboard and typing speed, so it shouldn’t have the Refine (ā†–ļøŽ) action. All other search suggestions, which come from the search provider’s server, should have this action.

The first search suggestion is meant to track with the user’s keyboard and typing speed, so it shouldn’t have the Refine (ā†–ļøŽ) action.

This makes sense but is hard to implement because we currently don't distinguish the first entry from the rest of the suggestions.

This might be easier to solve depending on the solution we go with on https://github.com/mozilla-mobile/fenix/issues/7877.

As mentioned by @ShatteredPixel in https://github.com/mozilla-mobile/fenix/issues/12050#issuecomment-660557463, we should remember to pop the keyboard back up after the user has tapped the Refine (ā†–ļøŽ) action – just in case the page was scrolled down and the keyboard was minimised.

@brampitoyo I've implemented the suggestion in the PR https://github.com/mozilla-mobile/android-components/pull/6824

Verified as fixed on Nightly 8/12 with the following devices:

  • Samsung Galaxy Note 10 (Android 10)
  • Google Pixel 3 (Android 11)
  • Huawei MediaPad M2 (Android 5.1.1)

@jonalmeida Filled issue #13520 for the prefill arrow that is displayed for the first suggestion.

Was this page helpful?
0 / 5 - 0 ratings