Commit Graph
4 Commits
Author SHA1 Message Date
Keith Solomon 9ea16bf650 fix: mount filter controls in sidebar via InspectorControls
The FilterPanel was being mounted as a free-floating sibling of the block via an `editor.BlockEdit` HOC. In WordPress, a `PanelBody` only renders in the sidebar when wrapped in `<InspectorControls>`; without that wrapper, the panel renders wherever it lands in the React tree, which here was the editor canvas.

Move the InspectorControls mount into the Edit component itself (the idiomatic place for an own block to expose sidebar controls), and drop the `editor.BlockEdit` filter from `src/index.js`. Add an Edit test that pins the contract: the filter panel must mount inside InspectorControls and never float outside it. Add a manual jest mock for @wordpress/block-editor so the Edit test can render in an environment without WordPress globals.
2026-08-06 15:21:25 -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 151b09ba90 Add transforms to and from core Image block 2026-08-05 16:56:27 -05:00
Keith Solomon d21d3c9ac2 Wire up the Filtered Image block end-to-end 2026-08-05 16:48:03 -05:00