From 137365b50186d36361adb4a2af2038c9b1e6f489 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Fri, 21 Aug 2026 19:15:46 +0530 Subject: [PATCH] feat(reports): request full breakdown for active dim via wildcard When the active bar dimension's own filter is unselected, the viewer sends payee=*/tags=* so bars show the whole distribution; explicit selections still slice normally. --- src/Reports/ReportViewer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Reports/ReportViewer.tsx b/src/Reports/ReportViewer.tsx index ed165f5..ad151f2 100644 --- a/src/Reports/ReportViewer.tsx +++ b/src/Reports/ReportViewer.tsx @@ -93,10 +93,14 @@ export function ReportViewer({ id, version, fields, onClose, onRegenerated }: Re const p: Record = { flow }; if (granularity) p.granularity = [granularity]; if (selectedPeriods.length) p.period_ids = selectedPeriods; + // The active breakdown dim requests every cube value ("*") when its own + // filter is unselected, so bars show the full distribution. if (selectedPayees.length) p.payee = selectedPayees; + else if (dim === "payee") p.payee = ["*"]; if (selectedTags.length) p.tags = selectedTags; + else if (dim === "tag") p.tags = ["*"]; return p; - }, [granularity, flow, selectedPeriods, selectedPayees, selectedTags]); + }, [granularity, flow, dim, selectedPeriods, selectedPayees, selectedTags]); useEffect(() => { let mounted = true;