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: shortcuts break when there are multiple queries (#4532)
Vikrant Gupta02f83e4b4ab9
diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsxindex cbdad01519..d03c1e3db4 100644--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx@@ -2,9 +2,7 @@ import './QueryBuilderSearch.styles.scss';import { Select, Spin, Tag, Tooltip } from 'antd';import { OPERATORS } from 'constants/queryBuilder';-import { LogsExplorerShortcuts } from 'constants/shortcuts/logsExplorerShortcuts';import { getDataTypes } from 'container/LogDetailedView/utils';-import { useKeyboardHotkeys } from 'hooks/hotkeys/useKeyboardHotkeys';import {useAutoComplete,WhereClauseConfig,@@ -77,8 +75,6 @@ function QueryBuilderSearch({searchKey,);- const { registerShortcut, deregisterShortcut } = useKeyboardHotkeys();-const { handleRunQuery } = useQueryBuilder();const onTagRender = ({@@ -204,18 +200,6 @@ function QueryBuilderSearch({/* eslint-disable react-hooks/exhaustive-deps */}, [sourceKeys]);- useEffect(() => {- registerShortcut(LogsExplorerShortcuts.FocusTheSearchBar, () => {- // set timeout is needed here else the select treats the hotkey as input value- setTimeout(() => {- selectRef.current?.focus();- }, 0);- });-- return (): void =>- deregisterShortcut(LogsExplorerShortcuts.FocusTheSearchBar);- }, []);-return (<divstyle={{