Skip to content

Email logs UX (filters, search, drill-down) #44

Closed

Description

@JuansesDev

Problem

The Logs page currently shows a paginated table. To find one email out of thousands you scroll. There is no filter by status, recipient, template, or date range, no search, no detail view.

Proposal

  • Filter chips: status (sent / failed / bounced / suppressed), template, sender (after multi-sender lands), date range
  • Free-text search by recipient or subject
  • Click a row to open a side-panel detail view: full subject, body preview, opened-at, clicked-at timeline, bounce reason if any, raw headers
  • Export current filter to CSV

Backend already has indexes on (project_id, sent_at DESC) and (project_id, status). Add an index on to_email for search.

Acceptance criteria

  • Filters compose (status + date + template all at once)
  • Detail panel shows the full lifecycle of an email log
  • Search is case-insensitive and partial-match
  • CSV export respects the active filter

Activity

  1. added
    enhancement
    roadmap
    on Apr 28, 2026
  2. added a commit that references this issue on May 29, 2026
    efd9d33
  3. JuansesDev commented on May 29, 2026

    @JuansesDev
    MemberAuthor

    Delivered in v0.6.5

    The v0.6.4 release already shipped the filter chips, template filter, date range, free-text search and CSV export (all listed in its changelog entry). This release closes the remaining acceptance criteria.

    Acceptance criteria

    Criterion Status
    Filter chips: status / template / date range ✅ delivered in 0.6.4
    Filter chips: sender (after multi-sender lands) ⏳ deferred — multi-sender doesn't exist yet
    Free-text search by recipient or subject (case-insensitive, partial-match) ✅ delivered in 0.6.4; now backed by pg_trgm gin indexes for performance
    Click row → side-panel detail view ✅ side drawer replaces the in-row expand
    Detail: opened-at / clicked-at timeline ✅ vertical timeline rendering sent → opened → clicked → bounced/failed/suppressed
    Detail: bounce reason ✅ shown in the error panel
    Detail: body preview ❌ deferred — would require storing email content (privacy + storage trade-offs that need a separate discussion)
    Detail: raw headers ❌ deferred — not stored today
    Export current filter to CSV ✅ delivered in 0.6.4
    Filters compose ✅ delivered in 0.6.4

    What this release adds on top

    • New GET /api/v1/projects/{id}/logs/{logId} endpoint returns {log, clicks} — the log row plus every row from email_clicks for it
    • EmailLog response now exposes opened_at and clicked_at so the list view can render compact O/C badges in a new Engagement column without an extra round-trip
    • New side-drawer (LogDetailDrawer.vue) with a vertical timeline, click event list (URL + timestamp + user agent), error/suppression reason panel, and reference IDs
    • Migration 20260528193111_add_email_logs_search_index.sql enables pg_trgm and adds gin indexes on to_email and subject so ILIKE substring searches stay fast on large tables

    Follow-ups (not part of this issue)

    • Body preview / raw headers — requires schema change + privacy review
    • Sender filter — blocked on multi-sender support
    • Search by template name (currently search hits subject and email; template name is a separate filter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxenhancementfrontendroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions