From 8d15418777084b83dc5a6a2c6f8990b1694fdbe8 Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Fri, 2 May 2025 03:25:04 +0530 Subject: [PATCH 1/3] Addition of fallback in the main page. --- client/src/Components/Fallback/index.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/src/Components/Fallback/index.jsx b/client/src/Components/Fallback/index.jsx index 1b6ee93c7..616d9efc0 100644 --- a/client/src/Components/Fallback/index.jsx +++ b/client/src/Components/Fallback/index.jsx @@ -118,6 +118,18 @@ const Fallback = ({ title, checks, link = "/", isAdmin, vowelStart = false, show > Let's create your first {title} + + {/* Bulk create of uptime monitors */} + {title == "uptime monitor" && ( + + )} {/* Warning box for PageSpeed monitor */} {(title === "pagespeed monitor" && showPageSpeedWarning) && ( From 5d6ae745f42fc49e1ea354527bb5fa5913ee127a Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Fri, 2 May 2025 03:30:14 +0530 Subject: [PATCH 2/3] Made the text dynamic with respect to language now. --- client/src/Components/Fallback/index.jsx | 2 +- client/src/locales/gb.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/Components/Fallback/index.jsx b/client/src/Components/Fallback/index.jsx index 616d9efc0..0ae639ef5 100644 --- a/client/src/Components/Fallback/index.jsx +++ b/client/src/Components/Fallback/index.jsx @@ -127,7 +127,7 @@ const Fallback = ({ title, checks, link = "/", isAdmin, vowelStart = false, show sx={{ alignSelf: "center" }} onClick={() => navigate("/uptime/bulk-import")} > - Click here for bulk {title} + {t("bulkImport.fallbackPage")} {title} )} diff --git a/client/src/locales/gb.json b/client/src/locales/gb.json index 5e6613c54..266fbdaad 100644 --- a/client/src/locales/gb.json +++ b/client/src/locales/gb.json @@ -408,6 +408,7 @@ "parsingFailed": "Parsing failed", "uploadSuccess": "Monitors created successfully!", "validationFailed": "Validation failed", - "noFileSelected": "No file selected" + "noFileSelected": "No file selected", + "fallbackPage": "Click here for bulk" } } From 712fd0a56f792cfcba397e279577f914e7e01057 Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Sun, 4 May 2025 00:16:08 +0530 Subject: [PATCH 3/3] Fixed the strict evaluation and text of the button. --- client/src/Components/Fallback/index.jsx | 5 ++--- client/src/locales/gb.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/Components/Fallback/index.jsx b/client/src/Components/Fallback/index.jsx index 0ae639ef5..18fecd3dd 100644 --- a/client/src/Components/Fallback/index.jsx +++ b/client/src/Components/Fallback/index.jsx @@ -118,16 +118,15 @@ const Fallback = ({ title, checks, link = "/", isAdmin, vowelStart = false, show > Let's create your first {title} - {/* Bulk create of uptime monitors */} - {title == "uptime monitor" && ( + {title === "uptime monitor" && ( )} diff --git a/client/src/locales/gb.json b/client/src/locales/gb.json index 266fbdaad..920d1307b 100644 --- a/client/src/locales/gb.json +++ b/client/src/locales/gb.json @@ -409,6 +409,6 @@ "uploadSuccess": "Monitors created successfully!", "validationFailed": "Validation failed", "noFileSelected": "No file selected", - "fallbackPage": "Click here for bulk" + "fallbackPage": "Import a file to upload a list of servers in bulk" } }