Skip to content

feat: release/2.6.2#38

Open
pleberre wants to merge 44 commits intodevelopfrom
release/2.6.2
Open

feat: release/2.6.2#38
pleberre wants to merge 44 commits intodevelopfrom
release/2.6.2

Conversation

@pleberre
Copy link
Copy Markdown
Contributor

@pleberre pleberre commented Oct 6, 2025

Summary by cubic

Release 2.6.2 adds WP Consent API integration with auto-synced consent categories shown as virtual vendors, a multilingual and customizable shortcode placeholder (incl. button text and hideable decoration), and a smoother plugin edit drawer. It also updates the signup link with UTM, bumps “Tested up to” to 6.9, fixes a PHP 8+ null pointer and a WP Consent API init bug, and improves French GTM event translations.

  • New Features

    • WP Consent API: show 5 categories as virtual vendors and sync consent directly via wp_set_consent when the plugin is active (no GCM dependency).
    • Customizable shortcode placeholder with i18n via new meta fields and a migration (title, description, button text, hide decoration).
    • Admin UX: unified amber theme, transitions, and auto-scroll in the edit drawer.
  • Dependencies

    • Bump webpack-dev-server to v5.2 and pin via resolutions to 5.2.1.
    • Update pbkdf2 to 3.1.3 and refresh lockfile.

Written for commit b8ccf91. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 8 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="package.json">

<violation number="1" location="package.json:63">
This resolution forces webpack-dev-server v5, but laravel-mix 6 expects v4. Forcing the higher major version risks breaking Mix’s dev server workflow; please align the resolution with the supported v4 series.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

Reviewed changes from recent commits (found 1 issue).

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="readme.txt">

<violation number="1" location="readme.txt:38">
Add a space before the bolded &quot;Optimization&quot; text so the Markdown renders correctly and remains readable.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Loubal70 and others added 8 commits December 4, 2025 10:17
- Fix initialization bug (axeptioSettings → axeptioWpConsentCategories)
- Add 5 WP Consent API categories as virtual vendors
- Update consent directly without Google Consent Mode dependency
- Refactor categories data to single source of truth
- Add WordPress favicon for consent categories
feat: authorize Axeptio on WordPress version 6.9
@claracarvalho4axeptio
Copy link
Copy Markdown
Contributor

claracarvalho4axeptio commented Mar 2, 2026

Hey @Loubal70,

A few things to move this forward:

1. Cubic thread to resolve
There's still one unresolved Cubic conversation on this PR blocking the merge:
#38 (comment)

Could you take a look and resolve it when you get a chance? Once that's cleared, we should be good to merge release/2.6.2 into develop.

2. Next steps after merge — I need to understand the workflow
Since this is my first release with you in this repo, I want to make sure I follow the right process:

a. After merging into develop, will we need to create a separate PR to merge release/2.6.2 into main (production)? Or do we merge develop into main at that point?

b. What is the environment at https://wordpress-843309-3452223.cloudwaysapps.com/wp-admin — is that staging/preprod? And who is responsible for deploying there? I want to push this release into production.

Thanks!

@Loubal70 Loubal70 marked this pull request as draft March 3, 2026 10:36
@Loubal70
Copy link
Copy Markdown
Collaborator

Loubal70 commented Mar 3, 2026

Hi,

Thanks for the detailed message. I'm currently on vacation, so I won't be able to look into this right away — I'll try to take a quick look tomorrow morning though.

Regarding the PR, I've set it to draft for now. We're waiting on @ogorzalka , who needs to set up automatic deployment and document the release process. At the moment, he's the only person able to push a release to production.

As for the workflow, I'd leave it up to Olivier to define the most appropriate approach. Personally, I think we could use main as the public/production branch, and either drop develop entirely or keep it as a base for new feature branches.

About the environment at the Cloudways URL you mentioned — it's currently managed by Amphibee, and it doesn't have an automated deployment pipeline either. The plan is to set up automatic deployment when a PR is merged into the preprod branch (which will need to be protected, of course).

I'll get back to you soon.

Best,
Louis

@Loubal70 Loubal70 marked this pull request as ready for review March 4, 2026 08:23
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

4 issues found across 34 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="languages/axeptio-wordpress-plugin-es_ES.po">

<violation number="1" location="languages/axeptio-wordpress-plugin-es_ES.po:536">
P3: The new URL string is flagged as fuzzy, which causes the Spanish translation to be ignored at runtime. Remove the fuzzy flag and update the localized URL so the Spanish build doesn’t fall back to the English link.</violation>
</file>

<file name="readme.txt">

<violation number="1" location="readme.txt:21">
P3: Fix the missing space between sentences so the readme text renders correctly.</violation>
</file>

<file name="assets/js/backend/components/pluginList.js">

<violation number="1" location="assets/js/backend/components/pluginList.js:251">
P2: For non-default languages, getLocalizedMeta falls back to the raw meta string when parsing fails or the parsed value isn’t an object. This shows the default text instead of '', preventing PO/MO translation fallback for missing translations. Return '' when lang !== 'default' in these fallbacks.

