Skip to content

feat(integration): add email channel integration#337

Merged
realcodesiman merged 4 commits into
mainfrom
feat/integration-email
Apr 13, 2026
Merged

feat(integration): add email channel integration#337
realcodesiman merged 4 commits into
mainfrom
feat/integration-email

Conversation

@realcodesiman
Copy link
Copy Markdown
Contributor

@realcodesiman realcodesiman commented Apr 11, 2026

Summary

  • Add new IntegrationEmail channel with SMTP settings (provider: gmail/outlook/other, host, port, username, password, fromAddress)
  • Full-stack scaffolding: integration package (integrations/email/), database schema + relations, builder feature (CRUD actions, manage table UI, create form, settings parallel route), and worker registration
  • Add email to channelTypes and integrationTypes Zod enums, update all Record<ChannelType, ...> usages
  • Update integration-channel SKILL.md with comprehensive step-by-step creation guide, post-creation verification checklist, and common build error reference table

Changes

New files

  • integrations/email/ — integration package (schema, handlers, integration definition)
  • packages/database/src/schema/integration-email.ts — DB table definition
  • packages/database/src/relations/integration-email.ts — Drizzle relations
  • apps/builder/src/features/integration-email/ — builder feature (actions, queries, schemas, components, manage page)
  • apps/builder/src/app/space/[workspaceId]/(settings)/settings/channels/@email/page.tsx — settings parallel route

Modified files

  • packages/database/src/partials/channel.ts — add email to enum
  • packages/database/src/partials/integration.ts — add email to enum
  • packages/database/src/schema/index.ts — export new schema
  • packages/database/src/relations/index.ts — import + spread new relations
  • packages/database/src/types.ts — add IntegrationEmailModel type
  • apps/builder/src/integration.ts — register email integration
  • apps/worker/src/services/integrations.ts — register email integration
  • apps/builder/package.json + apps/worker/package.json — add workspace dependency
  • apps/builder/.../channels/layout.tsx — add email parallel route slot
  • apps/builder/.../inbox-icon.tsx — add MailIcon for email channel
  • apps/builder/.../inbox-card-list.tsx — add email entry to cardConfigs
  • .agents/skills/integration-channel/SKILL.md — comprehensive rewrite

Test plan

  • Run pnpm turbo build — verified passing
  • Verify email channel appears in Settings > Channels accordion
  • Test create email integration flow via the form
  • Test delete email integration via disconnect button
  • Verify InboxIcon renders correctly for email channel

Made with Cursor

Add a new IntegrationEmail channel with SMTP settings (provider, host, port,
username, password, fromAddress). Includes full-stack scaffolding: integration
package, database schema/relations, builder feature (CRUD actions, manage UI,
settings page), and worker registration.

Also updates the integration-channel SKILL.md with comprehensive post-creation
verification checklist and common build error reference.

Made-with: Cursor
@realcodesiman realcodesiman merged commit 715576f into main Apr 13, 2026
5 checks passed
@realcodesiman realcodesiman deleted the feat/integration-email branch April 13, 2026 02:52
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