Skip to content

Feature/plumbing Styles Block#34

Closed
jasperf wants to merge 3 commits into
mainfrom
feature/plumbing-styles-block
Closed

Feature/plumbing Styles Block#34
jasperf wants to merge 3 commits into
mainfrom
feature/plumbing-styles-block

Conversation

@jasperf

@jasperf jasperf commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a new elayne/plumbing-styles utility block, adding plumbing-specific styling capabilities to the Elayne Blocks plugin. The implementation includes a complete block package with build assets, source files, and administrative integration, enabling users to apply plumbing-related styles within the WordPress block editor. The changes expand the plugin's utility block offerings and ensure proper registration and management through the admin settings interface. All assets are compiled and committed for immediate distribution, following the project's established build conventions.

Block Implementation and Architecture:

  • Added a new plumbing-styles block package with full source and build structure, including block.json, JavaScript/SCSS source files, and compiled assets (CSS/JS)
  • Implemented editor-specific (edit.js, editor.scss) and frontend (save.js, style.scss) components for the utility block
  • Generated RTL-compatible stylesheets (index-rtl.css, style-index-rtl.css) to support bidirectional text layouts
  • Included package.json for block-specific dependencies and build configuration, adhering to WordPress block development standards

Administrative Integration:

  • Updated elayne-blocks.php to register the new elayne/plumbing-styles block for auto-discovery at runtime
  • Modified includes/admin/settings-page.php to include the plumbing-styles block in the admin settings panel for user configuration
  • Ensured consistency with existing block registration patterns and administrative management workflows

Build and Distribution Assets:

  • Committed compiled production assets (build/) including minified JavaScript, CSS, and asset metadata (index.asset.php)
  • Followed the project convention of including build artifacts in version control for direct distribution
  • Maintained separation of source files (src/) and compiled outputs (build/) for development clarity

Files Changed:

jasperf added 2 commits March 16, 2026 13:55
CSS-only block that loads all plumbing vertical utility classes
(hero diagonal separator, stat blocks, section labels, header
helpers, emergency pulse animation, etc.) via a block asset
stylesheet rather than the wp_global_styles database snapshot.

This avoids the persistent issue where the style variation's
"css" key in plumbing.json gets frozen in the wp_global_styles
custom post at the time of the last Site Editor save, causing
subsequent file-level CSS edits to be silently ignored until
a manual Site Editor re-save is performed on every sub-site.

Block outputs a hidden <span> on the frontend to guarantee
style-index.css is enqueued; shows a labeled indicator chip
in the editor. supports.multiple = false prevents duplicates.
@github-actions

github-actions Bot commented Mar 16, 2026

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@jasperf jasperf closed this Mar 16, 2026
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.

1 participant