mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-08 01:43:55 +00:00
fix: rename Notification Routing to Routing in settings sidebar
This commit is contained in:
@@ -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)', () => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user