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

Breakage report improvements #2168

Merged
merged 23 commits into from
Nov 23, 2023

Conversation

federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented Nov 16, 2023

Task/Issue URL: https://app.asana.com/0/1205842942115003/1205692741026215/f
Tech Design URL: https://app.asana.com/0/1205842942115003/1205917507991804/f

Description:
This PR introduces a new version of BSK (PR: duckduckgo/BrowserServicesKit#566) that allows iOS and macOS to share the same web implementation of the ReportBrokenSite page and introduce improvements to Pixels and the broken site report data.

Additional changes

Steps to test this PR:
Access Report broken site via privacy dashboard

  1. Open Privacy Dashboard
  2. Navigate to Report broken site via the website not working link on top of the page
  3. Try to toggle the protection state
  4. Try to submit a broken site report

Access Report broken site via menu

  1. Tap on the "Report Broken Site" menu item
  2. Try to toggle the protection state
  3. Try to submit a broken site report

Copy Testing:

No new copy to test

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE
  • iPhone 15

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

…ub.com/duckduckgo/iOS into fcappelli/breakage_report_improvements

# Conflicts:
#	DuckDuckGo/PrivacyDashboard/PrivacyDashboardViewController.swift
#	DuckDuckGo/ReportBrokenSiteView.swift
#	DuckDuckGo/ReportBrokenSiteViewController.swift
…port broken site popup window size is now adapted to the content
…pelli/breakage_report_improvements

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	DuckDuckGo/BrokenSiteInfo.swift
Copy link

github-actions bot commented Nov 16, 2023

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

Generated by 🚫 dangerJS against 31ea764

@federicocappelli federicocappelli added the dependencies Pull requests that update a dependency file label Nov 16, 2023
@federicocappelli federicocappelli changed the title Breakage report improvements Draft: Breakage report improvements Nov 20, 2023
@federicocappelli federicocappelli marked this pull request as draft November 20, 2023 10:04
@federicocappelli federicocappelli changed the title Draft: Breakage report improvements Breakage report improvements Nov 20, 2023
@federicocappelli federicocappelli requested review from bwaresiak and tomasstrba and removed request for bwaresiak November 20, 2023 11:51
…pelli/breakage_report_improvements

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Copy link
Member Author

Choose a reason for hiding this comment

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

file moved

Copy link
Member Author

Choose a reason for hiding this comment

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

ReportBrokenWebsite part removed from this storyboard

Copy link
Member Author

Choose a reason for hiding this comment

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

ReportBrokenWebsite segue removed and replaced with the PrivacyDashboardVC

@federicocappelli federicocappelli marked this pull request as ready for review November 20, 2023 15:18
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: All these new strings are coming from the VPN implementation, from some reasons they were not present. I paired with Bartek and this change is ok, it's just removing the right strings and adding the new ones

Copy link
Contributor

@tomasstrba tomasstrba left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

broken site reporting works ✔️
turning off protections work ✔️

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@federicocappelli federicocappelli merged commit e5d8fde into develop Nov 23, 2023
10 checks passed
@federicocappelli federicocappelli deleted the fcappelli/breakage_report_improvements branch November 23, 2023 10:45
@federicocappelli federicocappelli restored the fcappelli/breakage_report_improvements branch November 23, 2023 13:34
federicocappelli added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Nov 27, 2023
Task/Issue URL: https://app.asana.com/0/1205842942115003/1205692741026215/f
iOS PR: duckduckgo/iOS#2168
macOS PR: duckduckgo/macos-browser#1864
What kind of version bump will this require?: Major (Braking changes in privacy-dashboard)

**Description**:

The previous implementation of the `Report Broken Site` page was different between iOS and macOS, with this PR I have updated and aligned the PrivacyDashboardController so the web implementation of the `Report Broken Site` can be used in both iOS and macOS.
The changes are mostly around delegates and which User script is handled for each platform.
- Splitting the delegate into 3 new delegates: `PrivacyDashboardNavigationDelegate`, `PrivacyDashboardReportBrokenSiteDelegate`, `PrivacyDashboardControllerDelegate`
federicocappelli added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Dec 6, 2023
Task/Issue URL: https://app.asana.com/0/1205842942115003/1205692741026215/f
iOS PR: duckduckgo/iOS#2168
macOS PR: duckduckgo/macos-browser#1864
What kind of version bump will this require?: Major (Braking changes in privacy-dashboard)

Description:

The previous implementation of the Report Broken Site page was different between iOS and macOS, with this PR I have updated and aligned the PrivacyDashboardController so the web implementation of the Report Broken Site can be used in both iOS and macOS.
The changes are mostly around delegates and which User script is handled for each platform.

Splitting the delegate into 3 new delegates: PrivacyDashboardNavigationDelegate, PrivacyDashboardReportBrokenSiteDelegate, PrivacyDashboardControllerDelegate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file includes-BSK-changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants