From fd9e7b4d4bee7d29da839aabdc33de5798d6930e Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Wed, 27 Nov 2024 16:24:10 -0800 Subject: [PATCH 1/2] IO-3040 Report Selector Date Range Restriction for Prod Signed-off-by: Allan Carr --- .../report-center-modal/report-center-modal.component.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/components/report-center-modal/report-center-modal.component.jsx b/client/src/components/report-center-modal/report-center-modal.component.jsx index f518fd94e..e9f24a163 100644 --- a/client/src/components/report-center-modal/report-center-modal.component.jsx +++ b/client/src/components/report-center-modal/report-center-modal.component.jsx @@ -283,7 +283,12 @@ export function ReportCenterModalComponent({ reportCenterModal, bodyshop }) { }, { validator: (_, value) => { - if (value && value[0] && value[1] && process.env.NODE_ENV === "production") { + if ( + (!import.meta.env.VITE_APP_IS_TEST && import.meta.env.PROD) && + value && + value[0] && + value[1] + ) { const diffInDays = (value[1] - value[0]) / (1000 * 3600 * 24); if (diffInDays > 92) { return Promise.reject(t("general.validation.dateRangeExceeded")); From 3d79be06de1e908ba00189d30c816f758d877eeb Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Wed, 27 Nov 2024 18:02:28 -0800 Subject: [PATCH 2/2] IO-3001 Correct Commenting of Button Signed-off-by: Allan Carr --- .../jobs-available-table.container.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/jobs-available-table/jobs-available-table.container.jsx b/client/src/components/jobs-available-table/jobs-available-table.container.jsx index 8e9df7fe3..a3d9060d6 100644 --- a/client/src/components/jobs-available-table/jobs-available-table.container.jsx +++ b/client/src/components/jobs-available-table/jobs-available-table.container.jsx @@ -1,6 +1,6 @@ import { gql, useApolloClient, useLazyQuery, useMutation, useQuery } from "@apollo/client"; import { useSplitTreatments } from "@splitsoftware/splitio-react"; -import { Button, Col, Row, notification } from "antd"; +import { Col, Row, notification } from "antd"; //import { Button, Col, Row, notification } from "antd"; import Axios from "axios"; import _ from "lodash"; import queryString from "query-string"; @@ -408,8 +408,8 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail updateSchComp={updateSchComp} setSchComp={setSchComp} /> - { - {/* currentUser.email.includes("@rome.") || currentUser.email.includes("@imex.") ? ( + {/* { + currentUser.email.includes("@rome.") || currentUser.email.includes("@imex.") ? ( - ) : null */} - } + ) : null + } */}