fix(alerts): clarify execution result verdict
This commit is contained in:
@@ -26,6 +26,15 @@ export interface AwoooPStatusChain {
|
||||
human_action_required?: boolean | null;
|
||||
human_action_reason?: string | null;
|
||||
next_action?: string | null;
|
||||
execution_result?: {
|
||||
approval_status?: string | null;
|
||||
completion_status?: string | null;
|
||||
command_status?: string | null;
|
||||
repair_status?: string | null;
|
||||
failure_status?: string | null;
|
||||
terminal?: boolean | null;
|
||||
summary_zh?: string | null;
|
||||
};
|
||||
notification?: {
|
||||
mode?: string | null;
|
||||
channels?: string[];
|
||||
@@ -228,6 +237,7 @@ export function AwoooPStatusChainPanel({
|
||||
const emptyLabel = t("emptyValue");
|
||||
const evidence = chain?.evidence ?? {};
|
||||
const outcome = chain?.operator_outcome;
|
||||
const outcomeExecution = outcome?.execution_result;
|
||||
const blockers = chain?.blockers ?? [];
|
||||
const sourceCorrelation = chain?.source_refs?.correlation;
|
||||
|
||||
@@ -599,13 +609,27 @@ export function AwoooPStatusChainPanel({
|
||||
</div>
|
||||
|
||||
{outcome && (
|
||||
<div className="grid gap-px bg-[#e0ddd4] md:grid-cols-4">
|
||||
<div className="grid gap-px bg-[#e0ddd4] md:grid-cols-5">
|
||||
<div className="min-w-0 bg-white px-4 py-3 md:col-span-2">
|
||||
<p className="text-xs font-semibold text-[#77736a]">{t("outcome.summary")}</p>
|
||||
<p className="mt-2 truncate text-sm font-semibold text-[#141413]" title={valueOrEmpty(outcome.summary_zh, emptyLabel)}>
|
||||
{valueOrEmpty(outcome.summary_zh, emptyLabel)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="min-w-0 bg-white px-4 py-3">
|
||||
<p className="text-xs font-semibold text-[#77736a]">{t("outcome.execution")}</p>
|
||||
<p
|
||||
className="mt-2 truncate font-mono text-sm text-[#141413]"
|
||||
title={valueOrEmpty(outcomeExecution?.summary_zh, emptyLabel)}
|
||||
>
|
||||
{valueOrEmpty(outcomeExecution?.completion_status, emptyLabel)}
|
||||
</p>
|
||||
<p className="mt-1 truncate font-mono text-xs text-[#77736a]">
|
||||
{valueOrEmpty(outcomeExecution?.command_status, emptyLabel)}
|
||||
{" / "}
|
||||
{valueOrEmpty(outcomeExecution?.repair_status, emptyLabel)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="min-w-0 bg-white px-4 py-3">
|
||||
<p className="text-xs font-semibold text-[#77736a]">{t("outcome.notification")}</p>
|
||||
<p className="mt-2 truncate font-mono text-sm text-[#141413]" title={(outcome.notification?.channels ?? []).join(", ") || emptyLabel}>
|
||||
|
||||
Reference in New Issue
Block a user