From 5716b5eea4660930f350967329f42198e889cb38 Mon Sep 17 00:00:00 2001 From: gorkem-bwl Date: Tue, 28 Apr 2026 23:58:13 -0400 Subject: [PATCH 1/2] feat(settings): explanatory body in Remove monitors confirmation modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The remove-all-monitors confirmation dialog only had a one-line title and an empty body, which looked awkward and didn't communicate what was actually about to be deleted alongside the monitors themselves. - Adds a paragraph explaining that check history, incidents, scheduled maintenance windows, and dependent status pages will also be removed, with an inline tip to export monitors first to keep a backup. - The Confirm button now uses confirmColor='error' to make the destructive action visually distinct, with a localized 'Remove monitors' label. - Translated to all 16 locales, with terminology aligned to each locale's existing usage (e.g. zh-CN/zh-TW use 监控/監控 to match the existing button label, vi uses 'trình giám sát', etc.). --- client/src/Pages/Settings/index.tsx | 8 +++++++- client/src/locales/ar.json | 5 +++-- client/src/locales/cs.json | 7 ++++--- client/src/locales/de.json | 5 +++-- client/src/locales/en.json | 3 ++- client/src/locales/es.json | 7 ++++--- client/src/locales/fi.json | 5 +++-- client/src/locales/fr.json | 7 ++++--- client/src/locales/ja.json | 3 ++- client/src/locales/pt-BR.json | 7 ++++--- client/src/locales/ru.json | 5 +++-- client/src/locales/th.json | 5 +++-- client/src/locales/tr.json | 7 ++++--- client/src/locales/uk.json | 5 +++-- client/src/locales/vi.json | 5 +++-- client/src/locales/zh-CN.json | 5 +++-- client/src/locales/zh-TW.json | 7 ++++--- 17 files changed, 59 insertions(+), 37 deletions(-) diff --git a/client/src/Pages/Settings/index.tsx b/client/src/Pages/Settings/index.tsx index 1a9724916..fc3fceceb 100644 --- a/client/src/Pages/Settings/index.tsx +++ b/client/src/Pages/Settings/index.tsx @@ -974,7 +974,13 @@ export const SettingsPage = () => { setIsDemoMonitorsDialogOpen(false); }} loading={isDeletingAllMonitors} - /> + confirmColor="error" + confirmText={t("common.buttons.removeMonitors")} + > + + {t("pages.settings.form.removeMonitors.dialog.paragraph")} + + Date: Wed, 29 Apr 2026 10:01:43 -0700 Subject: [PATCH 2/2] fix build error --- client/src/Pages/Incidents/Components/CardDetails.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/Pages/Incidents/Components/CardDetails.tsx b/client/src/Pages/Incidents/Components/CardDetails.tsx index 82ececaa8..b6c1288dd 100644 --- a/client/src/Pages/Incidents/Components/CardDetails.tsx +++ b/client/src/Pages/Incidents/Components/CardDetails.tsx @@ -13,7 +13,6 @@ import { useSelector } from "react-redux"; import type { RootState } from "@/Types/state"; import { formatDateWithTz } from "@/Utils/TimeUtils"; import { getIncidentsDuration } from "@/Pages/Incidents/utils"; -import { theme } from "@/Utils/Theme/Theme"; interface CardDetailsProps { incident: Incident | null;