Skip to content

Add saved templates library with iframe thumbnail previews - #6

Merged
sagnik11 merged 1 commit into
mainfrom
feat/build-saved-templates-library-with-thumbnails
May 4, 2026
Merged

Add saved templates library with iframe thumbnail previews#6
sagnik11 merged 1 commit into
mainfrom
feat/build-saved-templates-library-with-thumbnails

Conversation

@sagnik11

@sagnik11 sagnik11 commented May 4, 2026

Copy link
Copy Markdown
Member

TL;DR

Implements a saved templates library feature allowing users to save campaigns as reusable templates, browse them with live thumbnail previews, and start new campaigns from any template. Updates documentation and marks the feature as complete in the roadmap.

What changed?

  • Documentation updates:

    • Added saved templates library feature to CHANGELOG.md
    • Added feature description to README.md highlighting template saving, browsing with thumbnails, and campaign creation from templates
    • Marked "Saved templates library" as completed in ROADMAP.md
  • Editor UI enhancements:

    • Added "Save as Template" button to campaign editor toolbar
    • Implemented save template dialog with fields for template name and optional description
    • Added state management for template saving flow (dialog open/close, form inputs, loading state)
  • Template saving logic:

    • Implemented handleSaveAsTemplate() function that:
      • Validates template name is provided
      • Saves current draft before creating template snapshot
      • Makes POST request to /api/internal/campaigns/{campaignId}/save-as-template
      • Shows success/error toast notifications
    • Snapshots current subject, sender info, and email content into the template

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: ab97aa97-9a0e-45d7-940f-4f98a170b51b
@sagnik11
sagnik11 merged commit 89c6b41 into main May 4, 2026
1 of 2 checks passed
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.

1 participant