mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-30 03:59:41 +00:00
fix: rename Notification Routing to Routing in settings sidebar
This commit is contained in:
@@ -297,7 +297,7 @@ export function NotificationRoutingSection() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CapabilityGate capability="notification-routing" featureName="Notification Routing">
|
<CapabilityGate capability="notification-routing" featureName="Routing">
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
<div className="flex justify-end">
|
<div className="flex justify-end">
|
||||||
<SettingsPrimaryButton size="sm" onClick={() => { resetForm(); setShowForm(true); }}>
|
<SettingsPrimaryButton size="sm" onClick={() => { resetForm(); setShowForm(true); }}>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ describe('settings registry', () => {
|
|||||||
it('applies the renamed section labels', () => {
|
it('applies the renamed section labels', () => {
|
||||||
const byId = new Map(SETTINGS_ITEMS.map(i => [i.id, i]));
|
const byId = new Map(SETTINGS_ITEMS.map(i => [i.id, i]));
|
||||||
expect(byId.get('notifications')?.label).toBe('Channels');
|
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)', () => {
|
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',
|
id: 'notification-routing',
|
||||||
group: 'notifications',
|
group: 'notifications',
|
||||||
label: 'Notification Routing',
|
label: 'Routing',
|
||||||
description: 'Rules that steer alerts to the right channel based on severity or label.',
|
description: 'Rules that steer alerts to the right channel based on severity or label.',
|
||||||
keywords: ['rules', 'routing', 'channels', 'severity', 'labels'],
|
keywords: ['rules', 'routing', 'channels', 'severity', 'labels'],
|
||||||
tier: null,
|
tier: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user