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: Trigger Save layout only on title (#2039)
Chintan Sudanid9535e7a8df6
diff --git a/frontend/src/container/GridGraphLayout/Graph/index.tsx b/frontend/src/container/GridGraphLayout/Graph/index.tsxindex 5a6ab2e947..e9907dcc04 100644--- a/frontend/src/container/GridGraphLayout/Graph/index.tsx+++ b/frontend/src/container/GridGraphLayout/Graph/index.tsx@@ -213,19 +213,29 @@ function GridCardGraph({);};+ const handleOnView = (): void => {+ onToggleModal(setModal);+ };++ const handleOnDelete = (): void => {+ onToggleModal(setDeleteModal);+ };+const isEmptyLayout = widget?.id === 'empty' || isEmpty(widget);if (state.error && !isEmptyLayout) {return (<>{getModals()}- <WidgetHeader- parentHover={hovered}- title={widget?.title}- widget={widget}- onView={(): void => onToggleModal(setModal)}- onDelete={(): void => onToggleModal(setDeleteModal)}- />+ <div className="drag-handle">+ <WidgetHeader+ parentHover={hovered}+ title={widget?.title}+ widget={widget}+ onView={handleOnView}+ onDelete={handleOnDelete}+ />+ </div><ErrorContainer>{state.errorMessage}</ErrorContainer></>@@ -255,13 +265,15 @@ function GridCardGraph({}}>{!isEmptyLayout && (- <WidgetHeader- parentHover={hovered}- title={widget?.title}- widget={widget}- onView={(): void => onToggleModal(setModal)}- onDelete={(): void => onToggleModal(setDeleteModal)}- />+ <div className="drag-handle">+ <WidgetHeader+ parentHover={hovered}+ title={widget?.title}+ widget={widget}+ onView={(): void => onToggleModal(setModal)}+ onDelete={(): void => onToggleModal(setDeleteModal)}+ />+ </div>)}{!isEmptyLayout && getModals()}diff --git a/frontend/src/container/GridGraphLayout/GraphLayout.tsx b/frontend/src/container/GridGraphLayout/GraphLayout.tsxindex dfb0797488..d615fb1a13 100644--- a/frontend/src/container/GridGraphLayout/GraphLayout.tsx+++ b/frontend/src/container/GridGraphLayout/GraphLayout.tsx@@ -72,6 +72,7 @@ function GraphLayout({useCSSTransformsallowOverlap={false}onLayoutChange={onLayoutChangeHandler}+ draggableHandle=".drag-handle">{layouts.map(({ Component, ...rest }) => {const currentWidget = (widgets || [])?.find((e) => e.id === rest.i);