kathyisawesome / wc-mnm-variable

Variable Mix and Match Products
2 stars 0 forks source link

Refactor to use blocks and Inner blocks #46

Open helgatheviking opened 9 months ago

helgatheviking commented 9 months ago

No idea if this makes sense, but let's explore how to write the various parts (grid/table/child items/status UI) as inner blocks. Can the <ProductCollection> block be re-used at all? How can we merge the child items response with the full product response? Do we want to? Would the status UI connect via the Interactivity API?

Would this allow us to tap into the FSE editor and a custom template? Given how difficult it is to customize the JS output (we also need to eventually think about where slotFills|addAction|addFilter might be appropriate for extending the output) it would be handy to allow some customization via FSE.

helgatheviking commented 9 months ago

Activity API reference: https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/