Skip to content

Add settings importer from GDPR Cookie Compliance (Integrations tab) - #17

Merged
davidperezgar merged 10 commits into
mainfrom
feature/gdpr-cookie-compliance-migrator
Oct 29, 2026
Merged

davidperezgar merged 10 commits into
mainfrom
feature/gdpr-cookie-compliance-migrator

Conversation

@davidperezgar

@davidperezgar davidperezgar commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14

Changes

  • New FrontConsent\GDPR_Cookie_Compliance_Migration class. Pure build( $source, $current ) returns merged settings plus a report; run() applies it to the live options.
  • Integrations tab (gdin_values JSON in moove_gdpr_plugin_settings): ga4 and gtm migrate into cookie_notice_tracking_integrations. gtmc2 imports as GTM and is flagged for review. A G- ID in the GTM field becomes GA4. Invalid IDs are flagged, not imported.
  • Unsupported (gadc, fbp, muet, clarity, recaptcha) are listed in the report, not dropped silently.
  • Banner texts, accept/reject labels, consent expiration and position are filled only when FrontConsent has no value yet.
  • Settings page shows an explicit Import settings button (nonce + manage_options) when the source option exists, then a result report. Never auto-runs and never writes to the source plugin; idempotent.

Also in this PR (found while auditing mbest.es)

  • GTM4WP: the container ID from gtm4wp-options is imported as a GTM integration.
  • WooCommerce order attribution (sourcebuster-js, wc-order-attribution) is kept inert until consent, so sbjs_* cookies are no longer set before accepting. Filter: frcn_cookie_notice_gated_script_handles.
  • GTM4WP's own Consent Mode default is suppressed (filter gtm4wp_consent_mode_default_enabled), so FrontConsent's denied default is the only one. Opt out: frcn_cookie_notice_suppress_gtm4wp_consent_default.

Checks

  • composer lint and composer phpstan pass.
  • composer test could not run locally (WP test lib missing at the temp path). tests/Unit/GDPRCookieComplianceMigrationTest.php is added; build() was smoke-tested standalone, including the idempotent second run.

Open questions from the issue

Adding Google Ads / Meta Pixel / Clarity / UET as native integration types is left out of scope here.

🤖 Generated with Claude Code

Closes #14

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-29T07:58:23.051690Z
We couldn’t complete this review. Comment @codex review to try again.
93eea4b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2fc8b7553a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread includes/Admin/Settings.php Resolved
davidperezgar and others added 2 commits October 16, 2026 12:38
…layout, docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e05804591d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…p separators, enable on any import

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d0d24d0ec0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…etry on unreadable data

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ebdd12adc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…tomically

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

davidperezgar and others added 2 commits October 29, 2026 08:57
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@davidperezgar
davidperezgar merged commit 1e8429e into main Oct 29, 2026
6 checks passed
@davidperezgar
davidperezgar deleted the feature/gdpr-cookie-compliance-migrator branch October 29, 2026 08:32
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.

Add settings migrator from GDPR Cookie Compliance (focus on Integrations tab)

1 participant