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: added fix for panel rerenders on interaction (#9855)
Abhi kumar0e6bd90fdf11
diff --git a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsxindex 88e1c62d92..c93a4f7e9d 100644--- a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx+++ b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx@@ -67,7 +67,6 @@ function WidgetGraphComponent({}: WidgetGraphComponentProps): JSX.Element {const { safeNavigate } = useSafeNavigate();const [deleteModal, setDeleteModal] = useState(false);- const [hovered, setHovered] = useState(false);const { notifications } = useNotifications();const { pathname, search } = useLocation();@@ -316,18 +315,6 @@ function WidgetGraphComponent({style={{height: '100%',}}- onMouseOver={(): void => {- setHovered(true);- }}- onFocus={(): void => {- setHovered(true);- }}- onMouseOut={(): void => {- setHovered(false);- }}- onBlur={(): void => {- setHovered(false);- }}id={widget.id}className="widget-graph-component-container">@@ -377,7 +364,6 @@ function WidgetGraphComponent({<div className="drag-handle"><WidgetHeader- parentHover={hovered}title={widget?.title}widget={widget}onView={handleOnView}diff --git a/frontend/src/container/GridCardLayout/GridCardLayout.styles.scss b/frontend/src/container/GridCardLayout/GridCardLayout.styles.scssindex 7ba8c79c4f..3ce38ee2bd 100644--- a/frontend/src/container/GridCardLayout/GridCardLayout.styles.scss+++ b/frontend/src/container/GridCardLayout/GridCardLayout.styles.scss@@ -99,6 +99,12 @@height: calc(100% - 30px);}}++ &:hover {+ .widget-header-more-options {+ visibility: visible;+ }+ }}.widget-full-view {diff --git a/frontend/src/container/GridCardLayout/WidgetHeader/WidgetHeader.styles.scss b/frontend/src/container/GridCardLayout/WidgetHeader/WidgetHeader.styles.scssindex 1af189fc15..41acbd6ad1 100644--- a/frontend/src/container/GridCardLayout/WidgetHeader/WidgetHeader.styles.scss+++ b/frontend/src/container/GridCardLayout/WidgetHeader/WidgetHeader.styles.scss@@ -51,10 +51,6 @@visibility: visible;}-.widget-header-hover {- visibility: visible;-}-.widget-api-actions {padding-right: 0.25rem;}diff --git a/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsx b/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsxindex d6c8153f39..0eaf386392 100644--- a/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsx+++ b/frontend/src/container/GridCardLayout/WidgetHeader/__tests__/WidgetHeader.test.tsx@@ -181,7 +181,6 @@ describe('WidgetHeader', () => {title={TEST_WIDGET_TITLE}widget={mockWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}@@ -204,7 +203,6 @@ describe('WidgetHeader', () => {title="Empty Widget"widget={emptyWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}@@ -227,7 +225,6 @@ describe('WidgetHeader', () => {title={TABLE_WIDGET_TITLE}widget={tableWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}@@ -255,7 +252,6 @@ describe('WidgetHeader', () => {title={TABLE_WIDGET_TITLE}widget={tableWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}@@ -298,7 +294,6 @@ describe('WidgetHeader', () => {title={TEST_WIDGET_TITLE}widget={mockWidget}onView={mockOnView}- parentHover={false}queryResponse={errorResponse}isWarning={false}isFetchingResponse={false}@@ -340,7 +335,6 @@ describe('WidgetHeader', () => {title={TEST_WIDGET_TITLE}widget={mockWidget}onView={mockOnView}- parentHover={false}queryResponse={warningResponse}isWarningisFetchingResponse={false}@@ -370,7 +364,6 @@ describe('WidgetHeader', () => {title={TEST_WIDGET_TITLE}widget={mockWidget}onView={mockOnView}- parentHover={false}queryResponse={fetchingResponse}isWarning={false}isFetchingResponse@@ -389,7 +382,6 @@ describe('WidgetHeader', () => {title={TEST_WIDGET_TITLE}widget={mockWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}@@ -414,7 +406,6 @@ describe('WidgetHeader', () => {title={TABLE_WIDGET_TITLE}widget={tableWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}@@ -433,7 +424,6 @@ describe('WidgetHeader', () => {title={TEST_WIDGET_TITLE}widget={mockWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}@@ -454,7 +444,6 @@ describe('WidgetHeader', () => {title={TEST_WIDGET_TITLE}widget={mockWidget}onView={mockOnView}- parentHover={false}queryResponse={mockQueryResponse}isWarning={false}isFetchingResponse={false}diff --git a/frontend/src/container/GridCardLayout/WidgetHeader/index.tsx b/frontend/src/container/GridCardLayout/WidgetHeader/index.tsxindex da84c95f55..04625c70ea 100644--- a/frontend/src/container/GridCardLayout/WidgetHeader/index.tsx+++ b/frontend/src/container/GridCardLayout/WidgetHeader/index.tsx@@ -48,7 +48,6 @@ interface IWidgetHeaderProps {onView: VoidFunction;onDelete?: VoidFunction;onClone?: VoidFunction;- parentHover: boolean;queryResponse: UseQueryResult<SuccessResponse<MetricRangePayloadProps, unknown> & {warning?: Warning;@@ -69,7 +68,6 @@ function WidgetHeader({onView,onDelete,onClone,- parentHover,queryResponse,threshold,headerMenuList,@@ -315,8 +313,6 @@ function WidgetHeader({<MoreOutlineddata-testid="widget-header-options"className={`widget-header-more-options ${- parentHover ? 'widget-header-hover' : ''- } ${globalSearchAvailable ? 'widget-header-more-options-visible' : ''}`}/>diff --git a/frontend/src/container/QueryTable/__test__/mocks.ts b/frontend/src/container/QueryTable/__test__/mocks.tsindex 38fb2c9268..9228dddeaa 100644--- a/frontend/src/container/QueryTable/__test__/mocks.ts+++ b/frontend/src/container/QueryTable/__test__/mocks.ts@@ -363,7 +363,6 @@ export const WidgetHeaderProps: any = {title: 'Table - Panel',yAxisUnit: 'none',},- parentHover: false,queryResponse: {status: 'success',isLoading: false,