Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions ui/packages/@quent/components/src/dag/DataFlowMatrix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ export const DataFlowMatrix = ({
<table className="mt-1 text-xs min-w-full border-separate border-spacing-0 whitespace-nowrap">
<thead>
<tr>
<th
scope="col"
className="text-left font-normal text-muted-foreground pr-2"
>
<th scope="col" className="text-left font-normal text-muted-foreground pr-2">
State / {meta.decl.dimension_name}
</th>
{dimensionColumns.map(({ key: k }) => (
Expand All @@ -92,10 +89,7 @@ export const DataFlowMatrix = ({
</span>
</th>
))}
<th
scope="col"
className="text-right font-medium text-muted-foreground pl-1.5"
>
<th scope="col" className="text-right font-medium text-muted-foreground pl-1.5">
Total
</th>
</tr>
Expand All @@ -110,10 +104,7 @@ export const DataFlowMatrix = ({
</span>
</th>
{dimensionColumns.map(({ key: k, index: dimensionIndex }) => (
<td
key={k.key}
className="text-right px-1.5 text-muted-foreground"
>
<td key={k.key} className="text-right px-1.5 text-muted-foreground">
<DataText>
{fmt(operatorFrame.matrix[stateIndex]?.[dimensionIndex] ?? 0)}
</DataText>
Expand Down
16 changes: 13 additions & 3 deletions ui/packages/@quent/components/src/query-plan/NodeFlowBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,16 @@ export const NodeFlowBar = memo(
: '';

return (
<div className="w-full" style={{ marginTop: FLOW_BAR_TOP_MARGIN }} data-testid="node-flow-bar">
<div
className="w-full"
style={{ marginTop: FLOW_BAR_TOP_MARGIN }}
data-testid="node-flow-bar"
>
<div
className={cn('w-full overflow-hidden rounded-sm', hasData ? 'bg-muted/40' : 'bg-transparent')}
className={cn(
'w-full overflow-hidden rounded-sm',
hasData ? 'bg-muted/40' : 'bg-transparent'
)}
style={{ height: FLOW_BAR_TRACK_HEIGHT }}
>
<div className="flex h-full" style={{ width: filledWidth, transition: BAR_TRANSITION }}>
Expand Down Expand Up @@ -135,7 +142,10 @@ export const NodeFlowBar = memo(
</div>
</div>
<div
className={cn('w-full overflow-hidden rounded-sm', hasData ? 'bg-muted/40' : 'bg-transparent')}
className={cn(
'w-full overflow-hidden rounded-sm',
hasData ? 'bg-muted/40' : 'bg-transparent'
)}
style={{ marginTop: FLOW_BAR_TRACK_GAP, height: FLOW_BAR_TRACK_HEIGHT }}
>
<div className="flex h-full" style={{ width: filledWidth, transition: BAR_TRANSITION }}>
Expand Down