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 impression pixels for duckplayer in landscape mode #3493

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

shakyShane
Copy link
Collaborator

@shakyShane shakyShane commented Oct 28, 2024

Task/Issue URL: https://app.asana.com/0/1201141132935289/1208637202774549/f
Tech Design URL:
CC:

Description:

the DuckPlayer frontend will start sending a generic 'telemetry' events soon - this PR adds support for the first one, but in a format that can be expanded later without needing new handlers.

Note

Please see https://deploy-preview-1164--content-scope-scripts.netlify.app/interfaces/duckplayer_messages.telemetryevent - there's only 1 event right now, but under attributes it gives us scope to expand if needed.

Steps to test this PR:

  1. Link BSK to CSS branch pr-releases/pr-1164
  2. Load DuckPlayer, rotate to landscape
  3. Observe 1 pixel is sent per page load (not multiple)

Note: This change is backwards compatible with the existing application

Definition of Done (Internal Only):

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
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

@shakyShane
Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @shakyShane and the rest of your teammates on Graphite Graphite

@shakyShane shakyShane marked this pull request as ready for review October 28, 2024 11:32
@afterxleep afterxleep self-requested a review October 29, 2024 23:10
Copy link
Collaborator

@afterxleep afterxleep left a comment

Choose a reason for hiding this comment

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

Tested, works as described. Tested with BSK branch daniel/update.duckplayer.host

10-30 at 00 17 @2x

@afterxleep
Copy link
Collaborator

@shakyShane it seems the tests are failing here because of some required updates to the Mocks. I'll update them and get this merged.

@afterxleep afterxleep merged commit 374492a into main Oct 30, 2024
13 checks passed
@afterxleep afterxleep deleted the shane/duckplayer-landscape-impressions branch October 30, 2024 17:34
samsymons added a commit that referenced this pull request Oct 30, 2024
* main:
  adding impression pixels for duckplayer in landscape mode (#3493)
  Update autoconsent to v10.17.0 (#3504)
  Onboarding Add to Dock Tutorial (#3482)
  Blind attempt to fix Omnibar-related crash (#3500)
  Add to Dock Localised strings (#3494)
  Add to Dock Onboarding feature flag (#3476)
  Remove HomePageViewController code (#3454)
samsymons added a commit that referenced this pull request Nov 4, 2024
# By Daniel Bernal (6) and others
# Via Daniel Bernal (3) and others
* main: (21 commits)
  Validate VPN errors before re-throwing them (#3513)
  Allowing users to delete suggestions on macOS (#3465)
  Update build number
  Update build number
  Bump rexml from 3.3.8 to 3.3.9 (#3495)
  Release 7.142.1-1 (#3525)
  Add a debouncer to NavBars animator (#3519)
  Release 7.143.0-1 (#3516)
  Update to subscription cookie (#3512)
  Bug Fix: Phishing Detection Dataset Discrepancies (#3469)
  Duckplayer New Tab + Refactor (#3491)
  Blind attempt to fix Omnibar-related crash (#3514)
  Fix VPN server info metadata (#3501)
  Set version_check_wait_retry_limit to 1 (#3511)
  BSK changes for macOS release note screen update (#3466)
  Onboarding Add to Dock Promo view (#3505)
  Update BSK with autofill 15.1.0 (#3507)
  Update tests to use new tagline (#3439)
  adding impression pixels for duckplayer in landscape mode (#3493)
  Update autoconsent to v10.17.0 (#3504)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
shakyShane added a commit to duckduckgo/Android that referenced this pull request Nov 4, 2024
Task/Issue URL: https://app.asana.com/0/0/1208637207606569/f

### Description

The DuckPlayer frontend will send an event when the landscape view is
shown, this PR adds a pixel for it.

- Fire `duckplayer_landscape_layout_impressions` when the FE sends a
telemetry event
(https://app.asana.com/0/69071770703008/1208686513106880/f)
- iOS PR: duckduckgo/iOS#3493

### Steps to test this PR

- ~install CSS at branch pr-releases/pr-1164~
- load DuckPlayer in landscape (or rotate)
- you should receive 1 event per page-load, and the pixel should fire.

### UI changes
| Before  | After |
| ------ | ----- |
!(Upload before screenshot)|(Upload after screenshot)|

---------

Co-authored-by: Shane Osbourne <sosbourne@duckduckgo.com>
Co-authored-by: Cris Barreiro <cbarreiro@duckduckgo.com>
aitorvs pushed a commit to duckduckgo/Android that referenced this pull request Nov 6, 2024
Task/Issue URL: https://app.asana.com/0/0/1208637207606569/f

### Description

The DuckPlayer frontend will send an event when the landscape view is
shown, this PR adds a pixel for it.

- Fire `duckplayer_landscape_layout_impressions` when the FE sends a
telemetry event
(https://app.asana.com/0/69071770703008/1208686513106880/f)
- iOS PR: duckduckgo/iOS#3493

### Steps to test this PR

- ~install CSS at branch pr-releases/pr-1164~
- load DuckPlayer in landscape (or rotate)
- you should receive 1 event per page-load, and the pixel should fire.

### UI changes
| Before  | After |
| ------ | ----- |
!(Upload before screenshot)|(Upload after screenshot)|

---------

Co-authored-by: Shane Osbourne <sosbourne@duckduckgo.com>
Co-authored-by: Cris Barreiro <cbarreiro@duckduckgo.com>
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.

3 participants