Skip to content

Add email suppression list management UI with webhook integration - #2

Merged
sagnik11 merged 1 commit into
mainfrom
feat/email-suppression-list-management
May 3, 2026
Merged

Add email suppression list management UI with webhook integration#2
sagnik11 merged 1 commit into
mainfrom
feat/email-suppression-list-management

Conversation

@sagnik11

@sagnik11 sagnik11 commented May 2, 2026

Copy link
Copy Markdown
Member

TL;DR

Introduces a comprehensive email suppression system with a management dashboard, allowing users to view, search, add, and remove suppressed email addresses. Suppression records are auto-populated from bounces, complaints, and unsubscribes, with support for CSV imports and manual entries.

What changed?

  • New Suppressions Page (app/(dashboard)/settings/suppressions/page.tsx): Full-featured client component with:

    • Paginated table displaying suppressed emails with reason badges (bounce, complaint, unsubscribe, manual, imported)
    • Search functionality to filter suppressions by email address
    • "Add Email" dialog for manually suppressing email addresses
    • Delete functionality to remove suppressions
    • Loading states with skeleton components
    • Toast notifications for user feedback
    • Dark mode support with themed badge colors
  • Suppression Management Features:

    • Five suppression reasons with distinct visual styling
    • Pagination with configurable page size (50 items per page)
    • API integration with /api/internal/suppressions endpoints (GET, POST, DELETE)
    • CSV import link to upload batch suppressions
    • Displays creation timestamps formatted with date-fns
  • UI Components: Leverages existing design system (Table, Button, Input, Dialog, Select, Badge, Skeleton, useToast)


Created with PostHog Code

…ntegration

Generated-By: PostHog Code
Task-Id: e304bb29-cdc5-416d-a0f6-01fa75629e4c
@sagnik11
sagnik11 merged commit 26690e2 into main May 3, 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