chore: WPB-26190 Add cookie consent banner - #42
Draft
MarianKijewski wants to merge 6 commits into
Draft
Conversation
`npm i vanilla-cookieconsent@3.1.0`
Configuration generated using playground: https://playground.cookieconsent.orestbida.com/
This is done in order to have access to ColorModeProvider, which allows to use `useColorMode` method. All of that just to have cookie banner in same color mode.
Required in order to stay compliant.
The styling is added to preserve newlines in description.
MarianKijewski
commented
Jul 9, 2026
| acceptAllBtn: "Accept", | ||
| acceptNecessaryBtn: "Decline", | ||
| showPreferencesBtn: "Cookie settings", | ||
| footer: "<a href=\"#link\">Privacy Policy</a>" |
Contributor
Author
There was a problem hiding this comment.
To be updated when Privacy Policy page is there
This is needed because the button to show cookie preferences needs to work on every page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
No way to ask documentation readers for permission to track and analyze their site usage.
Solutions
Introduce cookie consent banner using this plugin: https://github.com/orestbida/cookieconsent, the additional Docusaurus logic:
Needs releases with:
Testing
How to Test
npm iandnpm start, the page will open automatically.Notes
This PR doesn't introduce tracking yet. It only asks for consent to do so.
Attachments
Light mode:

Dark mode:

Cookie settings:

References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.