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

Add simplified ("toggle") broken site reporting #5280

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

laghee
Copy link
Collaborator

@laghee laghee commented Nov 15, 2024

Task/Issue URL: https://app.asana.com/0/1201870266890790/1208769785329643/f

Description

We're implementing the simplified broken site reporting flow that already exists on other platforms here, prompting users to report site breakage on URLs where they toggle off protections.

Steps to test this PR

Toggle Reports

  • Set up your local environment by checking out the privacy-dashboard branch and editing app/build.gradle to point to its location (replacing this bit).
  • Navigate to any non-DuckDuckGo site and tap the privacy shield, then toggle off protections
    • Confirm that you're shown the report prompting screen
    • Click on "See what's sent" and confirm the data details expand into view
    • Tap "Send report" and confirm that the m_protection-toggled-off-breakage-report pixel is sent with reportFlow=on_protections_off_dashboard_main
  • Re-enable protections
  • Tap the 3-dot menu and then "Disable privacy protection"
    • Confirm that you're again shown the prompt screen
    • Tap "Send report" and confirm that the above pixel is sent with reportFlow=on_protections_off_menu
  • Re-enable protections
  • Toggle off protections again from either entry point and confirm that you are again show the prompt
    • Tap "Don't send"
    • Confirm that you are no longer shown the prompt from either toggle-off point (block should last 48 hours, but that value can be overridden by the remote privacy config -- there is an existing JSONblob with both intervals set to 2 minutes if you'd like to test more exhaustively, as I did)

@laghee laghee requested a review from lmac012 November 15, 2024 15:52
private val toggleReportsDataStore: ToggleReportsDataStore,
@AppCoroutineScope private val coroutineScope: CoroutineScope,
private val dispatcherProvider: DispatcherProvider,
) : FeatureSettings.Store {
Copy link
Contributor

Choose a reason for hiding this comment

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

This API has been recently deprecated. You can now access feature settings using Toggle::getSettings() - can you migrate to the new API? I'm assuming this shouldn't require much effort, but If I'm wrong then it's fine to leave it as is.

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