diff --git a/ipi-survey-platform/src/pages/Admin/Configuration.jsx b/ipi-survey-platform/src/pages/Admin/Configuration.jsx
index a05fb5f..8ac9d99 100644
--- a/ipi-survey-platform/src/pages/Admin/Configuration.jsx
+++ b/ipi-survey-platform/src/pages/Admin/Configuration.jsx
@@ -30,7 +30,7 @@ const Configuration = () => {
"Company Profile": "profile",
};
- // ✅ Map paths to tab names
+ // Map paths to tab names
const pathToTab = {
quarterly: "Quarterly Windows",
hscodes: "HS Codes",
@@ -39,14 +39,14 @@ const Configuration = () => {
profile: "Company Profile",
};
- // ✅ Navigate to URL when tab changes
+ // Navigate to URL when tab changes
useEffect(() => {
if (tabToPath[active]) {
navigate(`/admin/configuration/${tabToPath[active]}`, { replace: true });
}
}, [active, navigate]);
- // ✅ Update active tab when URL changes
+ // Update active tab when URL changes
useEffect(() => {
const path = location.pathname.split("/").pop();
if (pathToTab[path] && pathToTab[path] !== active) {
@@ -54,7 +54,7 @@ const Configuration = () => {
}
}, [location.pathname]);
- // ✅ Breadcrumb with ">" separators
+ //Breadcrumb with ">" separators
const Breadcrumbs = (
);
- // ✅ Tab header
+ // Tab header
const PageHeader = (
@@ -107,7 +107,7 @@ const Configuration = () => {
);
- // ✅ Render selected tab content
+ // Render selected tab content
const renderActiveTab = () => {
switch (active) {
case "Quarterly Windows":
diff --git a/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx b/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx
index d3ce8e0..a803289 100644
--- a/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx
+++ b/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx
@@ -612,13 +612,11 @@ const ValidationReview = () => {
// API call
const response = await getBeforePreviousData(
- establishmentId,
- currentQuarter,
- currentYear,
- productId
- );
-
- console.log("API Response:", response);
+ establishmentId,
+ currentQuarter,
+ currentYear,
+ productId
+);
let mappedDataMap = {};
@@ -948,7 +946,7 @@ const getQuarterYearLabel = (quarter, year) => {
const currentLabel = getQuarterYearLabel(currentQuarter, currentYear);
// Next Year Forecast
-const forecastLabel = getQuarterYearLabel(forecastQuarter, currentYear);
+const forecastLabel = getQuarterYearLabel(forecastQuarter, forecastYear );
// Optional: Previous Forecast (same year usually)
// const additionalForecastLabel = getQuarterYearLabel(forecastQuarter, currentYear);
@@ -1125,7 +1123,7 @@ const additionalForecastLabel =
- {/*
*/}
- {/*
+
+
{fetchingNextQuarter ? 'Loading...' : 'Show Historical Comparison'}
-
*/}
+
{varianceHighlighting && (
@@ -1200,7 +1198,7 @@ const additionalForecastLabel =
{currentLabel || 'Q2 2024'} (CURRENT QUARTER)
- {additionalForecastLabel || 'Q3 2023'} (PREVIOUS FORECAST)
+ {additionalForecastLabel || ''} (PREVIOUS FORECAST)
|
{forecastLabel || 'Q3 2024'} (NEXT YEAR FORECAST)
diff --git a/ipi-survey-platform/src/pages/Admin/Validations.jsx b/ipi-survey-platform/src/pages/Admin/Validations.jsx
index 55f99a6..7795f50 100644
--- a/ipi-survey-platform/src/pages/Admin/Validations.jsx
+++ b/ipi-survey-platform/src/pages/Admin/Validations.jsx
@@ -388,7 +388,7 @@ React.useEffect(() => {
const matches = matchSearch && matchYear && matchQuarter && matchEmirate && matchStatus;
if (matches) {
- console.log('Matching item:', item);
+ // console.log('Matching item:', item);
} else {
('Filtered out item:', item, { matchSearch, matchYear, matchQuarter, matchEmirate, matchStatus });
}
|