[PR #2538] [MERGED] feat: add admin email domain management and sync job #2376

Closed
opened 2026-02-26 20:33:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2538
Author: @Mythie
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @dguyen

Base: mainHead: exp/wip


📝 Commits (3)

  • 3e9685d feat: add admin email domain management and sync job
  • 67cbcdc docs: add email domain sync and recovery plan
  • 2ed8695 fix: inngest io missing functions from spread

📊 Changes

22 files changed (+1257 additions, -5 deletions)

View changed files

.agents/plans/warm-purple-flower-custom-email-domain-sync-and-recovery.md (+263 -0)
📝 apps/remix/app/routes/_authenticated+/admin+/_layout.tsx (+15 -0)
apps/remix/app/routes/_authenticated+/admin+/email-domains.$id.tsx (+295 -0)
apps/remix/app/routes/_authenticated+/admin+/email-domains._index.tsx (+207 -0)
📝 packages/ee/server-only/lib/create-email-domain.ts (+1 -0)
packages/ee/server-only/lib/reregister-email-domain.ts (+93 -0)
📝 packages/ee/server-only/lib/verify-email-domain.ts (+1 -0)
📝 packages/lib/jobs/client.ts (+2 -0)
📝 packages/lib/jobs/client/inngest.ts (+5 -1)
packages/lib/jobs/definitions/internal/sync-email-domains.handler.ts (+86 -0)
packages/lib/jobs/definitions/internal/sync-email-domains.ts (+30 -0)
📝 packages/lib/types/email-domain.ts (+2 -0)
packages/prisma/migrations/20260224000000_add_email_domain_last_verified_at/migration.sql (+2 -0)
📝 packages/prisma/schema.prisma (+5 -4)
packages/trpc/server/admin-router/find-email-domains.ts (+101 -0)
packages/trpc/server/admin-router/find-email-domains.types.ts (+36 -0)
packages/trpc/server/admin-router/get-email-domain.ts (+42 -0)
packages/trpc/server/admin-router/get-email-domain.types.ts (+30 -0)
packages/trpc/server/admin-router/reregister-email-domain.ts (+22 -0)
packages/trpc/server/admin-router/reregister-email-domain.types.ts (+10 -0)

...and 2 more files

📄 Description

Add admin pages for listing and viewing email domains, with the ability to re-register domains that fall out of sync.

Introduce a periodic sync-email-domains background job that re-verifies domain DNS records and tracks the last verification timestamp via a new lastVerifiedAt column on EmailDomain.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2538 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `exp/wip` --- ### 📝 Commits (3) - [`3e9685d`](https://github.com/documenso/documenso/commit/3e9685d4071a4a10359db7c9fe4f0b802a3460fd) feat: add admin email domain management and sync job - [`67cbcdc`](https://github.com/documenso/documenso/commit/67cbcdcb71261766e48b155c0b70cc5425caf993) docs: add email domain sync and recovery plan - [`2ed8695`](https://github.com/documenso/documenso/commit/2ed869517dff950168ee7fb43bd1b5da7c148379) fix: inngest io missing functions from spread ### 📊 Changes **22 files changed** (+1257 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `.agents/plans/warm-purple-flower-custom-email-domain-sync-and-recovery.md` (+263 -0) 📝 `apps/remix/app/routes/_authenticated+/admin+/_layout.tsx` (+15 -0) ➕ `apps/remix/app/routes/_authenticated+/admin+/email-domains.$id.tsx` (+295 -0) ➕ `apps/remix/app/routes/_authenticated+/admin+/email-domains._index.tsx` (+207 -0) 📝 `packages/ee/server-only/lib/create-email-domain.ts` (+1 -0) ➕ `packages/ee/server-only/lib/reregister-email-domain.ts` (+93 -0) 📝 `packages/ee/server-only/lib/verify-email-domain.ts` (+1 -0) 📝 `packages/lib/jobs/client.ts` (+2 -0) 📝 `packages/lib/jobs/client/inngest.ts` (+5 -1) ➕ `packages/lib/jobs/definitions/internal/sync-email-domains.handler.ts` (+86 -0) ➕ `packages/lib/jobs/definitions/internal/sync-email-domains.ts` (+30 -0) 📝 `packages/lib/types/email-domain.ts` (+2 -0) ➕ `packages/prisma/migrations/20260224000000_add_email_domain_last_verified_at/migration.sql` (+2 -0) 📝 `packages/prisma/schema.prisma` (+5 -4) ➕ `packages/trpc/server/admin-router/find-email-domains.ts` (+101 -0) ➕ `packages/trpc/server/admin-router/find-email-domains.types.ts` (+36 -0) ➕ `packages/trpc/server/admin-router/get-email-domain.ts` (+42 -0) ➕ `packages/trpc/server/admin-router/get-email-domain.types.ts` (+30 -0) ➕ `packages/trpc/server/admin-router/reregister-email-domain.ts` (+22 -0) ➕ `packages/trpc/server/admin-router/reregister-email-domain.types.ts` (+10 -0) _...and 2 more files_ </details> ### 📄 Description Add admin pages for listing and viewing email domains, with the ability to re-register domains that fall out of sync. Introduce a periodic sync-email-domains background job that re-verifies domain DNS records and tracks the last verification timestamp via a new lastVerifiedAt column on EmailDomain. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:33:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2376
No description provided.