-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: add GDPR-compliant cookie consent banner #8022
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
Conversation
- Created shared @roo-code/cookie-consent package with react-cookie-consent - Implemented CookieConsent component with proper styling (white bg, inverted in dark mode) - Integrated cookie consent into web-roo-code layout - Created basic Next.js app structure for web-docs - Integrated cookie consent into web-docs layout - Used shared component approach for consistency and maintainability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing my own code because apparently I trust no one, not even myself.
|
@roomote-agent there's a lot of PR feedback for you to address here. |
|
Thanks for the feedback @brunobergher! I see the review comments and I'm on it. Here's what I'll be addressing:
I'll have these changes ready shortly! |
- Remove shared package approach, duplicate component in each app - Replace DOM manipulation with next-themes useTheme hook for dark mode - Replace all inline styles with Tailwind utility classes - Add proper ARIA attributes for accessibility - Remove unused js-cookie dependency - Align ESLint version to v9 across all apps Addresses all review comments from @brunobergher
|
🚀 Preview deployed! Your changes have been deployed to Vercel: This preview will be updated automatically when you push new commits to this PR. |
|
Hey @brunobergher! All requested changes have been implemented and pushed ✅ Changes Made:
CI Status:Most checks are passing. The Windows unit test failure appears to be a pre-existing issue unrelated to these changes (all other platform tests pass). The cookie consent implementation is now cleaner, more maintainable, and follows best practices for SSR/hydration. Ready for your review! |
apps/web-docs/.eslintrc.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably remove this apps/web-docs folder and everything in it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR adds GDPR-compliant cookie banner to web-roo-code, ensuring cookie-driven analytics scripts are added only after consent.
Changes
Screenshots
Important
Adds GDPR-compliant cookie consent banner and updates analytics providers to respect user consent.
CookieConsentWrappercomponent inCookieConsentWrapper.tsxfor GDPR-compliant cookie consent.CookieConsentWrapperintolayout.tsxto display consent banner.GoogleAnalyticsProviderandPostHogProviderto load analytics only after consent.consent-manager.tsto handle consent events.CONSENT_COOKIE_NAMEandCOOKIE_CONSENT_EVENTSincookie-consent.ts.react-cookie-consentandtldtstopackage.json.This description was created by
for 9fc5f6c. You can customize this summary. It will automatically update as commits are pushed.