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) */}