firefox-ios icon indicating copy to clipboard operation
firefox-ios copied to clipboard

Add FXIOS-8029 [v124] Firefox Suggest settings

Open PARAIPAN9 opened this issue 1 year ago • 2 comments

:scroll: Tickets

Jira ticket Github issue

:bulb: Description

This PR contains the implementation of the logic and behavior of Search Engine Suggestions & Firefox Suggestions (Sponsored / Not Sponsored) in Private & Normal Browsing.

These are the suggestions types that we care in this PR and based on the toggle switches in the Search Settings these should appear, or not:

Search Engine Suggestions Firefox Non Sponsored Suggestions Firefox Sponsored Suggestions
SearchEngineSearch FirefoxNonSponsoredSearch SponsoredSearch
  • Other suggestions that will also appear on the screen when Show Search Suggestions switch is on, include : History, Tabs etc. suggestions, but they are taken into consideration as individual options for future implementation.

:pencil: Checklist

You have to check all boxes before merging

  • [x] Filled in the above information (tickets numbers and description of your work)
  • [x] Updated the PR name to follow our PR naming guidelines
  • [x] Wrote unit tests and/or ensured the tests suite is passing
  • [ ] When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • [x] If needed I updated documentation / comments for complex code and public methods

PARAIPAN9 avatar Feb 15 '24 16:02 PARAIPAN9

This pull request has conflicts when rebasing. Could you fix it @PARAIPAN9? 🙏

mergify[bot] avatar Feb 15 '24 18:02 mergify[bot]

Messages
:book: Project coverage: 33.45%
:book: Edited 7 files
:book: Created 0 files

Client.app: Coverage: 32.22

File Coverage
BrowserViewController.swift 21.19% ⚠️
SearchEngines.swift 92.59%
SearchViewController.swift 29.87% ⚠️
SearchSettingsTableViewController.swift 2.0% ⚠️

ShareTo.appex: Coverage: 33.34

File Coverage
SearchEngines.swift 92.59%

Generated by :no_entry_sign: Danger Swift against 1dfa19779edae0fbc047ede7d67380f94d1fa321

mobiletest-ci-bot avatar Feb 16 '24 11:02 mobiletest-ci-bot

@Mergifyio backport release/v124

adudenamedruby avatar Feb 21 '24 14:02 adudenamedruby

backport release/v124

✅ Backports have been created

mergify[bot] avatar Feb 21 '24 14:02 mergify[bot]

Screenshot 2024-02-21 at 9 41 40 AM

These seem related to your code changes.

adudenamedruby avatar Feb 21 '24 14:02 adudenamedruby

I'm investigating it.

PARAIPAN9 avatar Feb 21 '24 14:02 PARAIPAN9

Hi @PARAIPAN9! I'm so sorry I didn't see your PR go by, but we actually don't want to show sponsored or non-sponsored Firefox Suggest suggestions in private browsing—even if the user turned on "Show in Private Sessions".

This was an intentional product decision on Desktop, and we did the same on Android—and in iOS previously in #18403. It looks like the user story is, "I am in private browsing mode and do not want to feel tracked"—even though we match the user's query on-device, it can still feel like they're being tracked, so that's why we don't show them.

linabutler avatar Feb 27 '24 19:02 linabutler

Hi @linabutler, for me is not a problem, I can change it back to the previous behavior. I followed the specs in https://mozilla-hub.atlassian.net/browse/FXIOS-8029 and in the Figma design: https://www.figma.com/file/Ha2T4I0nX0h7B95GYxH6wV/Simplified-UI-for-Private-Mode?type=design&node-id=3333-22585&mode=design&t=VZVdvJMixQFEwQtp-0. Let's see what @afurlan-firefox has to say.

PARAIPAN9 avatar Feb 28 '24 10:02 PARAIPAN9

By default, the switch for Show in Private Browsing for non sponsored/sponsored is set to false, so it is up to the user if wants to see these type of suggestions or not.

PARAIPAN9 avatar Feb 28 '24 12:02 PARAIPAN9

@linabutler I have discussed this with josh and the team before, but maybe we missed this one. Just to confirm what you are proposing.

It will be off by default, but when we turn it on, we won't show sponsored and non sponsored. We will only show suggestions for Browsing history, Bookmarks and Synced Tabs. Do you agree?

afurlan-firefox avatar Feb 28 '24 16:02 afurlan-firefox

We decided to respect the parity with Desktop and Android. All suggestions will be off by default, but when we turn it on, we won't show sponsored and non sponsored. We will only show suggestions for Browsing history, Bookmarks and Synced Tabs.

afurlan-firefox avatar Feb 29 '24 16:02 afurlan-firefox