Skip to content

Classify commerce runtime controls#518

Merged
chubes4 merged 2 commits into
trunkfrom
fix/ssi-php-native-patterns
Jul 6, 2026
Merged

Classify commerce runtime controls#518
chubes4 merged 2 commits into
trunkfrom
fix/ssi-php-native-patterns

Conversation

@chubes4

@chubes4 chubes4 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds provider-aware PHP transformer diagnostics for form and commerce fallback lanes without adding SSI/provider-specific code to Blocks Engine.
  • Classifies data-entry/static forms with controls as provider-materializable form targets, carrying materialization_target metadata for a downstream form provider instead of implying SSI lacks a form provider.
  • Separates commerce product materialization from cart runtime behavior: product grids carry structured product metadata for a shop/product provider, while quantity/add-to-cart controls stay a dedicated cart-runtime diagnostic.
  • Carries materialization targets, product rows/counts, and provider-role hints through conversion-report diagnostics so SSI can consume the structured intent.

Verification

  • composer test from php-transformer/
  • php tests/parity/run.php from php-transformer/
  • php tests/smoke-form-materializer.php from Static Site Importer
  • php tests/smoke-product-materializer.php from Static Site Importer

Notes

  • PHP transformer only. No packages/blocks-engine/** changes.
  • Static Site Importer already has generic pluggable providers: form => jetpack via Static_Site_Importer_Form_Seeder, and shop => woocommerce via the Woo product seeder/materializer. This PR now reflects that architecture.
  • Remaining gaps are cart/control runtime binding and non-mappable forms, not absence of SSI form/product providers.

AI assistance

  • AI assistance: Yes
  • Tool(s): GPT-5.5 via OpenCode
  • Used for: Inspected SSI provider architecture, corrected PHP transformer diagnostics/tests, updated the PR description, and ran verification.

@chubes4 chubes4 merged commit 992cd00 into trunk Jul 6, 2026
1 check passed
@chubes4 chubes4 deleted the fix/ssi-php-native-patterns branch July 6, 2026 19:31
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