A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: tracing panel - sort queued cells to bottom (#5458)
Shahmir Varqha2865d81057f2
diff --git a/frontend/src/components/tracing/tracing-spec.ts b/frontend/src/components/tracing/tracing-spec.tsindex 812b123c02..c981fb2139 100644--- a/frontend/src/components/tracing/tracing-spec.ts+++ b/frontend/src/components/tracing/tracing-spec.ts@@ -52,12 +52,12 @@ export function createGanttBaseSpec(},},],- height: { step: chartPosition === "above" ? 21 : 26 },+ height: { step: 23 },encoding: {y: {field: cellNumField,scale: { paddingInner: 0.2 },- sort: { field: startTimestampField },+ sort: { field: "sortPriority" },title: "cell",axis: chartPosition === "sideBySide" ? null : undefined,},@@ -88,7 +88,7 @@ export function createGanttBaseSpec(],size: {value: {- expr: `${REACT_HOVERED_CELLID} == toString(datum.cell) ? 19.5 : 18`,+ expr: `${REACT_HOVERED_CELLID} == toString(datum.${cellField}) ? 19.5 : 18`,},},color: {@@ -100,6 +100,13 @@ export function createGanttBaseSpec(data: {values: chartValues,},+ transform: [+ {+ // Sort queued cells to the bottom+ calculate: `datum.${statusField} === 'queued' ? 9999999999999 : datum.${startTimestampField}`,+ as: "sortPriority",+ },+ ],config: {view: {stroke: "transparent",diff --git a/frontend/src/components/tracing/tracing.tsx b/frontend/src/components/tracing/tracing.tsxindex 83eb880e39..085362c85f 100644--- a/frontend/src/components/tracing/tracing.tsx+++ b/frontend/src/components/tracing/tracing.tsx@@ -76,7 +76,7 @@ export const Tracing: React.FC = () => {<inputtype="checkbox"name="chartPosition"- id="chartPosition"+ data-testid="chartPosition"onClick={toggleChartPosition}defaultChecked={chartPosition === "sideBySide"}className="h-3 cursor-pointer"@@ -203,7 +203,7 @@ const TraceBlockBody: React.FC<{const [hoveredCellId, setHoveredCellId] = useState<CellId | null>();const handleVegaSignal = {- [VEGA_HOVER_SIGNAL]: (name: string, value: unknown) => {+ [VEGA_HOVER_SIGNAL]: (_name: string, value: unknown) => {const signalValue = value as VegaHoverCellSignal;const hoveredCell = signalValue.cell?.[0] as CellId | undefined;setHoveredCellId(hoveredCell ?? null);