feat(awooop): show source ref gap prefixes
This commit is contained in:
@@ -2835,6 +2835,7 @@
|
||||
"outbound": "Outbound mirror",
|
||||
"outboundDetail": "source_refs {sourceRefs}; incident refs {incidentRefs}; coverage {coverage}",
|
||||
"outboundReplyMarkupDetail": "reply_markup {replyMarkup}; button missing incident refs {missingIncidentRefs}",
|
||||
"outboundReplyMarkupTopPrefixes": "Gap top prefixes: {prefixes}",
|
||||
"callbacks": "Callback replies",
|
||||
"callbackDetail": "detail {detail} / history {history}; incidents {incidents}",
|
||||
"snapshots": "Evidence snapshots",
|
||||
|
||||
@@ -2836,6 +2836,7 @@
|
||||
"outbound": "出站鏡像",
|
||||
"outboundDetail": "source_refs {sourceRefs};incident refs {incidentRefs};覆蓋 {coverage}",
|
||||
"outboundReplyMarkupDetail": "reply_markup {replyMarkup};按鈕缺 incident refs {missingIncidentRefs}",
|
||||
"outboundReplyMarkupTopPrefixes": "缺口 top prefixes:{prefixes}",
|
||||
"callbacks": "Callback replies",
|
||||
"callbackDetail": "detail {detail} / history {history};Incident {incidents}",
|
||||
"snapshots": "Evidence snapshots",
|
||||
|
||||
@@ -147,6 +147,10 @@ interface CallbackReplyAuditSummary {
|
||||
outbound_incident_ref_total?: number;
|
||||
outbound_reply_markup_total?: number;
|
||||
outbound_reply_markup_missing_incident_ref_total?: number;
|
||||
outbound_reply_markup_missing_incident_ref_top_prefixes?: Array<{
|
||||
prefix?: string | null;
|
||||
total?: number | null;
|
||||
}>;
|
||||
outbound_failed_total?: number;
|
||||
callback_total?: number;
|
||||
callback_sent_total?: number;
|
||||
@@ -1976,6 +1980,12 @@ function CallbackReplyAuditSummaryPanel({
|
||||
summary.outbound_incident_ref_total ?? 0,
|
||||
outboundTotal
|
||||
);
|
||||
const topMissingPrefixes = (
|
||||
summary.outbound_reply_markup_missing_incident_ref_top_prefixes ?? []
|
||||
)
|
||||
.slice(0, 3)
|
||||
.map((item) => `${item.prefix || "--"} ${item.total ?? 0}`)
|
||||
.join(" / ") || "--";
|
||||
const snapshotCoverage = formatCoveragePercent(
|
||||
summary.callback_snapshot_captured_total ?? 0,
|
||||
callbackTotal
|
||||
@@ -2017,6 +2027,11 @@ function CallbackReplyAuditSummaryPanel({
|
||||
summary.outbound_reply_markup_missing_incident_ref_total ?? 0,
|
||||
})}
|
||||
</p>
|
||||
<p className="mt-1 text-xs leading-5 text-[#5f5b52]">
|
||||
{t("outboundReplyMarkupTopPrefixes", {
|
||||
prefixes: topMissingPrefixes,
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
<div className="bg-white px-4 py-3">
|
||||
<p className="text-xs font-semibold text-[#77736a]">{t("callbacks")}</p>
|
||||
|
||||
Reference in New Issue
Block a user