From 3f0b7746b1bee4c2f626eb805e3fd13c5f2f5d22 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 24 Apr 2026 15:04:54 -0500 Subject: DomainDig v3.8.0 — Smart Monitoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Stable domain intervals * Frequent changes decrease intervals * Duplicate states do not trigger alerts * Quiet hours suppress alerts * Quiet hours across midnight work correctly * Sensitivity levels alter behavior as expected --- DomainDig/BatchResultsView.swift | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'DomainDig/BatchResultsView.swift') diff --git a/DomainDig/BatchResultsView.swift b/DomainDig/BatchResultsView.swift index c8dde42..e97899e 100644 --- a/DomainDig/BatchResultsView.swift +++ b/DomainDig/BatchResultsView.swift @@ -72,12 +72,25 @@ struct BatchResultRowView: View { } HStack(spacing: 10) { - AppStatusBadgeView(model: AppStatusFactory.availability(result.availability)) + AppStatusBadgeView(model: availabilityBadgeModel) if let riskScore = result.riskScore, let riskLevel = result.riskLevel { Text("Risk \(riskScore) \(riskLevel.title)") + .lineLimit(1) + .minimumScaleFactor(0.85) } + } + .font(appDensity.font(.caption2)) + .foregroundStyle(.secondary) + + HStack(spacing: 10) { Text(result.primaryIP ?? "No IP") + .lineLimit(1) + .truncationMode(.middle) + + Spacer(minLength: 8) + Text(result.timestamp.formatted(date: .abbreviated, time: .shortened)) + .lineLimit(1) } .font(appDensity.font(.caption2)) .foregroundStyle(.secondary) @@ -116,6 +129,19 @@ struct BatchResultRowView: View { } } + private var availabilityBadgeModel: AppStatusBadgeModel { + guard result.status == .failed else { + return AppStatusFactory.availability(result.availability) + } + + return .init( + title: availabilityText, + systemImage: "exclamationmark.circle", + foregroundColor: .secondary, + backgroundColor: Color(.systemGray5).opacity(0.55) + ) + } + private var quickStatusBadge: AppStatusBadgeModel { switch result.status { case .pending: -- cgit v1.2.3