From c98efe58d16ff2c87e089ad04399fa4a31c4f8e6 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 14 Apr 2026 23:02:04 -0400 Subject: [PATCH] Pivot: show all row metrics in inspector, highlight clicked cell Always display all non-null metric columns from the clicked row. When a specific cell can be identified (split_by in use, cell mode), highlight that row in blue/bold. Fixes row mode showing only one value. Co-Authored-By: Claude Sonnet 4.6 --- ui/src/pages/Pivot.jsx | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/ui/src/pages/Pivot.jsx b/ui/src/pages/Pivot.jsx index c69eb6c..7fed506 100644 --- a/ui/src/pages/Pivot.jsx +++ b/ui/src/pages/Pivot.jsx @@ -254,24 +254,18 @@ export default function Pivot({ source }) { {cellCoords.join(' › ')} )} - {/* Specific cell value if we can identify it, otherwise all non-null metrics */} - {cellKey != null ? ( - cellValue != null && ( -
- {metrics.join(', ')} - {formatVal(cellValue)} -
- ) - ) : ( - Object.entries(clickDetail.row) - .filter(([k, v]) => k !== '__ROW_PATH__' && v != null) - .map(([k, v]) => ( -
- {k} - {formatVal(v)} + {/* All non-null metrics for the row; highlight the specific clicked cell if known */} + {Object.entries(clickDetail.row) + .filter(([k, v]) => k !== '__ROW_PATH__' && v != null) + .map(([k, v]) => { + const isSelected = cellKey != null && k === cellKey + return ( +
+ {k} + {formatVal(v)}
- )) - )} + ) + })}
{/* User-set filters (exclude cell-coordinate filters) */}