Shared design-system components for SquatchMail dashboard pages: badges,
stat cards, the live indicator, and empty states. Every visual rule here
traces back to a rule in DESIGN.md — see that file before changing colors,
radii, or copy.
Summary
Functions
A big-footprint empty state with field-journal copy, per DESIGN.md.
The pulsing "TRACKING LIVE" indicator shown in page headers.
One compact "Field Report" stat card: a mono label, a mono number, and an optional delta vs. the prior period.
The five-card "Field Report" stat strip: Sightings (sent), Delivery rate, Open rate, Click rate, Bounce rate.
A status badge. One CSS class per status per DESIGN.md — never color alone conveys status; the text label is always rendered.
Functions
A big-footprint empty state with field-journal copy, per DESIGN.md.
Attributes
title(:string) (required)copy(:string) (required)
The pulsing "TRACKING LIVE" indicator shown in page headers.
One compact "Field Report" stat card: a mono label, a mono number, and an optional delta vs. the prior period.
Attributes
label(:string) (required)value(:string) (required)delta(:string) - Defaults tonil.delta_direction(:atom) - Defaults tonil.Must be one ofnil,:up, or:down.
The five-card "Field Report" stat strip: Sightings (sent), Delivery rate, Open rate, Click rate, Bounce rate.
Attributes
sightings(:string) (required)delivery_rate(:string) (required)open_rate(:string) (required)click_rate(:string) (required)bounce_rate(:string) (required)
A status badge. One CSS class per status per DESIGN.md — never color alone conveys status; the text label is always rendered.
Attributes
status(:string) (required)