Skip to content

Epic: Full embeddable EmailTemplateAdmin page component #138

Description

@patoperpetua

Objective

Ship a complete embeddable EmailTemplateAdmin React page in @singleton-sd/post-kit-editor so consumers mount one component and only wire list/save/send-test callbacks. The canvas must match the official EmailBuilder.js playground UX (MUI inspector + samples), not the current skinny hand-rolled canvas.

Locked decisions

  • Hosting: embeddable package component only (not a PostKit-hosted apps/ CMS).
  • Canvas: port usewaypoint/email-builder-js examples/vite-emailbuilder-mui (inspector, samples drawer, template panel).
  • Boundary unchanged: no API keys in the browser; no disk/Git/Azure I/O inside the package; save/send remain consumer callbacks.

Target consumer API

import { EmailTemplateAdmin } from '@singleton-sd/post-kit-editor';

<EmailTemplateAdmin
  templates={catalog}
  onSave={saveToConsumerApi}
  onSendTest={postSendTestToBff}
/>

Work

  • Vendor/adapt EmailBuilder MUI sample into post-kit-editor; swap default canvas
  • EmailTemplateAdmin page (list + PostKit chrome + new canvas); export + ThemeProvider
  • Slim examples/admin-editor + editor-integration docs to one-component embedding

Out of scope

  • Hosted multi-tenant CMS under apps/
  • Real GitHub App / consumer SSO inside the package
  • Changing compile/publish/Blob contracts (template.json remains EmailBuilder JSON)

Acceptance criteria

  • A consumer can mount EmailTemplateAdmin and get list + EmailBuilder playground-quality canvas + PostKit metadata/preview/save/send without rebuilding admin chrome.
  • Existing EmailTemplateEditor / EmailBuilderCanvas remain exported for advanced hosts.
  • Docs and examples/admin-editor default to the one-component model.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions