Skip to content

feat(privacy): add explicit consent and data controls for Sentry - #799

Open
Ugooweb wants to merge 1 commit into
Nanle-code:masterfrom
Ugooweb:feat/privacy-sentry
Open

feat(privacy): add explicit consent and data controls for Sentry#799
Ugooweb wants to merge 1 commit into
Nanle-code:masterfrom
Ugooweb:feat/privacy-sentry

Conversation

@Ugooweb

@Ugooweb Ugooweb commented Jul 29, 2026

Copy link
Copy Markdown

Closes #775

Adds explicit consent and data controls for Sentry initialization, including clear data retention policies.

Changes

  • Adds a 'Diagnostics & Privacy' section to the settings page with a toggle for diagnostic data collection and an explanation of the data-retention policy (30 days anonymized).
  • Updates Sentry initialization in src/utils/monitoring.ts to check for explicit consent. If no consent is given, Sentry initialization is safely skipped.
  • Exposes a revokeSentryConsent function that cleanly shuts down the Sentry client when a user revokes consent.
  • Updates src/utils/preferences.js to manage the diagnosticsConsent status by defaulting it to false (no consent).
  • Adds src/utils/__tests__/monitoring.consent.test.ts to cover Sentry initialization behaviors (initialization with consent, initialization without consent, and revocation).

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Ugooweb is attempting to deploy a commit to the nanle-code's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Ugooweb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[2026 Privacy] Add explicit consent and data controls for Sentry

1 participant