Skip to content

feat(editor): EmailBuilder canvas and lossless template serialization - #92

Open
patoperpetua wants to merge 1 commit into
mainfrom
feat/40-editor-canvas-serialize
Open

feat(editor): EmailBuilder canvas and lossless template serialization#92
patoperpetua wants to merge 1 commit into
mainfrom
feat/40-editor-canvas-serialize

Conversation

@patoperpetua

Copy link
Copy Markdown
Contributor

Summary

  • Integrates the EmailBuilder.js visual canvas into @singleton-sd/post-kit-editor using @usewaypoint/email-builder@0.0.9 and the waypoint block editor stack (no global store; controlled React context).
  • Adds loadTemplateSource() / serializeTemplateSource() for lossless, deterministic round-trips of template.json, metadata.json, and preview.json, preserving unknown forward-compatible fields.
  • Wires EmailTemplateEditor to hold working TemplateSourceFiles in local state and update templateJson from canvas edits.

Test plan

  • pnpm --filter @singleton-sd/post-kit-editor run test (15 tests: serialization round-trips, validation errors, compiler compatibility, canvas render)
  • pnpm test (full workspace)
  • CI Lint / test / build green on PR

Closes #40

Made with Cursor

…tion

Integrate the EmailBuilder.js visual editor surface and load/serialize helpers
so consumers can round-trip template.json, metadata.json, and preview.json
without information loss.

Closes #40

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 6 minutes.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1234e0bd-793e-482b-a1aa-e04a984fcb13

📥 Commits

Reviewing files that changed from the base of the PR and between a2dfa4e and 59553a0.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (30)
  • packages/post-kit-editor/package.json
  • packages/post-kit-editor/src/__fixtures__/minimal/metadata.json
  • packages/post-kit-editor/src/__fixtures__/minimal/preview.json
  • packages/post-kit-editor/src/__fixtures__/minimal/template.json
  • packages/post-kit-editor/src/__fixtures__/nested-blocks/metadata.json
  • packages/post-kit-editor/src/__fixtures__/nested-blocks/preview.json
  • packages/post-kit-editor/src/__fixtures__/nested-blocks/template.json
  • packages/post-kit-editor/src/__fixtures__/unknown-field/metadata.json
  • packages/post-kit-editor/src/__fixtures__/unknown-field/preview.json
  • packages/post-kit-editor/src/__fixtures__/unknown-field/template.json
  • packages/post-kit-editor/src/canvas/EditorBlock.tsx
  • packages/post-kit-editor/src/canvas/EmailBuilderCanvas.tsx
  • packages/post-kit-editor/src/canvas/blocks/ColumnsContainerEditor.tsx
  • packages/post-kit-editor/src/canvas/blocks/ColumnsContainerPropsSchema.ts
  • packages/post-kit-editor/src/canvas/blocks/ContainerEditor.tsx
  • packages/post-kit-editor/src/canvas/blocks/ContainerPropsSchema.ts
  • packages/post-kit-editor/src/canvas/blocks/EmailLayoutEditor.tsx
  • packages/post-kit-editor/src/canvas/blocks/EmailLayoutPropsSchema.ts
  • packages/post-kit-editor/src/canvas/editor-context.tsx
  • packages/post-kit-editor/src/canvas/editor-core.tsx
  • packages/post-kit-editor/src/canvas/helpers/AddBlockMenu.tsx
  • packages/post-kit-editor/src/canvas/helpers/EditorBlockWrapper.tsx
  • packages/post-kit-editor/src/canvas/helpers/EditorChildrenIds.tsx
  • packages/post-kit-editor/src/canvas/helpers/block-templates.ts
  • packages/post-kit-editor/src/email-template-editor.tsx
  • packages/post-kit-editor/src/index.spec.tsx
  • packages/post-kit-editor/src/index.ts
  • packages/post-kit-editor/src/serialization.spec.ts
  • packages/post-kit-editor/src/serialization.ts
  • packages/post-kit-editor/src/types.ts

Comment @coderabbitai help to get the list of available commands.

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.

EmailBuilder.js canvas and lossless template source load/serialize

1 participant