Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(ui): clarify performance filter counts (#2044)
Aman0b36927b8a35
diff --git a/packages/ui/__tests__/health/performance-view.test.tsx b/packages/ui/__tests__/health/performance-view.test.tsxindex 02e8bb417..c9eb1b14f 100644--- a/packages/ui/__tests__/health/performance-view.test.tsx+++ b/packages/ui/__tests__/health/performance-view.test.tsx@@ -68,7 +68,7 @@ describe("PerformanceView queue", () => {render(<PerformanceView adapter={adapter()} />);await rows();expect(screen.queryByLabelText("Evidence confidence")).toBeNull();- expect(screen.getByText("on all 7")).toBeTruthy();+ expect(screen.getByText("on 7 matching")).toBeTruthy();});it("states the rendered scope, the filtered total, and the repository total", async () => {diff --git a/packages/ui/src/health/performance/filters.tsx b/packages/ui/src/health/performance/filters.tsxindex c2a391c72..48a6c92c9 100644--- a/packages/ui/src/health/performance/filters.tsx+++ b/packages/ui/src/health/performance/filters.tsx@@ -106,7 +106,7 @@ function SingleValueFact({ facet, only }: { facet: PerformanceFacetKey; only: Pe<span className="text-[var(--color-text-secondary)]">{facetValueLabel(facet, only.value)}</span>{" "}- <span className="tabular-nums">on all {only.total.toLocaleString()}</span>+ <span className="tabular-nums">on {only.total.toLocaleString()} matching</span></p>);}@@ -212,4 +212,3 @@ export function ContextHint({ context }: { context: PerformanceContextFilter })</p>);}-diff --git a/packages/ui/src/health/performance/states.tsx b/packages/ui/src/health/performance/states.tsxindex fc0473132..41759ae60 100644--- a/packages/ui/src/health/performance/states.tsx+++ b/packages/ui/src/health/performance/states.tsx@@ -76,8 +76,8 @@ export function FilteredEmpty({ onClear }: { onClear: () => void }) {No opportunities match these filters</h3><p className="mx-auto mt-2 max-w-[60ch] text-sm text-[var(--color-text-tertiary)]">- The counts beside each filter come from the whole repository, so a combination can still- be empty.+ The counts beside each filter already account for the other active filters. This+ combination may come from a restored view state that no longer matches the index.</p><buttontype="button"