Skip to content

Commit f72a458

Browse files
authored
[ResponseOps][MW] Update MW banner (#234535)
## Summary We have had some complaints about the maintenance window banner. <img width="2295" height="428" alt="image (1)" src="https://github.com/user-attachments/assets/b657a9f3-bd58-41d3-98f3-d674bb72da86" /> > Maintenances are running and **ALL** your rule notifications are paused The banner text was misleading, so I updated it. <img width="917" height="433" alt="Screenshot 2025-09-10 at 10 41 31" src="https://github.com/user-attachments/assets/efa36975-286d-4ffe-8410-119c7e32cc24" />
1 parent 6f33788 commit f72a458

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/platform/packages/shared/kbn-alerts-ui-shared/src/maintenance_window_callout/index.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ describe('MaintenanceWindowCallout', () => {
179179
expect(kibanaServicesMock.notifications.toasts.addError).toHaveBeenCalledTimes(1);
180180
expect(kibanaServicesMock.notifications.toasts.addError).toHaveBeenCalledWith(mockError, {
181181
title: 'Failed to check if maintenance windows are active',
182-
toastMessage: 'Rule notifications are stopped while maintenance windows are running.',
182+
toastMessage:
183+
'Some rule notifications may be stopped while maintenance windows are running.',
183184
});
184185
});
185186
});

src/platform/packages/shared/kbn-alerts-ui-shared/src/maintenance_window_callout/translations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { i18n } from '@kbn/i18n';
1212
export const MAINTENANCE_WINDOW_RUNNING_DESCRIPTION = i18n.translate(
1313
'alertsUIShared.maintenanceWindowCallout.maintenanceWindowActiveDescription',
1414
{
15-
defaultMessage: 'Rule notifications are stopped while maintenance windows are running.',
15+
defaultMessage: 'Some rule notifications may be stopped while maintenance windows are running.',
1616
}
1717
);
1818
export const MAINTENANCE_WINDOW_NO_CATEGORY_TITLE = i18n.translate(

src/platform/packages/shared/kbn-alerts-ui-shared/src/maintenance_window_callout/use_fetch_active_maintenance_windows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ const FETCH_ERROR = i18n.translate('alertsUIShared.maintenanceWindowCallout.fetc
3838
const FETCH_ERROR_DESCRIPTION = i18n.translate(
3939
'alertsUIShared.maintenanceWindowCallout.fetchErrorDescription',
4040
{
41-
defaultMessage: 'Rule notifications are stopped while maintenance windows are running.',
41+
defaultMessage: 'Some rule notifications may be stopped while maintenance windows are running.',
4242
}
4343
);

x-pack/platform/plugins/shared/alerting/public/pages/maintenance_windows/translations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ export const SOLUTION_CONFIG_REMOVAL_WARNING_SUBTITLE = i18n.translate(
405405
'xpack.alerting.maintenanceWindows.solutionConfigRemovalWarning.subtitle',
406406
{
407407
defaultMessage:
408-
'When you save the changes, the maintenance window will affect rules in all solutions.',
408+
'When you save the changes, the maintenance window will affect all rules that meet the filtering criteria.',
409409
}
410410
);
411411

x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/rules_list/components/rules_list.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,9 @@ describe('MaintenanceWindowsMock', () => {
14061406

14071407
await waitFor(() => expect(fetchActiveMaintenanceWindowsMock).toHaveBeenCalledTimes(1));
14081408
expect(
1409-
screen.queryByText('Rule notifications are stopped while maintenance windows are running.')
1409+
screen.queryByText(
1410+
'Some rule notifications may be stopped while maintenance windows are running.'
1411+
)
14101412
).not.toBeInTheDocument();
14111413
});
14121414

0 commit comments

Comments
 (0)