From 757c6b19feb86c1e426c69c67a0b5c22a6f463e9 Mon Sep 17 00:00:00 2001 From: Nirmal_np Date: Wed, 2 Sep 2026 18:47:53 +0530 Subject: [PATCH 01/15] fix(frontend): standardize Karnataka Police branding and fix document links on home page --- frontend/src/components/shared/navigation/Footer.jsx | 4 ++-- frontend/src/i18n/locales/en.js | 4 ++-- frontend/src/i18n/locales/kn.js | 4 ++-- frontend/src/modules/dashboard/Hero.jsx | 2 +- frontend/src/modules/dashboard/Workflow.jsx | 2 +- .../modules/dashboard/components/AnalystTopNav.jsx | 4 +++- frontend/src/modules/dashboard/components/Sidebar.jsx | 4 ++-- .../src/modules/dashboard/components/TopNavbar.jsx | 4 ++-- frontend/src/utils/documentationPdf.js | 11 +++++++---- 9 files changed, 22 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/shared/navigation/Footer.jsx b/frontend/src/components/shared/navigation/Footer.jsx index a875b6d..614d259 100644 --- a/frontend/src/components/shared/navigation/Footer.jsx +++ b/frontend/src/components/shared/navigation/Footer.jsx @@ -60,7 +60,7 @@ export default function Footer({ onLoginClick, rounded = false, role = null, act KSP

- {t('auth.portalName', 'AI-Driven Crime Analytics Platform')} + {t('auth.portalName', 'Crime Analytics Platform')}

@@ -232,7 +232,7 @@ export default function Footer({ onLoginClick, rounded = false, role = null, act

- © {new Date().getFullYear()} {t('auth.kspTitle', 'Karnataka State Police')}. {t('common.allRightsReserved', 'All rights reserved.')} + © {new Date().getFullYear()} {t('auth.kspTitle', 'KARNATAKA POLICE')}. {t('common.allRightsReserved', 'All rights reserved.')}

diff --git a/frontend/src/i18n/locales/en.js b/frontend/src/i18n/locales/en.js index 45f2526..594174e 100644 --- a/frontend/src/i18n/locales/en.js +++ b/frontend/src/i18n/locales/en.js @@ -1033,8 +1033,8 @@ export default { // Authentication & Login auth: { - kspTitle: 'Karnataka State Police', - portalName: 'Crime Intelligence & Predictive Analytics Platform', + kspTitle: 'KARNATAKA POLICE', + portalName: 'Crime Analytics Platform', officerPortal: 'Field Officer Portal', analystPortal: 'Intelligence Analyst Portal', adminPortal: 'System Administrator Portal', diff --git a/frontend/src/i18n/locales/kn.js b/frontend/src/i18n/locales/kn.js index e72b085..4e178b5 100644 --- a/frontend/src/i18n/locales/kn.js +++ b/frontend/src/i18n/locales/kn.js @@ -1163,8 +1163,8 @@ export default { // Authentication & Login auth: { - kspTitle: 'ಕರ್ನಾಟಕ ರಾಜ್ಯ ಪೊಲೀಸ್', - portalName: 'ಅಪರಾಧ ಗುಪ್ತಚರ & ಮುನ್ಸೂಚನಾ ವಿಶ್ಲೇಷಣಾ ವೇದಿಕೆ', + kspTitle: 'ಕರ್ನಾಟಕ ಪೊಲೀಸ್', + portalName: 'ಅಪರಾಧ ವಿಶ್ಲೇಷಣಾ ವೇದಿಕೆ', officerPortal: 'ಫೀಲ್ಡ್ ಆಫೀಸರ್ ಪೋರ್ಟಲ್', analystPortal: 'ಇಂಟೆಲಿಜೆನ್ಸ್ ಅನಲಿಸ್ಟ್ ಪೋರ್ಟಲ್', adminPortal: 'ಸಿಸ್ಟಮ್ ಅಡ್ಮಿನಿಸ್ಟ್ರೇಟರ್ ಪೋರ್ಟಲ್', diff --git a/frontend/src/modules/dashboard/Hero.jsx b/frontend/src/modules/dashboard/Hero.jsx index 3b27226..492f219 100644 --- a/frontend/src/modules/dashboard/Hero.jsx +++ b/frontend/src/modules/dashboard/Hero.jsx @@ -10,7 +10,7 @@ export default function Hero({ onLoginClick, onNavigate }) { const { t } = useTranslation(); const handleReadDocumentation = () => { - downloadArchitectureDocumentation(); + window.open('./crimeintel-architecture-documentation.pdf', '_blank', 'noopener,noreferrer'); }; return ( diff --git a/frontend/src/modules/dashboard/Workflow.jsx b/frontend/src/modules/dashboard/Workflow.jsx index 3e34899..988966c 100644 --- a/frontend/src/modules/dashboard/Workflow.jsx +++ b/frontend/src/modules/dashboard/Workflow.jsx @@ -82,7 +82,7 @@ export default function Workflow() { {/* Read Architecture Docs Button */}