module Web.View.Hubs.HubHealthHistory where import Web.Types import Generated.Types import IHP.Prelude import IHP.ViewPrelude import Application.Helper.HubHealth (healthScoreBadge) data HubHealthHistoryView = HubHealthHistoryView { hub :: !Hub , snapshots :: ![HubHealthSnapshot] } instance View HubHealthHistoryView where html HubHealthHistoryView { .. } = [hsx|
{hub.name}
No snapshots yet. Take the first one.
|] (latest : _) -> [hsx|Current Health Score
healthScoreBadge latest.healthScore}> {show latest.healthScore}| Score | Open Cand. | Regressed | Stale Dec. | Bottlenecks | Taken At |
|---|