From 4e901b93174fc2d9f12b8c0fbce9e5c5d7034920 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:30:31 +0200 Subject: [PATCH] Chore: Add boundaryNames to ErrorBoundaries (#112329) Add boundaryNames to ErrorBoundaries --- public/app/AppWrapper.tsx | 2 +- .../core/components/AppChrome/AppChrome.tsx | 2 +- public/app/core/navigation/GrafanaRoute.tsx | 2 +- public/app/features/explore/Explore.tsx | 52 +++++++++++++++---- public/app/features/explore/ExplorePage.tsx | 2 +- .../panel/components/PanelRenderer.tsx | 2 +- .../query/components/QueryEditorRow.tsx | 2 +- .../scopes/selector/ScopesSelector.tsx | 2 +- 8 files changed, 48 insertions(+), 18 deletions(-) diff --git a/public/app/AppWrapper.tsx b/public/app/AppWrapper.tsx index 5c173604fb5..d1c4eaf0db3 100644 --- a/public/app/AppWrapper.tsx +++ b/public/app/AppWrapper.tsx @@ -108,7 +108,7 @@ export class AppWrapper extends Component { return ( - + diff --git a/public/app/core/components/AppChrome/AppChrome.tsx b/public/app/core/components/AppChrome/AppChrome.tsx index 923ae866c6d..568fb3fcf3e 100644 --- a/public/app/core/components/AppChrome/AppChrome.tsx +++ b/public/app/core/components/AppChrome/AppChrome.tsx @@ -122,7 +122,7 @@ export function AppChrome({ children }: Props) { [styles.scopesDashboardsContainerDocked]: menuDockedAndOpen, })} > - + diff --git a/public/app/core/navigation/GrafanaRoute.tsx b/public/app/core/navigation/GrafanaRoute.tsx index 10cef729d3f..e17a3bf6a4a 100644 --- a/public/app/core/navigation/GrafanaRoute.tsx +++ b/public/app/core/navigation/GrafanaRoute.tsx @@ -45,7 +45,7 @@ export function GrafanaRoute(props: Props) { navigationLogger('GrafanaRoute', false, 'Rendered', props.route); return ( - + {({ error, errorInfo }) => { if (error) { return ; diff --git a/public/app/features/explore/Explore.tsx b/public/app/features/explore/Explore.tsx index 07a02cc17ae..5673fdbbbb9 100644 --- a/public/app/features/explore/Explore.tsx +++ b/public/app/features/explore/Explore.tsx @@ -707,29 +707,59 @@ export class Explore extends PureComponent { return (
- + {showPanels && ( <> {showMetrics && graphResult && ( - {this.renderGraphPanel(width)} + + {this.renderGraphPanel(width)} + )} {showRawPrometheus && ( - {this.renderRawPrometheus(width)} + + {this.renderRawPrometheus(width)} + + )} + {showTable && ( + + {this.renderTablePanel(width)} + + )} + {showLogs && ( + + {this.renderLogsPanel(width)} + )} - {showTable && {this.renderTablePanel(width)}} - {showLogs && {this.renderLogsPanel(width)}} {showNodeGraph && ( - {this.renderNodeGraphPanel()} + + {this.renderNodeGraphPanel()} + )} {showFlameGraph && ( - {this.renderFlameGraphPanel()} + + {this.renderFlameGraphPanel()} + + )} + {showTrace && ( + + {this.renderTraceViewPanel()} + )} - {showTrace && {this.renderTraceViewPanel()}} {showLogsSample && ( - {this.renderLogsSamplePanel()} + + {this.renderLogsSamplePanel()} + + )} + {showCustom && ( + + {this.renderCustom(width)} + + )} + {showNoData && ( + + {this.renderNoData()} + )} - {showCustom && {this.renderCustom(width)}} - {showNoData && {this.renderNoData()}} )} diff --git a/public/app/features/explore/ExplorePage.tsx b/public/app/features/explore/ExplorePage.tsx index fde3f9dca58..ed3c0de6d3b 100644 --- a/public/app/features/explore/ExplorePage.tsx +++ b/public/app/features/explore/ExplorePage.tsx @@ -86,7 +86,7 @@ function ExplorePageContent(props: GrafanaRouteComponentProps<{}, ExploreQueryPa > {panes.map(([exploreId, pane]) => { return ( - + {pane.initialized ? ( ) : ( diff --git a/public/app/features/panel/components/PanelRenderer.tsx b/public/app/features/panel/components/PanelRenderer.tsx index fb99e39041a..028b6533880 100644 --- a/public/app/features/panel/components/PanelRenderer.tsx +++ b/public/app/features/panel/components/PanelRenderer.tsx @@ -92,7 +92,7 @@ export function PanelRenderer

(prop const PanelComponent = plugin.panel; return ( - + extends PureComponent

- + {showingHelp && DatasourceCheatsheet && ( { {opened && ( - + {({ error, errorInfo }) => { if (error) { return (