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

Ensure toast closures are called on the main thread #3347

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

SlayterDev
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/1164476816987988/1208244627536574/f
Tech Design URL:
CC: @jaceklyp @samsymons

Description:

Steps to test this PR:

  1. Refresh a webpage twice quickly
  2. If the toast doesn't show reinstall the app or explicitly set lastToastShownDate to .distantPast in BrokenSitePromptLimiter.swift. Optionally comment line 95 in that file to have the toast shown every time
  3. Ensure both buttons on the toast prompt work correctly

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

@samsymons samsymons self-requested a review September 12, 2024 18:26
@SlayterDev SlayterDev merged commit 1b4e29a into main Sep 12, 2024
16 checks passed
@SlayterDev SlayterDev deleted the brad/toast-main-thread branch September 12, 2024 21:01
samsymons added a commit that referenced this pull request Sep 13, 2024
* main:
  Ensure toast closures are called on the main thread (#3347)
  Update survey builder OS version (#3348)
  BSK - Add feature flag for SKAN API (#3356)
  Remove checking for negative attribution case  (#3355)
  C.S.S Bump (Via BSK) (#3346)
  Update Onboarding gradients (#3350)
  Alessandro/onboarding copy and private search options (#3349)
  Onboarding Intro - Add choose address bar position (#3340)
samsymons added a commit that referenced this pull request Sep 13, 2024
# By Alessandro Boron (7) and others
# Via Bartek Waresiak (1) and others
* main: (31 commits)
  Add Marketplace Postback handling (#3357)
  SKAD4 crash fix (#3361)
  Enroll all internal users in experiment && Update BSK (#3359)
  update for macOS: visited links (#3353)
  Ensure toast closures are called on the main thread (#3347)
  Update survey builder OS version (#3348)
  BSK - Add feature flag for SKAN API (#3356)
  Remove checking for negative attribution case  (#3355)
  C.S.S Bump (Via BSK) (#3346)
  Update Onboarding gradients (#3350)
  Alessandro/onboarding copy and private search options (#3349)
  Onboarding Intro - Add choose address bar position (#3340)
  Fix PrivacyDashboard appearance on entering foreground (#3345)
  Improve Data Store ID managing (#3335)
  Alessandro/onboarding choose app icon (#3330)
  Fix Localizable strings (#3341)
  Move lazy var access to the MainActor (#3333)
  Release 7.137.0-2 (#3344)
  Fix privacy icon glitch (#3343)
  BSK bump for macOS password import promotion flow (#3332)
  ...

# 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