Merge pull request #2856 from bluewave-labs/develop

develop -> demo
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-08-25 14:38:31 -07:00
commit ba2218490b
7 files changed
+31 -16

No files matched your search

@@ -1,5 +1,6 @@
export const tooltipDateFormatLookup = (dateRange) => { export const tooltipDateFormatLookup = (dateRange) => {
const dateFormatLookup = { const dateFormatLookup = {
recent: "ddd. MMMM D, YYYY, hh:mm A",
day: "ddd. MMMM D, YYYY, hh:mm A", day: "ddd. MMMM D, YYYY, hh:mm A",
week: "ddd. MMMM D, YYYY, hh:mm A", week: "ddd. MMMM D, YYYY, hh:mm A",
month: "ddd. MMMM D, YYYY", month: "ddd. MMMM D, YYYY",
@@ -121,6 +121,7 @@ const InfrastructureDetails = () => {
<AreaChartBoxes <AreaChartBoxes
shouldRender={!isLoading} shouldRender={!isLoading}
monitor={monitor} monitor={monitor}
dateRange={dateRange}
/> />
</> </>
)} )}
+1 -1
View File
@@ -29,7 +29,7 @@ const SettingsURL = ({ HEADING_SX, handleChange, showURL = false }) => {
<Select <Select
name="showURL" name="showURL"
label={t("settingsPage.urlSettings.label")} label={t("settingsPage.urlSettings.label")}
value={showURL || ""} value={showURL === true}
onChange={handleChange} onChange={handleChange}
items={[ items={[
{ _id: true, name: t("settingsPage.urlSettings.selectEnabled") }, { _id: true, name: t("settingsPage.urlSettings.selectEnabled") },
+1 -1
View File
@@ -5,7 +5,7 @@ import { execSync } from "child_process";
export default defineConfig(({ mode }) => { export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), ""); const env = loadEnv(mode, process.cwd(), "");
let version = "3.1.1"; let version = "3.1.2";
return { return {
base: "/", base: "/",
+1 -2
View File
@@ -15,9 +15,8 @@ services:
- mongodb - mongodb
mongodb: mongodb:
image: mongo:4.4.18 image: mongo:4.4.18
container_name: checkmate-mongodb
restart: always restart: always
command: ["mongod", "--replSet", "rs0", "--bind_ip_all"] command: ["mongod", "--quiet", --bind_ip_all"]
ports: ports:
- "27017:27017" - "27017:27017"
volumes: volumes:
@@ -7,7 +7,7 @@ class TranslationService {
this.logger = logger; this.logger = logger;
this.translations = {}; this.translations = {};
this._language = "en"; this._language = "en";
this.localesDir = path.join(process.cwd(), "locales"); this.localesDir = path.join(process.cwd(), "src/locales");
} }
get serviceName() { get serviceName() {
+25 -11
View File
@@ -580,17 +580,31 @@ const createNotificationBodyValidation = joi.object({
}), }),
address: joi.when("type", { address: joi.when("type", {
is: "email", switch: [
then: joi.string().email().required().messages({ {
"string.empty": "E-mail address cannot be empty", is: "email",
"any.required": "E-mail address is required", then: joi.string().email().required().messages({
"string.email": "Please enter a valid e-mail address", "string.empty": "E-mail address cannot be empty",
}), "any.required": "E-mail address is required",
otherwise: joi.string().uri().required().messages({ "string.email": "Please enter a valid e-mail address",
"string.empty": "Webhook URL cannot be empty", }),
"any.required": "Webhook URL is required", },
"string.uri": "Please enter a valid Webhook URL", {
}), is: "pager_duty",
then: joi.string().required().messages({
"string.empty": "PagerDuty integration key cannot be empty",
"any.required": "PagerDuty integration key is required",
}),
},
{
is: joi.string().valid("webhook", "slack", "discord"),
then: joi.string().uri().required().messages({
"string.empty": "Webhook URL cannot be empty",
"any.required": "Webhook URL is required",
"string.uri": "Please enter a valid Webhook URL",
}),
},
],
}), }),
}); });