Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ src/

.claude/skills/ # Claude skills (best practices)
docs/AI_AGENT.md # Extended agent reference
docs/screenshots/ # UI illustrations for the README
docs/screenshots/ # Screenshots for the README
.github/workflows/ # CI on Node 22: ci.yml (build), test.yml (Vitest), e2e.yml (Playwright)
Dockerfile # Node 22, next build + next start (port 3000)
vitest.config.mts # Vitest config (jsdom, setup file, path alias)
Expand Down
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A visual editor for building HTML email templates as a tree of blocks. Authors c

Built with **Next.js** (App Router), **React**, **Ant Design**, and **Vitest**.

![Editor overview](docs/screenshots/editor-overview.svg)
![Editor: AI assistant on the left, live email preview on the right](docs/screenshots/app-overview.png)

## Goal

Expand All @@ -22,27 +22,29 @@ Give non-specialists (and developers) a reliable way to assemble email templates

## Screenshots

### Editor in action
All screenshots use the sample data that ships with the [backend](https://github.com/LLazyEmail/email-template-editor-nodejs): a No More To-Go "Weekly Menu" issue with six recipes.

A template tree built from nested elements, with the **Generate** link to the rendered HTML and the Elements library below.
### Live preview

![Template tree and Elements library](docs/screenshots/app-tree-and-elements.png)
The preview renders the template tree as the final email. Here are the recipe rows: each row is a `{{twoBlocks}}` element holding two `{{recipeCard}}` elements.

Editing an element: the title is the placeholder used in the tree (`{{twoBlocks}}`), the value is the HTML it expands to.
![Live preview of the recipe rows](docs/screenshots/app-preview-recipes.png)

![Edit element modal](docs/screenshots/app-edit-element.png)
### Template tree and Elements library

### Template tree
Both panels sit under the preview and are collapsed by default. Each placeholder in a node's HTML becomes a child node (`{{item1}}`, `{{link}}`, `{{image}}`, …). Right-click a node to add a child, edit it, or delete it. The Elements library holds the reusable blocks: `{{twoBlocks}}` (two-column row), `{{recipeCard}}` (photo, title and subtitle) and `{{textBlock}}` (a paragraph).

Right-click a node to add a child, edit the current node, or delete it.
![Template tree and Elements library](docs/screenshots/app-tree-and-elements.png)

![Template tree](docs/screenshots/template-tree.svg)
### Editing an element

### Elements library
The title is the placeholder used in the tree (`{{recipeCard}}`). The value is the HTML it expands to, with its own placeholders.

![Edit element modal](docs/screenshots/app-edit-element.png)

Maintain the reusable blocks that can be dropped into the tree.
### Regenerating the screenshots

![Elements panel](docs/screenshots/elements-panel.svg)
Start the backend on `:9000` with the sample `db.json` and run `npm run dev`. Then capture the editor at 1440×900 (device scale 2): the overview, the preview scrolled to the first recipe row, both panels expanded, and the **edit** modal of `{{recipeCard}}`. Hide the Next.js dev badge before you capture.

## How it works

Expand Down Expand Up @@ -153,7 +155,7 @@ src/
types/ Shared types
AGENTS.md Guide for AI coding agents
docs/AI_AGENT.md Extended agent reference
docs/screenshots/ UI illustrations used in this README
docs/screenshots/ Screenshots used in this README
.claude/skills/ Claude skills (best practices)
```

Expand Down
Binary file modified docs/screenshots/app-edit-element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/app-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/app-preview-recipes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/app-tree-and-elements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 0 additions & 30 deletions docs/screenshots/editor-overview.svg

This file was deleted.

25 changes: 0 additions & 25 deletions docs/screenshots/elements-panel.svg

This file was deleted.

16 changes: 0 additions & 16 deletions docs/screenshots/template-tree.svg

This file was deleted.

Loading