From d912dbfc8f2008ea25319d46eca6943867e4fe87 Mon Sep 17 00:00:00 2001 From: Alex Spencer <52186778+alexjonspencer1@users.noreply.github.com> Date: Mon, 17 Nov 2025 13:55:11 -0800 Subject: [PATCH] chore: some refactor + cleanup --- .../QueryOperationRow/QueryOperationRow.tsx | 8 +- .../QueryOperationRowHeader.tsx | 8 +- .../PanelDataPane/PanelDataQueriesTab.tsx | 88 ++++++++------- .../query/components/QueryEditorRow.tsx | 104 +++++++++--------- .../query/components/QueryEditorRows.tsx | 9 +- 5 files changed, 112 insertions(+), 105 deletions(-) diff --git a/public/app/core/components/QueryOperationRow/QueryOperationRow.tsx b/public/app/core/components/QueryOperationRow/QueryOperationRow.tsx index 83c38c9a0bc..5d6b3edb8d3 100644 --- a/public/app/core/components/QueryOperationRow/QueryOperationRow.tsx +++ b/public/app/core/components/QueryOperationRow/QueryOperationRow.tsx @@ -24,7 +24,7 @@ export interface QueryOperationRowProps { collapsable?: boolean; disabled?: boolean; expanderMessages?: ExpanderMessages; - isFocused?: boolean; + highlight?: boolean; } export type QueryOperationRowRenderProp = ((props: QueryOperationRowRenderProps) => React.ReactNode) | React.ReactNode; @@ -49,7 +49,7 @@ export function QueryOperationRow({ index, id, expanderMessages, - isFocused = false, + highlight = false, }: QueryOperationRowProps) { const [isContentVisible, setIsContentVisible] = useState(isOpen !== undefined ? isOpen : true); const styles = useStyles2(getQueryOperationRowStyles); @@ -129,7 +129,7 @@ export function QueryOperationRow({ reportDragMousePosition={reportDragMousePosition} title={title} expanderMessages={expanderMessages} - isFocused={isFocused} + highlight={highlight} /> {isContentVisible &&