Repository navigation
feat(ui-plugins): add Email Template Builder (email-template-builder) - #242
Open
ppppp2005-p wants to merge 11 commits into
Open
ppppp2005-p wants to merge 11 commits into
ppppp2005-p wants to merge 11 commits into
Conversation
Author
|
ZCode desktop demo (ZCode 4.0.0, macOS arm64) email-template-builder-demo.mp4Flow shown:
演示流程:本地 marketplace 安装 → |
Collaborator
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin type (required) / 插件类型(必填)
Affected plugin name(s) / 涉及的插件名称:
email-template-builder(UI Plugin, new)What / 改动内容
New community UI plugin Email Template Builder / 截图转邮件模板: email screenshot or design → MJML written by the agent → email-client-safe HTML, checked, previewed next to the design (desktop / mobile / dark), exported as HTML + plain text. Nothing is sent.
Defaults (stated in the READMEs):
mjml5.4).{{var}}placeholders are kept in the export for the user's email service;data.jsonsample values are used only for the preview.Tools:
email_new: starter MJML with preheader, dark-mode styles and unsubscribe link, plus sample data and links to design images.email_write: MJML and/or sample data; compiles and checks.email_check.email_export:.htmlwith variables,.txtand a filled.preview.html; refused while there are errors unless forced.email_state,email_text,email_design,workspace_images.Checks:
mj-preview; missingprefers-color-scheme: darkstyles. Thecolor-schememeta is injected when dark styles exist.http:images.#links.Plain text: html-to-text after removing the preheader and styles. Links go in brackets; wordwrap is 78.
Bundle:
htmlnano,typescriptandundici(pulled in by mjml's optional minify / cosmiconfig / cheerio fetch paths) are stubbed, which brings the server from 15 MB to about 4 MB. Compiling works without them;minifyis not used.Panel:
data.json.Network / API / side effects: none. No API keys, no email service and nothing sent. Writes
emails/<slug>/and.email-builder/project.json. No hooks.Third-party: mjml (MIT), html-to-text (MIT), MCP SDK / ext-apps (MIT), zod (MIT).
Tests:
mj-columat line 9.http:image.#link.validate.py,build_dist.py,git diff --checkandtscpass.A ZCode Desktop demo recording is attached in the comments. / ZCode 桌面版演示录屏见评论。
Self-check / 自查清单
external_plugins/<name>/categoryis set (productivity)version0.1.0 in bothplugin.jsonandmarketplace.jsonREADME.md(EN) andREADME_CN.md(中文) both provided and equivalentdescription_i18nhas bothenandzh-CNpython3 scripts/validate.pyandpython3 scripts/build_dist.pypass locally