fix(ui): label resolved alerts in the activity feed
This commit is contained in:
1 file changed
+6
@@ -66,6 +66,12 @@ export function describeTimelineEvent(ev: TaskEvent = {}): TimelineLine {
|
||||
detail: [context, text(data.error), text(data.when)].filter(Boolean).join(" · "),
|
||||
};
|
||||
}
|
||||
if (ev.kind === "alert") {
|
||||
return {
|
||||
title: data.state === "resolved" ? "Alert resolved" : "Alert",
|
||||
detail: ev.detail || "",
|
||||
};
|
||||
}
|
||||
if (ev.kind === "task_retried") {
|
||||
const retryCount = Number(data.retry_count);
|
||||
const attempt =
|
||||
|
||||
Reference in new issue
Block a user