Skip to content

Review fixes#11

Merged
ilicfilip merged 14 commits into
mainfrom
ari/review-fixes
Mar 3, 2026
Merged

Review fixes#11
ilicfilip merged 14 commits into
mainfrom
ari/review-fixes

Conversation

@aristath

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread includes/class-brand-assets-settings.php
Comment thread includes/class-brand-assets-settings.php
Comment thread includes/class-brand-assets-frontend.php
Comment thread assets/copy-color.js Outdated
Comment thread assets/admin.js Outdated
aristath and others added 2 commits October 29, 2025 11:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@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

@ilicfilip ilicfilip left a comment

Copy link
Copy Markdown
Contributor

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

jdevalk commented Oct 29, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

Added 👍

@aristath

Copy link
Copy Markdown
Member Author

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

ilicfilip and others added 3 commits March 2, 2026 16:41
Resolve conflicts:
- phpcs.xml: keep all excluded rules from both branches
- class-brand-assets-settings.php: keep PR's render_table_row() refactor
- build files: rebuild from merged source
- package-lock.json: keep main's newer caniuse-lite version

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace inline tabs with spaces in plugin header (PHPCS)
- Add array type specifications to PHPDoc params (PHPStan)
- Cast option value to string for esc_attr() (PHPStan)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add .distignore to exclude dev files (CI workflows, config files, source JS,
composer/npm lock files) from the distribution archive.

Add missing Requires at least and Requires PHP headers to readme.txt to match
the main plugin file headers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ilicfilip ilicfilip merged commit 803df1a into main Mar 3, 2026
3 checks passed
@ilicfilip ilicfilip deleted the ari/review-fixes branch March 6, 2026 15:04
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