diff options
Diffstat (limited to 'DomainDig/WorkflowsView.swift')
| -rw-r--r-- | DomainDig/WorkflowsView.swift | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/DomainDig/WorkflowsView.swift b/DomainDig/WorkflowsView.swift index ba88487..b870409 100644 --- a/DomainDig/WorkflowsView.swift +++ b/DomainDig/WorkflowsView.swift @@ -215,6 +215,11 @@ struct WorkflowDetailView: View { statRow(label: "Changed", value: "\(latestSummary.changedDomains)") statRow(label: "Warnings", value: "\(latestSummary.warningDomains)") statRow(label: "Unchanged", value: "\(latestSummary.unchangedDomains)") + if !latestSummary.workflowInsights.isEmpty { + Text(latestSummary.workflowInsights[0].description) + .font(appDensity.font(.caption)) + .foregroundStyle(.secondary) + } Button { viewModel.latestWorkflowRunSummary = latestSummary @@ -431,6 +436,21 @@ struct WorkflowRunSummaryView: View { Toggle("Show unchanged domains", isOn: $showAllResults) } + if !summary.workflowInsights.isEmpty { + Section("Workflow Insights") { + ForEach(summary.workflowInsights) { insight in + VStack(alignment: .leading, spacing: 4) { + Text(insight.description) + .font(.system(.callout, design: .monospaced)) + .foregroundStyle(.primary) + Text(insight.domainsInvolved.joined(separator: ", ")) + .font(.system(.caption, design: .monospaced)) + .foregroundStyle(.secondary) + } + } + } + } + Section(visibleResults.isEmpty ? "Meaningful Changes" : "Results") { if visibleResults.isEmpty { Text("No domains with meaningful changes or warnings") |
