From 3aaaa68f964d2fac3c8835968708476d2eb9b742 Mon Sep 17 00:00:00 2001 From: systemBlue Date: Tue, 2 Jun 2026 18:53:36 -0400 Subject: [PATCH] fix: show the overview filter summary only when filters are active The Issues and Pull Requests overviews pinned a centered "Open" caption below the title even in the default state, duplicating the filter icon. Show the summary only when a non-default state or involvement scope is selected, so the default view carries no extra chrome and the strip becomes a clear signal that the list is filtered. Co-Authored-By: Claude Opus 4.8 (1M context) --- Forji/Forji/Views/SearchableOverviewView.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Forji/Forji/Views/SearchableOverviewView.swift b/Forji/Forji/Views/SearchableOverviewView.swift index 7f23960..e912f30 100644 --- a/Forji/Forji/Views/SearchableOverviewView.swift +++ b/Forji/Forji/Views/SearchableOverviewView.swift @@ -144,13 +144,15 @@ struct SearchableOverviewView: View { } .listStyle(.insetGrouped) .safeAreaInset(edge: .top) { - Text(filterSummaryText) - .font(.caption) - .foregroundStyle(.secondary) - .frame(maxWidth: .infinity) - .padding(.horizontal) - .padding(.vertical, 6) - .accessibilityIdentifier("filter-summary") + if hasNonDefaultFilters { + Text(filterSummaryText) + .font(.caption) + .foregroundStyle(.secondary) + .frame(maxWidth: .infinity) + .padding(.horizontal) + .padding(.vertical, 6) + .accessibilityIdentifier("filter-summary") + } } }