focus-android icon indicating copy to clipboard operation
focus-android copied to clipboard

[meta] Ability to add search engines and or remove existing search engines

Open bbinto opened this issue 9 years ago • 23 comments

MVP

  • [x] #1484 Update search engines to use radio buttons
  • [x] #1556 String update
  • [x] #1560 Fix UI Tests
  • [x] #1617 Add screen for manual creation of search engines (behind feature flag)
  • [x] #1660 Persist search engines (behind feature flag)
  • [x] #1671 Simplify Settings screens with enums
  • [x] #1644 Allow removing of search engines (behind feature flag)
  • [x] #1618 Engine radio buttons style polish
  • [x] #1689 Search engine polish, Screenshots UITest [seeing UI Test failures, will land on return]
  • [x] #1645 Pref on for 3.0
  • [x] #1647 search engine ordering
  • [x] #1691 sub text in edit screen
  • [x] #1705 change example text
  • [ ] #1828 Add SUMO page for search engine
  • [x] #1755 [ux] review
  • [x] #1755 UX implementation feedback
  • [x] #1856 Add telemetry

(#1498 reference to closed breakdown)


I have difficulties finding a way to change my default search engine


Mocks flow - add search engine manually flow - remove restore search engine

visual design

bbinto avatar Jul 17 '17 14:07 bbinto

See also #831 and #808

pocmo avatar Jul 17 '17 14:07 pocmo

Talked to legal, this should be fine to do

bbinto avatar Jul 19 '17 16:07 bbinto

More feature requests:

  • https://play.google.com/store/apps/details?id=org.mozilla.klar&reviewId=Z3A6QU9xcFRPRjN3Q1VKcWlhQmphQWQ1R2NnSVdRNVVxWVpqdUZHVVVtTUJuNi1HMWQ1Mk9KUTNKZ2ZsMzBKLTdzYTE2UXM0bjM0cVAta2kyOHNtOUxIb3ow
  • https://play.google.com/store/apps/details?id=org.mozilla.klar&reviewId=Z3A6QU9xcFRPRWNRaXh6cTFpcWhFeWt4aWhSU1p2RDRKYV94RUhxZlJzbXBMVlNjWkYzeUpIZm5VV3hMcHFHRkNZQmJDcEQ4UEFOZzBVeFdVRUVVUVQzT0pr
  • https://play.google.com/store/apps/details?id=org.mozilla.focus&reviewId=Z3A6QU9xcFRPRW9sc3RCalRQeUVvdW1OSE90SVpLOEZFVlN0ZXV5eUdEZjREM1pzTm1UR01KR3BLSU9yUnZMUzdqbnhnUU91VzhxbzFvbUE5M28xdFNrVzJr

bbinto avatar Aug 28 '17 13:08 bbinto

@bbinto I'm going to move this to Granite* since Folly is a non-UX release and already has "What's New?"

Let me know if you disagree! happy to discuss more when you're back

Also, the same feature is slated for Granite* for iOS! so that would be kind of nice to match :)

antlam avatar Sep 14 '17 18:09 antlam

As discussed, revamping Settings will require significant level of UX/content effort. Recommendation to move to Indigo. Also impacts #1054.

BrianNJones avatar Oct 05 '17 19:10 BrianNJones

@BrianNJones commented on the wrong bug...?

We can get this search effort in and are in progress on the designs. As discussed with @Sdaswani, we'll be able to finalized strings in by end of day Tuesday to pass of to Eng for export.

lime124 avatar Oct 05 '17 21:10 lime124

Hopefully some helpful input:

On Fennec there are two ways how the user can add a search engine:

  • Long-pressing an input field and selecting "Add search engine". The big advantage is that this works for a variety of sites. Can be confusing for fields that are not actually a search field and sometimes this might not work well. We'd have to investigate if we can implement this with WebView
  • The second option is to use the menu: page -> add search engine. This works for all websites that define in their metadata that they are a search and how to perform a search. The nice thing is that we get everything from the provider (name, URL, etc.) and therefore it's always working. This mechanism even supports more features like search suggestions (but we are not using this in Focus). Of course this does not work with every page. But every major search engine does support it.

