Monitorex.Components.Live.Helpers
(monitorex v0.3.0)
Copy Markdown
Shared helper functions for LiveView components.
Summary
Functions
Formats a timestamp for display.
Returns:
"-"for nil or unknown format"HH:MM:SS"for valid Unix microsecond timestamps"Xs ago"for timestamps that fail conversion (legacy format fallback)
Returns the CSS class for a status filter chip.
When value matches current, returns an active variant. Otherwise returns
the base class.