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(settings): remove notification channels from settings nav (#13225)
ashu89122139580419b8
diff --git a/frontend/src/constants/shortcuts/globalShortcuts.ts b/frontend/src/constants/shortcuts/globalShortcuts.tsindex efb2ecfe7d..8befeac1f6 100644--- a/frontend/src/constants/shortcuts/globalShortcuts.ts+++ b/frontend/src/constants/shortcuts/globalShortcuts.ts@@ -2,6 +2,7 @@ export const GlobalShortcuts = {NavigateToServices: 'shift+s',NavigateToDashboards: 'shift+d',NavigateToAlerts: 'shift+a',+ NavigateToNotificationChannels: 'shift+g+n',NavigateToExceptions: 'shift+e',NavigateToMessagingQueues: 'shift+q',ToggleSidebar: 'shift+b',@@ -23,7 +24,6 @@ export const GlobalShortcuts = {NavigateToSettings: 'shift+g',NavigateToSettingsIngestion: 'shift+g+i',NavigateToSettingsBilling: 'shift+g+b',- NavigateToSettingsNotificationChannels: 'shift+g+n',NavigateToSettingsServiceAccounts: 'shift+g+k',NavigateToSettingsRoles: 'shift+g+r',NavigateToSettingsMembers: 'shift+g+m',@@ -34,6 +34,7 @@ export const GlobalShortcutsName = {NavigateToTraces: 'shift+t',NavigateToDashboards: 'shift+d',NavigateToAlerts: 'shift+a',+ NavigateToNotificationChannels: 'shift+g+n',NavigateToExceptions: 'shift+e',NavigateToMessagingQueues: 'shift+q',ToggleSidebar: 'shift+b',@@ -44,7 +45,6 @@ export const GlobalShortcutsName = {NavigateToSettings: 'shift+g',NavigateToSettingsIngestion: 'shift+g+i',NavigateToSettingsBilling: 'shift+g+b',- NavigateToSettingsNotificationChannels: 'shift+g+n',NavigateToSettingsServiceAccounts: 'shift+g+k',NavigateToSettingsRoles: 'shift+g+r',NavigateToSettingsMembers: 'shift+g+m',@@ -59,6 +59,7 @@ export const GlobalShortcutsDescription = {NavigateToLogs: 'Navigate to Logs Explorer',NavigateToDashboards: 'Navigate to Dashboards List',NavigateToAlerts: 'Navigate to Alerts List',+ NavigateToNotificationChannels: 'Navigate to Notification Channels',NavigateToExceptions: 'Navigate to Exceptions List',NavigateToMessagingQueues: 'Navigate to Messaging Queues',ToggleSidebar: 'Toggle sidebar visibility',@@ -68,8 +69,6 @@ export const GlobalShortcutsDescription = {NavigateToSettings: 'Navigate to Settings',NavigateToSettingsIngestion: 'Navigate to Ingestion Settings',NavigateToSettingsBilling: 'Navigate to Billing Settings',- NavigateToSettingsNotificationChannels:- 'Navigate to Notification Channels Settings',NavigateToLogsPipelines: 'Navigate to Logs Pipelines',NavigateToSettingsServiceAccounts: 'Navigate to Service Accounts Settings',NavigateToSettingsRoles: 'Navigate to Roles Settings',diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsxindex 8c4e20a01a..316d9a7a9c 100644--- a/frontend/src/container/SideNav/SideNav.tsx+++ b/frontend/src/container/SideNav/SideNav.tsx@@ -65,8 +65,7 @@ import { useAppContext } from 'providers/App/App';import { AppState } from 'store/reducers';import AppReducer from 'types/reducer/app';import { USER_ROLES } from 'types/roles';-import { checkVersionState } from 'utils/app';-import { isModifierKeyPressed } from 'utils/app';+import { checkVersionState, isModifierKeyPressed } from 'utils/app';import { showErrorNotification } from 'utils/error';import { openInNewTab } from 'utils/navigation';@@ -714,7 +713,7 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {registerShortcut(GlobalShortcuts.NavigateToSettingsBilling, () =>onClickHandler(ROUTES.BILLING, null),);- registerShortcut(GlobalShortcuts.NavigateToSettingsNotificationChannels, () =>+ registerShortcut(GlobalShortcuts.NavigateToNotificationChannels, () =>onClickHandler(ROUTES.ALL_CHANNELS, null),);registerShortcut(GlobalShortcuts.NavigateToSettingsServiceAccounts, () =>@@ -744,7 +743,7 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {deregisterShortcut(GlobalShortcuts.NavigateToSettings);deregisterShortcut(GlobalShortcuts.NavigateToSettingsIngestion);deregisterShortcut(GlobalShortcuts.NavigateToSettingsBilling);- deregisterShortcut(GlobalShortcuts.NavigateToSettingsNotificationChannels);+ deregisterShortcut(GlobalShortcuts.NavigateToNotificationChannels);deregisterShortcut(GlobalShortcuts.NavigateToSettingsServiceAccounts);deregisterShortcut(GlobalShortcuts.NavigateToSettingsRoles);deregisterShortcut(GlobalShortcuts.NavigateToSettingsMembers);diff --git a/frontend/src/container/SideNav/menuItems.tsx b/frontend/src/container/SideNav/menuItems.tsxindex 05eb7aba53..04398467ac 100644--- a/frontend/src/container/SideNav/menuItems.tsx+++ b/frontend/src/container/SideNav/menuItems.tsx@@ -343,14 +343,6 @@ export const settingsNavSections: SettingsNavSection[] = [isEnabled: true,itemKey: 'account',},- // TODO(@SigNoz/pulse-frontend): https://github.com/SigNoz/engineering-pod/issues/5323- {- key: ROUTES.ALL_CHANNELS,- label: 'Notification Channels',- icon: <FileKey2 size={16} />,- isEnabled: true,- itemKey: 'notification-channels',- },{key: ROUTES.BILLING,label: 'Billing',diff --git a/frontend/src/pages/Settings/__tests__/Settings.test.tsx b/frontend/src/pages/Settings/__tests__/Settings.test.tsxindex 08766f046e..f64b0ee21c 100644--- a/frontend/src/pages/Settings/__tests__/Settings.test.tsx+++ b/frontend/src/pages/Settings/__tests__/Settings.test.tsx@@ -44,7 +44,6 @@ describe('SettingsPage nav sections', () => {'settings-page-sidenav','workspace','account',- 'notification-channels','billing','roles','members',@@ -56,6 +55,12 @@ describe('SettingsPage nav sections', () => {expect(screen.getByTestId(id)).toBeInTheDocument();});+ it('does not render "notification-channels" element', () => {+ expect(+ screen.queryByTestId('notification-channels'),+ ).not.toBeInTheDocument();+ });+it.each(['Identity & Access', 'Authentication'])('renders "%s" section title',(text) => {