-
Notifications
You must be signed in to change notification settings - Fork 847
feat(preview-server): templates api integration #2634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 57a631a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 issues found across 15 files
Prompt for AI agents (all 4 issues)
Understand the root cause of the following 4 issues and fix them.
<file name="packages/preview-server/src/components/icons/icon-cloud-alert.tsx">
<violation number="1" location="packages/preview-server/src/components/icons/icon-cloud-alert.tsx:15">
Move the props spread above the stroke defaults so this icon matches the other icons’ override behavior; right now this one uniquely allows consumers to replace the stroke settings.</violation>
</file>
<file name="packages/preview-server/scripts/setup-resend.mts">
<violation number="1" location="packages/preview-server/scripts/setup-resend.mts:18">
Running this script without an argument overwrites an existing RESEND_API_KEY with an empty value, wiping the configured credential. Please guard the update so the existing key is preserved when apiKey is missing.</violation>
</file>
<file name="packages/preview-server/src/components/toolbar/resend.tsx">
<violation number="1" location="packages/preview-server/src/components/toolbar/resend.tsx:132">
`Bulk Upload` only flattens the root directory and its first-level subdirectories, so templates in deeper folders are never exported. Please recurse through nested `subDirectories` before queuing uploads.</violation>
</file>
<file name="packages/preview-server/src/actions/bulk-import-templates.ts">
<violation number="1" location="packages/preview-server/src/actions/bulk-import-templates.ts:23">
Rule violated: **API Key Permission Check SDK Methods**
New usage of `resend.templates.create` introduces a Resend API capability that may require additional template-management permissions. Please confirm that the production RESEND_API_KEY has the necessary scope to create templates so these exports don’t fail after deployment.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
Integrate with Templates API so users can easily turn React Email templates into actual Resend templates
CleanShot.2025-11-03.at.15.10.16.mp4
Summary by cubic
Integrated the Resend Templates API into the preview server with a new Resend tab for single or bulk template uploads. The React Email CLI now passes the API key to the server, and a safe server action creates templates.
New Features
Migration
Written for commit dcd97ea. Summary will update automatically on new commits.