Skip to content

Conversation

@aristath
Copy link
Member

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 29, 2025

Test on Playground
Test this pull request on the Playground
or download the zip

@aristath aristath requested a review from Copilot October 29, 2025 09:32
Copy link

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

This PR updates the plugin's text domain from 'color-scheme' to 'brand-assets' and refactors the settings page to use structured helper methods, replacing the custom CSS option with a comprehensive set of popover styling controls.

  • Updated all internationalization strings to use the correct 'brand-assets' text domain
  • Refactored settings page to use reusable rendering methods for form fields
  • Replaced the "custom CSS" loading mode with individual popover styling options using CSS custom properties
  • Extracted inline JavaScript to separate files for better maintainability
  • Changed pattern file from .inc to .php and updated loading mechanism

Reviewed Changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/edit.js Updated text domain from 'color-scheme' to 'brand-assets' and added eslint-disable comments for console.log statements
readme.txt Updated documentation to remove custom CSS option and reference new filter-based customization approach
phpcs.xml Excluded long closure rules to accommodate refactored code
package-lock.json Updated dependency versions (caniuse-lite, fsevents)
includes/class-brand-assets.php Changed pattern file extension from .inc to .php and updated file loading from file_get_contents to require
includes/class-brand-assets-settings.php Major refactor: added helper methods for rendering form fields, replaced custom CSS with structured styling options, and extracted JavaScript to external file
includes/class-brand-assets-options.php Added default values for popover styling options and removed 'custom' CSS mode
includes/class-brand-assets-frontend.php Refactored CSS loading to generate CSS custom properties from user settings and extracted copy color script to external file
includes/brand-page-pattern.php Added PHP opening tag, file header, and heredoc syntax for pattern content
build/index.js Minified build output reflecting text domain changes
build/index.asset.php Updated build version hash
assets/frontend.css Replaced hardcoded styles with CSS custom properties for user customization
assets/copy-color.js New file: extracted copy-to-clipboard functionality from inline script
assets/admin.js New file: admin settings page JavaScript for color picker and styling section toggle
README.md Updated documentation to reflect new styling options and filter-based customization approach

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

aristath and others added 2 commits October 29, 2025 11:38
@aristath aristath requested review from ilicfilip and jdevalk October 29, 2025 09:39
@aristath aristath marked this pull request as ready for review October 29, 2025 09:39
Copy link
Contributor

@ilicfilip ilicfilip left a comment

Choose a reason for hiding this comment

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

Do we want to add Contributors to the readme.txt?

Everything else looks good

@jdevalk
Copy link
Member

jdevalk commented Oct 29, 2025

Do we want to add Contributors to the readme.txt?

Everything else looks good

Yes we should - add the three of us + the progressplanner user

@aristath
Copy link
Member Author

Added 👍

@aristath
Copy link
Member Author

Ran the Plugin Review plugin to verify the fixes and got another issue reported, fixed in fc082bb

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.

4 participants