Skip to content

Conversation

@ermenm
Copy link
Contributor

@ermenm ermenm commented Dec 4, 2025

This is a demo implementation, therefore localStorage has been used to set "cookies"/"preferences".

To view the cookie banner in action on a page, visit this link:
Mijn omgeving

To clear your cookies, clear your localStorage in your browser.

  • Fix Playwright test performance

@ermenm ermenm requested a review from a team as a code owner December 4, 2025 13:55
@vercel
Copy link

vercel bot commented Dec 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
clippy-storybook Ready Ready Preview, Comment Dec 16, 2025 1:59pm
theme-wizard Ready Ready Preview, Comment Dec 16, 2025 1:59pm
theme-wizard-server Ready Ready Preview, Comment Dec 16, 2025 1:59pm

@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.27%. Comparing base (c454e47) to head (0479279).
⚠️ Report is 107 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #245      +/-   ##
===========================================
- Coverage   100.00%   94.27%   -5.73%     
===========================================
  Files           12       43      +31     
  Lines          694     1188     +494     
  Branches       100      244     +144     
===========================================
+ Hits           694     1120     +426     
- Misses           0       61      +61     
- Partials         0        7       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

// Load saved preferences from localStorage and set radio buttons accordingly
// This works with preferences saved from the cookie banner or from a previous visit to this page
try {
const saved = globalThis.localStorage?.getItem(STORAGE_KEY);
Copy link
Contributor

Choose a reason for hiding this comment

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

Zit er nog een maximumtijd aan hoe lang we cookies mogen bewaren? Moet daarover ook iets vermeld worden?

Copy link
Contributor

Choose a reason for hiding this comment

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

Vergelijkbaar: nu kun je consent alleen setten met JS, ik las verderop iets over prgressive enhancement. Moet er mss een aanbeveling sijn om dit met forms + server-side cookies te doen zodat ook server-side de consent preferences kunnen worden uitgelezen?

@ermenm ermenm force-pushed the feature/cookie-consent branch from 2e4b12e to 881ff05 Compare December 11, 2025 09:51
@ermenm ermenm force-pushed the feature/cookie-consent branch from 881ff05 to 50d51be Compare December 11, 2025 11:21
@ermenm ermenm force-pushed the feature/cookie-consent branch from d2b4ab8 to 0479279 Compare December 16, 2025 13:58
@sonarqubecloud
Copy link

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.

4 participants