From 492931d4886ca7531a309a83016acbbe05caf292 Mon Sep 17 00:00:00 2001 From: Malini Date: Sat, 1 Nov 2025 12:51:42 +0530 Subject: [PATCH] changes in survey page and submission history --- .../public/assets/images/Vector-agree.svg | 3 + ipi-survey-platform/src/App.jsx | 58 +- .../components/dashboard/SurveyCarousel.jsx | 7 +- .../EstablishmentInfo/EstablishmentInfo.jsx | 51 +- .../survey/ProductData/ProductData.jsx | 59 +- .../survey/ReviewSubmit/ReviewSubmit.jsx | 17 +- .../src/pages/Admin/Configuration.jsx | 37 +- .../Admin/configuration/CompanyProfile.jsx | 27 +- .../pages/Admin/configuration/IsicHsCodes.jsx | 750 ++++++++++++++---- .../Admin/configuration/QuarterlyWindows.jsx | 2 +- ipi-survey-platform/src/pages/Login/Login.jsx | 231 +++--- .../services/configuration/productService.js | 84 ++ .../configuration/quarterlyWindows.js | 41 + .../src/services/configuration/unitService.js | 44 + .../services/submissions/submissionService.js | 2 +- 15 files changed, 1082 insertions(+), 331 deletions(-) create mode 100644 ipi-survey-platform/public/assets/images/Vector-agree.svg create mode 100644 ipi-survey-platform/src/services/configuration/productService.js create mode 100644 ipi-survey-platform/src/services/configuration/quarterlyWindows.js create mode 100644 ipi-survey-platform/src/services/configuration/unitService.js diff --git a/ipi-survey-platform/public/assets/images/Vector-agree.svg b/ipi-survey-platform/public/assets/images/Vector-agree.svg new file mode 100644 index 0000000..254e084 --- /dev/null +++ b/ipi-survey-platform/public/assets/images/Vector-agree.svg @@ -0,0 +1,3 @@ + + + diff --git a/ipi-survey-platform/src/App.jsx b/ipi-survey-platform/src/App.jsx index d827c71..467dd89 100644 --- a/ipi-survey-platform/src/App.jsx +++ b/ipi-survey-platform/src/App.jsx @@ -77,14 +77,56 @@ function App() { )} /> - - - - )} - /> + + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + { const [currentIndex, setCurrentIndex] = useState(0); const [isPaused, setIsPaused] = useState(false); + const navigate = useNavigate(); useEffect(() => { if (!autoRotate || isPaused) return; @@ -45,7 +47,10 @@ const SurveyCarousel = ({ +

Data definitions

Product (HS Code – Name): Standard trade classification. Start typing to search by code or name.

Quantity (Qty): Physical output produced in the month, measured in the selected unit.

@@ -449,16 +441,7 @@ const ProductData = ({ {/* Right card - Entry rules */} {showEntryRules && ( -
- +

Entry rules & validation

Mandatory: All fields in this step are required except "Reason for variation/0 Target" and free-text Notes.

Monthly entries: Enter Qty and Cost for each month in the Current and Forecast quarters. Use 0 where there is no output or cost.

@@ -703,7 +686,7 @@ const ProductData = ({
-
+
updateProductField(p.id, 'aprQuantity', e.target.value)} />
-
- +
+ updateProductField(p.id, 'mayQuantity', e.target.value)} + value={p.mayCost || ''} + onChange={(e) => updateProductField(p.id, 'mayCost', e.target.value)} />
+
))} -
+ {/* Remarks Section */} + +
+