PhoenixKitWeb.Components.Core.EmailActivityBadges (phoenix_kit v1.6.16)
View SourceProvides 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
Renders chronological activity badges for an email log.
Functions
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)