fix: rename Notification Routing to Routing in settings sidebar

This commit is contained in:
SaelixCode
2026-07-03 09:13:52 -04:00
parent f9a80f30dc
commit 604c4a7705
3 changed files with 3 additions and 3 deletions
@@ -297,7 +297,7 @@ export function NotificationRoutingSection() {
);
return (
<CapabilityGate capability="notification-routing" featureName="Notification Routing">
<CapabilityGate capability="notification-routing" featureName="Routing">
<div className="space-y-6">
<div className="flex justify-end">
<SettingsPrimaryButton size="sm" onClick={() => { resetForm(); setShowForm(true); }}>
@@ -81,7 +81,7 @@ describe('settings registry', () => {
it('applies the renamed section labels', () => {
const byId = new Map(SETTINGS_ITEMS.map(i => [i.id, i]));
expect(byId.get('notifications')?.label).toBe('Channels');
expect(byId.get('notification-routing')?.label).toBe('Notification Routing');
expect(byId.get('notification-routing')?.label).toBe('Routing');
});
it('no longer registers the standalone Vulnerability Scanning section (moved to the Security page)', () => {
+1 -1
View File
@@ -212,7 +212,7 @@ export const SETTINGS_ITEMS: readonly SettingsItemMeta[] = [
{
id: 'notification-routing',
group: 'notifications',
label: 'Notification Routing',
label: 'Routing',
description: 'Rules that steer alerts to the right channel based on severity or label.',
keywords: ['rules', 'routing', 'channels', 'severity', 'labels'],
tier: null,