Search documentation of phoenix_kit

# PhoenixKitWeb.Components.Core.EmailActivityBadges (phoenix_kit v1.6.19)

View Source

Provides email activity badges component for chronological event display.

Renders timeline of email events as compact badges with smart date formatting. Shows date only when it changes between events, otherwise shows time only.

Supported events: queued, send, delivery, open, click, bounce (hard/soft), rejected, delivery_delay, subscription, complaint, rendering_failure, failed.

# Summary

## Functions

email_activity_badges(assigns)

Renders chronological activity badges for an email log.

# Functions

# email_activity_badges(assigns)

Renders chronological activity badges for an email log.

Each badge shows an event with smart date/time formatting:

- First event: shows date + time (e.g., "04.11 09:15")
- Subsequent events on same day: shows time only (e.g., "09:20")
- Events on different day: shows date + time again

## Attributes

- `log` - Email log struct with status and timestamp fields (required)

## Examples

    <.email_activity_badges log={@email_log} />

    <%!-- Renders badges like: --%>
    <%!-- [queued: 04.11 09:15] [sent: 09:16] [delivered: 09:18] --%>

## Attributes

- `log` (`:map`) (required)