+ {d.event_type}
+
+
+
+ {statusLabel(d)}
+ {#if d.last_error}— {d.last_error}{/if}
+
+ diff --git a/web/src/lib/components/AlertStatePill.svelte b/web/src/lib/components/AlertStatePill.svelte new file mode 100644 index 0000000..78646e5 --- /dev/null +++ b/web/src/lib/components/AlertStatePill.svelte @@ -0,0 +1,62 @@ + + + + + {state} + + + diff --git a/web/src/lib/components/DeliveryTimeline.svelte b/web/src/lib/components/DeliveryTimeline.svelte new file mode 100644 index 0000000..03454fd --- /dev/null +++ b/web/src/lib/components/DeliveryTimeline.svelte @@ -0,0 +1,126 @@ + + +{#if deliveries.length === 0} +
No deliveries yet.
+{:else} +Error: {error}
{/if} - + New rule - {#if loading} -Loading…
+No alert rules yet.
+| State | Name | Condition | -State | Enabled | -+ | Actions | |
|---|---|---|---|---|---|---|---|
| {r.name} | -{conditionSummary(r)} |
-
- {r.state.state}
-
+ |
+ {r.name} | +{conditionSummary(r)} |
{r.enabled ? 'yes' : 'no'} | -+ |