From 2bedd0ed7546bfd3fe39a49ca5202041333331d2 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 25 Oct 2025 02:59:03 +0700 Subject: [PATCH] BIMI differenciate declined in summary --- web/src/lib/components/SummaryCard.svelte | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/SummaryCard.svelte b/web/src/lib/components/SummaryCard.svelte index 7c2f2fb..1d2171d 100644 --- a/web/src/lib/components/SummaryCard.svelte +++ b/web/src/lib/components/SummaryCard.svelte @@ -283,24 +283,35 @@ segments.push({ text: "BIMI", highlight: { color: "good", bold: true }, - link: "#dns-bimi" + link: "#dns-bimi", }); - segments.push({ text: " for brand indicator display" }); - } else if (bimiResult && bimiResult.details && bimiResult.details.indexOf("(No BIMI records found)") >= 0) { + if (bimiResult.details && bimiResult.details.indexOf("declined") == 0) { + segments.push({ text: " declined to participate" }); + } else { + segments.push({ text: " for brand indicator display" }); + } + } else if ( + bimiResult && + bimiResult.details && + bimiResult.details.indexOf("(No BIMI records found)") >= 0 + ) { segments.push({ text: ". Your domain has no " }); segments.push({ text: "BIMI record", highlight: { color: "warning", bold: true }, - link: "#dns-bimi" + link: "#dns-bimi", }); segments.push({ text: ", you could " }); - segments.push({ text: "add a record to decline participation", highlight: { bold: true } }); + segments.push({ + text: "add a record to decline participation", + highlight: { bold: true }, + }); } else if (bimiResult || bimiRecord) { segments.push({ text: ". Your domain has " }); segments.push({ text: "BIMI configured with issues", highlight: { color: "warning", bold: true }, - link: "#dns-bimi" + link: "#dns-bimi", }); } }