Commit Graph
8 Commits
Author SHA1 Message Date
Keith Solomon 860a192aff fix: return createBlock instances from block transforms and fix filter CSS selectors
Two related bug fixes:

- Transforms: `type: 'block'` callbacks must return a block instance created by createBlock; the previous code returned raw attribute objects which WordPress silently ignored, so the toolbar block-switcher transforms never fired. Update tests to assert on `result.name` and `result.attributes`. Add a manual jest mock for @wordpress/blocks since the package is provided at runtime via dependency-extraction-webpack-plugin.

- Filter CSS: the SCSS used a descendant combinator (`.wp-block-ksolo-image-filter .has-filter-warm img`) but the JSX puts both classes on the same element, so the filter rule never matched and picking a filter had no visual effect on the editor or the front end. Target the inner <img> by its stable class pair (`.ksolo-image-filter-img.has-filter-<slug>`) instead. Add a regression test that reads the compiled CSS and asserts the selectors are present for every preset.
2026-08-06 15:19:50 -05:00
Keith Solomon 24a3935e1c test: add preset/css lockstep regression test 2026-08-06 14:50:43 -05:00
Keith Solomon bf3ee12e51 Rename plugin to SoloFilters Image Enhancements to avoid slug collision 2026-08-05 18:37:07 -05:00
Keith Solomon a075523287 Add Playwright e2e smoke test and accessibility checklist 2026-08-05 17:08:18 -05:00
Keith Solomon 151b09ba90 Add transforms to and from core Image block 2026-08-05 16:56:27 -05:00
Keith Solomon c2a0ae2d8c Add inspector panel with preset grid and intensity slider 2026-08-05 16:37:53 -05:00
Keith Solomon c485816135 Add presets.js as single source of truth for filter definitions 2026-08-05 16:05:13 -05:00
Keith Solomon 4881dcabf0 Bootstrap image-filters plugin with wp-scripts and jest 2026-08-05 15:51:43 -05:00