Constraints:

  • The user has different search engines depending on his language.
  • The user can switch the language and this changes the search engines that are available.

pocmo avatar Oct 06 '17 15:10 pocmo

Oh, and there's a third option in Fennec. You can add them via AMO, e.g.: https://addons.mozilla.org/en-US/android/addon/metager-metasuche/

pocmo avatar Oct 06 '17 15:10 pocmo

Searchengine-add.zip

Icons!

antlam avatar Oct 12 '17 19:10 antlam

Landed strings in #1453.

liuche avatar Oct 12 '17 20:10 liuche

For reference, since we use AppCompatActivity, nested PreferenceScreen will lack the ActionBar/Toolbar because the SupportActionBar and tho ActionBar conflict (ref). We also don't use PreferenceFragmentCompat probably because it came out in r23, though it's something we can look into at some point (but it also sounds like it's got some bugs).

Adding a comment in-code too, to be clearer why we can't just use nested PreferenceScreen.

liuche avatar Oct 13 '17 01:10 liuche

We also don't use PreferenceFragmentCompat probably because it came out in r23, though it's something we can look into at some point (but it also sounds like it's got some bugs).

At some point I tried to migrate to the PreferenceFragment from the support library. I wanted to get rid of the additional activity and look into whether we can just have the preferences as another fragment that gets added to our MainActivity. This turned out to be more complicated than I thought. The APIs were partially different and our custom preferences didn't work either and were hard to port. In the end I stopped and moved on.

pocmo avatar Oct 13 '17 08:10 pocmo

WIP progress here: https://github.com/liuche/focus-android/tree/searchengine

I think that I've got the complicated parts out of the way (understanding how our Settings Fragments work, adding new screens, showing search engines as radio buttons), and to finish the very minimum of "add a search engine", I just need to add the "Manually Add Search Engine" (which is probably a Small-Medium).

Beyond that, this will still take more work to add the other screens: tutorial, as well as some exploration regarding the "automatically add a search engine", and removing/restoring default search engines.

I would say "automatically extract and add the right search engine information" is a Large, the Tutorial is a Small-Medium (but depends on which approach we take for "automatically add"), and removing/restoring default search engines is a Medium.

@bbinto, what are your thoughts on shipping only "Manually add search engines" with this release? (It has some minimal explanation in the UI, but depending on what the user types in, could also fail with incorrect formatted input.)

Or do we need to also include 1) automatically adding the right search engine urls and name if a user chooses to add a search engine from a website (rather than manually typing in the search engine query url), 2) tutorial, and 3) remove/restore (default) search engines?

liuche avatar Oct 17 '17 08:10 liuche

I think given the new schedule, this doesn't need to be split up into two releases. Put it behind a feature flag and land what you have now?

Sdaswani avatar Oct 19 '17 22:10 Sdaswani

To me it's not ideal to just have "manually add search engine" in the next release. However, if we decide to go with that, we need to offer a way to remove the entry for sure in case the user typed in the wrong URL, or at least a way to change an invalid search engine entry.

bbinto avatar Oct 25 '17 13:10 bbinto

flow - add search engine manually flow - remove restore search engine

lime124 avatar Oct 25 '17 22:10 lime124

Made this simpler for this first version and created a ticket to iterate on it. https://github.com/mozilla-mobile/focus-android/issues/1561

lime124 avatar Oct 25 '17 22:10 lime124

Hey @TPS - if I understand your proposal correctly, you are suggesting we list installed search engines on the homescreen (see image)? Can you summarize the problem this proposal solves? Thanks!

homescreen - keyboard - toast

lime124 avatar Nov 08 '17 17:11 lime124

Thanks for the follow up @TPS. Could you open up a new ticket for us to track that idea? Thanks!

lime124 avatar Nov 09 '17 19:11 lime124

@lime124 I've opened #1692, per your encouragement & suggestion. I'd like to delete my end of the discussion here (now duplicated there) to cleanup this meta-issue. Any objections?

TPS avatar Nov 10 '17 04:11 TPS