(Based on your team's feedback about not falling back to default localized values.) [FEEDBACK_USED]</violation>
</file>

<file name="templates/admin/onboarding/account.php">

<violation number="1" location="templates/admin/onboarding/account.php:13">
P2: Add rel="noopener noreferrer" when using target="_blank" to prevent tabnabbing.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Loubal70 and others added 2 commits March 24, 2026 16:51
fix: filter vendors without consent requirements from recommended settings
Copilot AI review requested due to automatic review settings March 24, 2026 19:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Release 2.6.2 for the Axeptio WordPress plugin, focusing on WP Consent API integration, multilingual/customizable shortcode placeholders, and various UX/documentation/dependency updates.

Changes:

  • Add WP Consent API category “virtual vendors” and synchronize consent via wp_set_consent.
  • Add multilingual + customizable shortcode placeholder fields (title/description/button text) and a “hide decoration” option (incl. DB migration + admin UI + frontend rendering).
  • Update admin UI styling/behavior (amber theme tweaks, smoother edit drawer) and bump release metadata/docs/dependencies.

Reviewed changes

Copilot reviewed 30 out of 35 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
templates/frontend/shortcode-placeholder.php Adds per-plugin button text and optional hiding of placeholder decoration.
templates/admin/plugins/fields/repeater.php Updates focus/brand color classes to amber.
templates/admin/plugins/fields/modal-delete.php Updates modal focus ring styling to amber.
templates/admin/plugins/fields/edit.php Adds multilingual placeholder editor + hide-decoration toggle + improved drawer transitions/scroll behavior.
templates/admin/onboarding/account.php Updates signup link with UTM parameters.
templates/admin/main/tabs.php Updates select focus styles to amber.
templates/admin/common/fields/toggle.php Improves toggle layout and hides checkbox via sr-only.
templates/admin/common/fields/textarea.php Updates textarea focus styles to amber.
templates/admin/common/fields/text.php Updates input focus styles to amber.
templates/admin/common/fields/image-upload.php Updates button focus ring styling to amber.
readme.txt Updates stable tag/tested-up-to and adds 2.6.2 changelog + refreshed marketing copy.
package.json Bumps webpack-dev-server to v5 and adds resolutions.
languages/axeptio-wordpress-plugin.pot Updates POT metadata and adds new WP Consent API category strings.
languages/axeptio-wordpress-plugin-fr_FR.po Updates French translations and strings (incl. WP Consent API categories).
languages/axeptio-wordpress-plugin-fr_FR.mo Compiled French translations update.
languages/axeptio-wordpress-plugin-es_ES.po Updates Spanish translations and strings (incl. WP Consent API categories).
languages/axeptio-wordpress-plugin-es_ES.mo Compiled Spanish translations update.
languages/axeptio-wordpress-plugin-en_US.po Updates English PO metadata/strings (incl. WP Consent API categories + URL change).
languages/axeptio-wordpress-plugin-en_US.mo Compiled English translations update.
languages/axeptio-wordpress-plugin-de_DE.po Updates German translations and strings (incl. WP Consent API categories).
languages/axeptio-wordpress-plugin-de_DE.mo Compiled German translations update.
includes/classes/utils/class-search-callback-file-location.php Fixes possible null handling when extracting plugin name.
includes/classes/models/class-wp-consent-api-settings.php Adds category metadata + exposes categories + creates “virtual vendor” representations.
includes/classes/models/class-recommended-plugin-settings.php Skips hooks missing consent requirements.
includes/classes/models/class-plugins.php Adds new meta defaults, normalizes types, and adds localized-meta decoding helper.
includes/classes/migrations/class-migration-2.6.2.php Adds DB columns for new placeholder fields.
includes/classes/frontend/class-hook-modifier.php Uses localized placeholder metas and passes new placeholder settings to frontend.
includes/classes/frontend/class-axeptio-sdk.php Injects WP Consent API vendors/categories into localized frontend configuration.
axeptio-wordpress-plugin.php Bumps plugin version constants to 2.6.2.
assets/js/frontend/axeptio.js Syncs Axeptio choices to WP Consent API categories directly via wp_set_consent.
assets/js/backend/components/pluginList.js Adds client-side helpers to read/write localized metas stored as JSON strings.
assets/css/frontend/main.css Adjusts placeholder icon size on large screens.
Taskfile.yml Removes an extra blank line.
README.md Updates version badge and notes WP Consent API compatibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Force webpackbar ^7.0.0 via resolutions to fix ProgressPlugin
invalid options error (name, color, reporters) introduced by
webpackbar 5.x/6.x being incompatible with recent webpack 5.
- Use Axeptio_SDK instead of axeptioSettings to avoid undefined
  reference due to script execution order
- Use window.wp_set_consent to fix no-undef ESLint error
- Return empty string for non-default languages in getLocalizedMeta
  fallback to allow PO/MO translation fallback
- Fix missing spaces in readme.txt formatting
- Add rel="noopener noreferrer" to target="_blank" links in onboarding
- Remove fuzzy flags on support URL translations (de, en, es, fr)
- Replace DROP COLUMN IF EXISTS with INFORMATION_SCHEMA checks for
  MySQL 5.7 compatibility in migration 2.6.2
- Prefix template variables with axeptio_ to satisfy PrefixAllGlobals
- Add phpcs:disable/enable blocks for migration schema queries
- Auto-fix formatting and coding standards violations
Copilot AI review requested due to automatic review settings April 14, 2026 08:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 30 out of 36 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…fields

When setLocalizedMeta converts a plain string to JSON for multilingual
storage, preserve the existing value under the 'default' key to prevent
data loss for pre-existing installations.
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.

5 participants