Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding to the Dock automatically #2722

Merged
merged 31 commits into from
May 21, 2024
Merged

Adding to the Dock automatically #2722

merged 31 commits into from
May 21, 2024

Conversation

tomasstrba
Copy link
Contributor

@tomasstrba tomasstrba commented Apr 30, 2024

Task/Issue URL: https://app.asana.com/0/72649045549333/1206797051025460/f
Tech Design URL:
CC:

Description:
Adding to the Dock automatically during the onboarding and through the new tab page card.

Steps to test this PR:
Preconditions
Set Safari as default browser and make sure it is part of the Dock
Make sure the DEBUG version of the application (blue icon) is not in your Dock
Run the app and turn on pixel logging messages (Debug -> Logging -> Pixel)

Test adding to the Dock during Onboarding

  1. Visit about:welcome
  2. Skip onboarding steps until the page asks you to add to the Dock
  3. Add to the Dock
  4. Verify the blue icon is next to Safari
  5. Make sure m_mac_user_added_to_dock_during_onboarding was fired

Test adding to the Dock from New Tab Page

  1. Quit the application
  2. Remove blue icon from the Dock
  3. Set some other browser as default browser
  4. Run the app and see the new tab page
  5. Add to the Dock from new tab page card
  6. Verify the blue icon is next to the default browser
  7. Make sure m_mac_user_added_to_dock_from_new_tab_page_card was fired
  8. Restart the app and verify the new tab page card is not presented

Test adding to the Dock from Settings

  1. Quit the application
  2. Remove blue icon from the Dock
  3. Run the app
  4. Open Settings
  5. Go to Default Browser and Set the application as default
  6. Go to General and click on "Add to Dock..."
  7. Verify the blue icon is part of the Dock
  8. Make sure it is positioned next to the browser in this order of preference: Chrome, Firefox, Edge, Brave, Opera, Arc, Safari. Depends on your current state of the Dock.

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Copy link
Contributor

github-actions bot commented May 2, 2024

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against 7d8f43e

@tomasstrba tomasstrba requested a review from SabrinaTardio May 2, 2024 12:27
@tomasstrba tomasstrba force-pushed the tom/add-to-the-dock branch from b82fc44 to 8a129d4 Compare May 2, 2024 14:24
@tomasstrba tomasstrba force-pushed the tom/add-to-the-dock branch from 8a129d4 to 123952e Compare May 3, 2024 05:12
Copy link
Collaborator

@SabrinaTardio SabrinaTardio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good overall and works great.
I have left a few comments.

DuckDuckGo/Common/Localizables/UserText.swift Outdated Show resolved Hide resolved
DuckDuckGo/Localizable.xcstrings Outdated Show resolved Hide resolved
@tomasstrba
Copy link
Contributor Author

@SabrinaTardio , thanks for the review. I've adjusted the code based on your suggestions. It's ready for another review

Copy link
Collaborator

@SabrinaTardio SabrinaTardio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label May 15, 2024
@tomasstrba tomasstrba removed the stale label May 15, 2024
@tomasstrba tomasstrba merged commit 5f20c6c into main May 21, 2024
19 checks passed
@tomasstrba tomasstrba deleted the tom/add-to-the-dock branch May 21, 2024 08:54
samsymons added a commit that referenced this pull request May 24, 2024
# By Elle Sullivan (8) and others
# Via Elle Sullivan (3) and GitHub (2)
* main: (26 commits)
  Autofill engagement KPIs for pixel reporting (#2806)
  autofill: don't prefix autofill email pixels with `m.mac.` (#2808)
  Bump BSK (#2807)
  Make profile selector optional (#2811)
  Add History to iOS (updated UI and rollout) (#2770)
  New autofill save & update password prompt pixels for alignment with iOS (#2801)
  Add mylife data broker (#2786)
  Increase test timeout (#2810)
  Subscription refactoring, BSK update (#2809)
  Check for entitlement in DBP agent (#2802)
  move permanent survey card to first position (#2804)
  Subscription refactoring (#2764)
  Bump version to 1.89.0 (191)
  Merge pir stabilization feature branch into main (#2789)
  Update age params for multiple brokers (#2800)
  Fix top level navigation blocks (#2792)
  Adding to the Dock automatically (#2722)
  Fix lint error
  Make activity only call completion once all work has actually finished
  Fix activity scheduler not calling completion
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants