Problem
Block Format Bridge currently orchestrates general content conversion between static HTML and WordPress blocks. A future WooCommerce site-generation experiment may need a clean extension seam for passing commerce context from Static Site Importer into HTML-to-block conversion.
This should avoid hard-coupling every converter layer to WooCommerce while still allowing product-aware conversions when product data exists.
Related Studio issue: Automattic/studio#3323
Likely Studio experiment base: Automattic/studio#3309
Proposed direction
Explore whether BFB needs explicit context hooks/options for commerce-aware conversion, such as:
- product data available for the current source file
- product-card selector hints from SSI
- replacement placeholders for product collections
- diagnostics for low-confidence commerce conversion
- a way to preserve normal non-commerce behavior unchanged
Questions
- Can SSI pass product context into h2bc through existing BFB options?
- Do Woo-aware transforms belong fully in h2bc, or should BFB expose a generic context/diagnostics channel?
- How should fallback/diagnostic events represent commerce-specific approximations?
Acceptance criteria for an experiment
- Determine whether existing BFB APIs are enough for SSI + h2bc WooCommerce support.
- If not, add a minimal generic context/diagnostics seam, not Woo-specific hardcoding unless unavoidable.
- Existing conversion behavior remains unchanged without commerce context.
Links
AI assistance
- AI assistance: Yes
- Tool(s): OpenCode (gpt-5.5)
- Used for: Drafting the companion BFB seam issue for a future WooCommerce generation experiment; Chris remains responsible for review and prioritization.
Problem
Block Format Bridge currently orchestrates general content conversion between static HTML and WordPress blocks. A future WooCommerce site-generation experiment may need a clean extension seam for passing commerce context from Static Site Importer into HTML-to-block conversion.
This should avoid hard-coupling every converter layer to WooCommerce while still allowing product-aware conversions when product data exists.
Related Studio issue: Automattic/studio#3323
Likely Studio experiment base: Automattic/studio#3309
Proposed direction
Explore whether BFB needs explicit context hooks/options for commerce-aware conversion, such as:
Questions
Acceptance criteria for an experiment
Links
AI assistance