SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: clone panel randomly jumping around in the middle causing layout issues (#5161)
Vikrant Guptaa17928df8852
diff --git a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsxindex 99c32731cc..d0e16857be 100644--- a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx+++ b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx@@ -131,15 +131,22 @@ function WidgetGraphComponent({const uuid = v4();+ // this is added to make sure the cloned panel is of the same dimensions as the original one+ const originalPanelLayout = selectedDashboard.data.layout?.find(+ (l) => l.i === widget.id,+ );++ // added the cloned panel on the top as it is given most priority when arranging+ // in the layout. React_grid_layout assigns priority from top, hence no random position for cloned panelconst layout = [- ...(selectedDashboard.data.layout || []),{i: uuid,- w: 6,+ w: originalPanelLayout?.w || 6,x: 0,- h: 6,+ h: originalPanelLayout?.h || 6,y: 0,},+ ...(selectedDashboard.data.layout || []),];updateDashboardMutation.mutateAsync(