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

Widget Education #1040

Merged
merged 28 commits into from
Feb 7, 2022
Merged

Widget Education #1040

merged 28 commits into from
Feb 7, 2022

Conversation

jaceklyp
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/72649045549333/1200189110180410/f

Description:
Introduce a new Home screen message that informs users on how to install the app widget within iOS system.

Steps to test this PR:

  1. Make sure you run at least iOS 14.0.
  2. Since the feature is part of the experiment make sure to comment out the variantManager code in HomeMessageStorage and in Settings.
  3. You should be able to see the home message on the Home screen.
  4. Once entered you can see the modal with instructions on how to add the app widget.
  5. Same screen can be seen from the Settings under the "Add Widget to Home Screen" cell.
  6. Once dismissed it should never appear again.

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPad

OS Testing:

  • iOS 13 (the feature shouldn't be visible there)
  • iOS 14
  • iOS 15

Theme Testing:

  • Light theme
  • Dark theme

@jaceklyp jaceklyp changed the title Feature/jacek/widgets education Widget Education Jan 26, 2022
@brindy brindy self-assigned this Jan 26, 2022
Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

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

Test on a couple of different simulators, including iPad, and with double length text enabled.

A few minor comments, but generally LGTM! Nice work.

Feel free to merge once you fix them and get a thumbs up on your product review.

Core/VariantManager.swift Outdated Show resolved Hide resolved
DuckDuckGo/HomeMessageView.swift Outdated Show resolved Hide resolved
DuckDuckGo/HomeMessageView.swift Outdated Show resolved Hide resolved
DuckDuckGo/HomeMessageView.swift Show resolved Hide resolved
DuckDuckGo/HomeMessageViewModel.swift Show resolved Hide resolved
DuckDuckGo/WidgetEducationView.swift Show resolved Hide resolved
@brindy brindy assigned jaceklyp and unassigned brindy Feb 3, 2022
@jaceklyp jaceklyp merged commit 8c90f83 into develop Feb 7, 2022
@jaceklyp jaceklyp deleted the feature/jacek/widgets-education branch February 7, 2022 16:55
samsymons added a commit that referenced this pull request Feb 8, 2022
* develop:
  Fix dax dialog presentation  (#1035)
  Widget Education (#1040)
  Set version to 7.65.8
  Set the HomeCollectionView backgroundColor according to theme (#1047)
jaceklyp added a commit that referenced this pull request Feb 11, 2022
* Introduce AddWidgetView screen

* Add new copy

* Add Home Message Cell to the Home screen

* Rename AddWidget to WidgetEducation

* Fix theme issue affecting navigation bars and other system components when it is manually overriden in the app

updateUserInterfaceStyle method was being called in willEnterForeground which is not called after cold start

* Remove unused copies

* Open WidgetEducation in modal with navigation bar

* Add pixels

* Make HomeMessageView compliant with iOS 14

* Remove unused code and empty lines

* Remove unsued code around the old home message

* Remove todos, empty lines and warnings

* Turn literal into const

* Add widget education as variant to the manager

* Drop the suffix for WidgetEducationHomeMessageViewModel

* Pass the VariantManager to the Storage and change the logic when to display widgetEducation

* Fix issue for image not showing on WidgetEducationView

* Fix issue with image alignment

* Do not show WidgetEducation feature in settings if it shouldn't be shown

* Do not show widget education if app has been open from widget

* Design adjustments

* Import translations

* Fix tests

* Use lets instead of vars

* Stop allocating weight for voice search

* Make the action closure the last thing so it can benefit from closure style when constructing

Co-authored-by: Jacek Łyp <jlyp@duckduckgo.com>
samsymons added a commit that referenced this pull request Feb 28, 2022
# By Jacek Łyp (4) and others
# Via Chris Brind (2) and others
* develop: (22 commits)
  Revert "Fix omnibar subscribing to notifications multiple times"
  Fix omnibar subscribing to notifications multiple times
  Update build number
  Move bookmark folders plural to stringsdict (#1059)
  Explicitly hide suggestions tray if we do not show tray for favorites (#1053)
  Update BSK (#1071)
  Revert setting HomeCollectionView backgroundColor (#1070)
  Content blocking rules caching (#1068)
  Improvements to loc import script (#1060)
  Use config for autofill (#1064)
  Allow SwiftLint installed by mint (#1056)
  bump version
  new tds url (#1062)
  Remove URL stripping experiment (#1050)
  Persist Auto Clear settings when they change (#1055)
  Set version to 7.65.9
  Update translations (#1052)
  Integration of BSK Content Blocking stack (#1042)
  Fix dax dialog presentation  (#1035)
  Widget Education (#1040)
  ...

# Conflicts:
#	DuckDuckGo/Base.lproj/Settings.storyboard
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