Embeddable Widget Module Explained

Ecosistema completo para organización y gestión de contenido con interfaces espaciales

Embeddables, Widgets, and Modules — How It All Fits Together

The end state (big picture)

What the steps achieve

  1. Classification & filtering across the monorepo

    • Embeddables carry kind. Palettes (gograb-space) and backend-api responses filter so widget-only views don’t show module layouts unless they’re adapted. Badges make it obvious what you’re dragging.
  2. Shared web responsive contract

    • ResponsiveDefinition in core models defines size/layout/visibility per breakpoint.
    • Widgets already use responsive props; now they align to the same contract.
    • Modules add webResponsive to their manifest for the web runtime, while keeping Flutter/React metadata intact.
  3. Layout adapter in editor-web

    • Module regions become drop zones. You can place widgets into module layouts in the editor. Region selections and responsive overrides persist back to the module context.
    • Only modules that provide webResponsive + adapter metadata show up as layouts in the widget palette.
  4. Widget-builder hardening

    • Every AI/manual widget export includes: propertyGroups/values, responsive base-sm-md-lg, embeddableId, accessibility (aria/role), and a manifest snippet describing how modules can embed it.
    • Backend property templates (pricing, CTA, colors, etc.) are injected automatically; missing pieces trigger AI retry.
  5. Modularity-lib AI & validation

    • Module AI generation checks models/state/actions/routes/permissions/embeddables/responsive/variants. Regions must host widgets or declare placeholders/allowed types. Exports are blocked until valid.
    • Reuse-first: suggest existing widgets before creating new ones to reduce duplication and keep performance tight.
  6. Backend property system integration

    • Property templates from backend-api drive both widget and module AI, so pricing/CTA/color/accessibility props are consistent and tracked (usage increments, guarantees).
  7. Tests & gates

    • CI checks: classification/filtering, adapter smoke, responsive snapshots (e.g., Pricing + Two Column Equal), accessibility, and monorepo filtering (backend-api + gograb-space).

How the architecture will look

Why this is structurally sound

Performance & packaging considerations