Skip to content

Enable GPC support for custom notices in TCF experiences#6176

Merged
eastandwestwind merged 6 commits intomainfrom
gill/ENG-513/custom-tcf-notices-gpc-not
Jun 3, 2025
Merged

Enable GPC support for custom notices in TCF experiences#6176
eastandwestwind merged 6 commits intomainfrom
gill/ENG-513/custom-tcf-notices-gpc-not

Conversation

@gilluminate
Copy link
Copy Markdown
Contributor

@gilluminate gilluminate commented May 28, 2025

Closes ENG-513

Description Of Changes

Enable Global Privacy Control (GPC) support for custom notices in TCF experiences. Previously, GPC was completely disabled when TCF was enabled, but this change allows GPC to be applied to custom notices even in TCF contexts while still following TCF standards for purposes and vendors.

Code Changes

  • Updated consent context logic to allow GPC when TCF is enabled but only for custom notices
  • Enhanced RecordsList component to support rendering GPC badges for custom notices in TCF experiences
  • Updated TcfPurposes component to display GPC badges for custom privacy notices but not for standard IAB purposes
  • Added comprehensive test coverage for automated consent preferences with GPC support in regular and TCF experiences
  • Added test coverage for consent context handling with GPC detection and query parameter support
  • Updated comments to clarify that GPC can be applied to custom notices in TCF experiences

Steps to Confirm

  1. Create a TCF experience with custom privacy notices that have has_gpc_flag: true (eg. "Data sales and sharing" and "Marketing")
  2. Visit the demo page with GPC enabled in browser or add ?globalPrivacyControl=true query parameter
  3. Verify that GPC badges appear only for custom notices, not for standard IAB TCF purposes
  4. Confirm that GPC automatically opts out users from custom notices that support it
  5. Verify that standard TCF behavior remains unchanged for IAB purposes and vendors

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
    • Add a db-migration This indicates that a change includes a database migration label to the entry if your change includes a DB migration
    • Add a high-risk This issue suggests changes that have a high-probability of breaking existing code label to the entry if your change includes a high-risk change (i.e. potential for performance impact or unexpected regression) that should be flagged
    • Updates unreleased work already in Changelog, no new entry necessary
  • Followup issues:
    • Followup issues created
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2025 6:40pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-privacy-center ⬜️ Ignored (Inspect) Jun 2, 2025 6:40pm

@gilluminate gilluminate changed the title Gill/eng 513/custom tcf notices gpc not Enable GPC support for custom notices in TCF experiences May 28, 2025
@gilluminate gilluminate force-pushed the gill/ENG-513/custom-tcf-notices-gpc-not branch from a09bd45 to 9d95cda Compare May 28, 2025 23:24
@gilluminate gilluminate force-pushed the gill/ENG-513/custom-tcf-notices-gpc-not branch from 9d95cda to 4c52ed9 Compare May 28, 2025 23:31
Copy link
Copy Markdown
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

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

Great work, especially adding all those tests too!

@eastandwestwind eastandwestwind merged commit 8d548ed into main Jun 3, 2025
17 checks passed
@eastandwestwind eastandwestwind deleted the gill/ENG-513/custom-tcf-notices-gpc-not branch June 3, 2025 09:31
@cypress
Copy link
Copy Markdown

cypress Bot commented Jun 3, 2025

fides    Run #12953

Run Properties:  status check passed Passed #12953  •  git commit 8d548edf02: Enable GPC support for custom notices in TCF experiences (#6176)
Project fides
Branch Review main
Run status status check passed Passed #12953
Run duration 00m 49s
Commit git commit 8d548edf02: Enable GPC support for custom notices in TCF experiences (#6176)
Committer Jason Gill
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 5
View all changes introduced in this branch ↗︎

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.

2 participants