-
Notifications
You must be signed in to change notification settings - Fork 80
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
Support disabling Notice Toggles with override option #5872
Support disabling Notice Toggles with override option #5872
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
e434570
to
2413523
Compare
2413523
to
e2a349c
Compare
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.
Great work here! I've tested this and it's working great, except for one issue I found in TCF where for a custom notice it looks like the Save All buttons are being applied to the disable toggle as well. When testing non-tcf I see that even if I click the save all buttons the original disabled toggle value is preserved. Loom: https://www.loom.com/share/a09de36f60cb4b0f895093bb2a7ca2e1
ff3a533
to
401226d
Compare
401226d
to
0a75949
Compare
@lucanovera I've done quite a bit of refactor on this now and feel much more confident about the solution. Would you mind reviewing again now? |
49e41c0
to
c20558b
Compare
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.
Great work! I just re-tested all the use cases and didn't found any issues. The code changes looked good. Just left you a comment about a eslint disable that I think you can remove. Approved!
Add parseFidesDisabledNotices utility to transform comma-separated notice keys into arrays. Update validator map and types to support array transforms.
5b115ae
to
b3196a1
Compare
fides
|
Project |
fides
|
Branch Review |
main
|
Run status |
|
Run duration | 00m 49s |
Commit |
|
Committer | Jason Gill |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
5
|
View all changes introduced in this branch ↗︎ |
Closes LJ-487
Description Of Changes
Adds support for disabling specific notice toggles in the CMP overlay via a new
fides_disabled_notices
configuration option. This allows clients to prevent users from toggling certain privacy notices while preserving their current consent state.Code Changes
fides_disabled_notices
option toFidesOptions
interface that accepts a comma-separated string of notice keysparseFidesDisabledNotices
utility to parse the disabled notices string into an arrayNoticeOverlay
andTcfOverlay
components to respect disabled notices:parseFidesDisabledNotices
utilitySteps to Confirm
/fides-js-demo.html?geolocation=us-ut&fides_disabled_notices=analytics,marketing
)Pre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works