diff --git a/ipi-survey-platform/src/pages/Admin/configuration/CompanyProfile.jsx b/ipi-survey-platform/src/pages/Admin/configuration/CompanyProfile.jsx index 4d09ac5..0c08bcb 100644 --- a/ipi-survey-platform/src/pages/Admin/configuration/CompanyProfile.jsx +++ b/ipi-survey-platform/src/pages/Admin/configuration/CompanyProfile.jsx @@ -226,24 +226,6 @@ const validateCSVFile = (file, existingEstablishments = []) => { // Parse header const headers = lines[0].split(',').map(h => h.trim().replace(/"/g, '')); - - // Check required headers - // const requiredHeaders = ['Establishment Id', 'Factory Name', 'Email', 'Emirate']; - // const missingHeaders = requiredHeaders.filter(header => - // !headers.some(h => h.toLowerCase() === header.toLowerCase()) - // ); - - // if (missingHeaders.length > 0) { - // reject({ - // type: 'header_validation', - // message: `Missing required headers: ${missingHeaders.join(', ')}`, - // details: missingHeaders.map(header => ({ - // header, - // message: `Missing required header: ${header}` - // })) - // }); - // return; - // } const establishmentIdIndex = headers.findIndex(h => h.toLowerCase().includes('establishment') && h.toLowerCase().includes('id') diff --git a/ipi-survey-platform/src/pages/ChangePassword/ChangePassword.jsx b/ipi-survey-platform/src/pages/ChangePassword/ChangePassword.jsx index 82fbe32..ed31f26 100644 --- a/ipi-survey-platform/src/pages/ChangePassword/ChangePassword.jsx +++ b/ipi-survey-platform/src/pages/ChangePassword/ChangePassword.jsx @@ -4,8 +4,6 @@ import apiClient from '@/services/api/apiClient'; import { VALIDATION_MESSAGES } from '@/constants/validationMessages'; import { ASSETS } from '@/constants/assets'; -// const logoSrc = ASSETS.IMAGES.LOGO; - const ToggleableInput = ({ label, type = "password", diff --git a/ipi-survey-platform/src/pages/History/History.jsx b/ipi-survey-platform/src/pages/History/History.jsx index e8060f8..0af01d0 100644 --- a/ipi-survey-platform/src/pages/History/History.jsx +++ b/ipi-survey-platform/src/pages/History/History.jsx @@ -90,39 +90,6 @@ const History = () => { loadHscodeOptions(); }, []); - - - // useEffect(() => { - // const loadAuditHistory = async () => { - // setIsLoadingAudit(true); - // try { - // const establishmentId = resolveEstablishmentId(); - // if (!establishmentId) { - // console.error('No establishment ID found'); - // setIsLoadingAudit(false); - // return; - // } - // const response = await getSubmissionAuditHistory(establishmentId, { - // year: yearFilter || undefined, - // quarter: quarterFilter || undefined, - // product_id: hscodeFilter || undefined - // }); - // setAuditHistory(response?.data || []); - // setPagination(prev => ({ - // ...prev, - // totalItems: response?.data?.length, - // currentPage: 1, - // })); - // } catch (error) { - // console.error('Error loading audit history:', error); - // setAuditHistory([]); - // } finally { - // setIsLoadingAudit(false); - // } - // }; - - // loadAuditHistory(); - // }, [yearFilter, quarterFilter, hscodeFilter]); useEffect(() => { const loadAuditHistory = async () => { setIsLoadingAudit(true); @@ -353,13 +320,13 @@ const filteredRows = useMemo(() => { return Number(num).toLocaleString('en-IN'); }; - // 🟨 Added for expand/collapse logic + // Added for expand/collapse logic const [expandedRow, setExpandedRow] = React.useState(null); const handleToggleDetails = (rowIndex) => { setExpandedRow(expandedRow === rowIndex ? null : rowIndex); }; - // 🟩 Updated tableRows with expandable details + // Updated tableRows with expandable details const handlePageChange = React.useCallback((page) => { setPagination(prev => ({ ...prev, @@ -747,7 +714,7 @@ const tableRows = auditHistory.map((entry, index) => { {hscodeOptions.map((option) => (