From 467dc0b8cf51de5252c21d2073b1e9839d06cba0 Mon Sep 17 00:00:00 2001 From: yashwin-foxy Date: Thu, 14 Aug 2025 20:16:03 +0530 Subject: [PATCH] dashboard added and profile update --- PROJECT_STRUCTURE.md | 4 +- android/app/src/main/res/values/strings.xml | 2 +- app/assets/dicom/dicom-viewer.html | 1144 ++++++---- .../navigation/AIPredictionStackNavigator.tsx | 7 +- app/modules/Auth/redux/authActions.ts | 74 +- app/modules/Auth/screens/LoginScreen.tsx | 4 +- app/modules/Auth/screens/SignUpScreen.tsx | 2 +- app/modules/Auth/services/authAPI.ts | 22 +- .../Dashboard/components/DashboardHeader.tsx | 62 +- app/modules/Dashboard/index.ts | 4 +- .../navigation/DashboardStackNavigator.tsx | 6 +- app/modules/Dashboard/navigation/index.ts | 4 +- .../Dashboard/navigation/navigationTypes.ts | 10 +- .../Dashboard/screens/DashboardScreen.tsx | 811 ++++++++ .../Dashboard/screens/ERDashboardScreen.tsx | 8 - app/modules/Dashboard/screens/patient.json | 57 + .../PatientCare/components/FilterTabs.tsx | 68 +- .../PatientCare/components/PatientCard.tsx | 170 +- .../PatientCare/navigation/navigationTypes.ts | 6 +- .../PatientCare/redux/patientCareSelectors.ts | 275 +-- .../PatientCare/redux/patientCareSlice.ts | 279 ++- .../screens/PatientDetailsScreen.tsx | 1843 +++++++++++++---- .../PatientCare/screens/PatientsScreen.tsx | 710 +++---- .../PatientCare/services/patientAPI.ts | 36 +- .../Settings/components/SettingsHeader.tsx | 31 +- .../navigation/SettingsStackNavigator.tsx | 33 + .../Settings/navigation/navigationTypes.ts | 41 +- .../Settings/screens/AppInfoScreen.tsx | 486 +++++ .../Settings/screens/ChangePasswordScreen.tsx | 826 ++++++++ .../Settings/screens/EditProfileScreen.tsx | 637 ++++++ .../Settings/screens/SettingsScreen.tsx | 206 +- app/modules/Settings/screens/index.ts | 17 + app/navigation/MainTabNavigator.tsx | 4 +- app/shared/components/DicomViewer.tsx | 14 + 34 files changed, 6046 insertions(+), 1857 deletions(-) create mode 100644 app/modules/Dashboard/screens/DashboardScreen.tsx create mode 100644 app/modules/Dashboard/screens/patient.json create mode 100644 app/modules/Settings/screens/AppInfoScreen.tsx create mode 100644 app/modules/Settings/screens/ChangePasswordScreen.tsx create mode 100644 app/modules/Settings/screens/EditProfileScreen.tsx create mode 100644 app/modules/Settings/screens/index.ts diff --git a/PROJECT_STRUCTURE.md b/PROJECT_STRUCTURE.md index 2b0a6ca..7d7deca 100644 --- a/PROJECT_STRUCTURE.md +++ b/PROJECT_STRUCTURE.md @@ -29,7 +29,7 @@ NeoScan_Physician/ │ │ │ │ ├── QuickActions.tsx # Emergency quick actions │ │ │ │ └── DepartmentStats.tsx # Department statistics │ │ │ ├── screens/ # Dashboard screens -│ │ │ │ └── ERDashboardScreen.tsx # Main ER dashboard +│ │ │ │ └── DashboardScreen.tsx # Main ER dashboard │ │ │ ├── hooks/ # Dashboard custom hooks │ │ │ ├── redux/ # Dashboard state management │ │ │ ├── services/ # Dashboard API services @@ -223,7 +223,7 @@ NeoScan_Physician/ ### Dashboard Module **Purpose**: Main ER dashboard with patient monitoring and alerts -- **ERDashboardScreen**: Main dashboard with patient list and statistics +- **DashboardScreen**: Main dashboard with patient list and statistics - **PatientCard**: Individual patient information display - **CriticalAlerts**: High-priority alert notifications - **QuickActions**: Emergency procedure shortcuts diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 236a6dd..c4c180d 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - NeoScanPhysician + Radiologist diff --git a/app/assets/dicom/dicom-viewer.html b/app/assets/dicom/dicom-viewer.html index 7217af0..4e128a1 100644 --- a/app/assets/dicom/dicom-viewer.html +++ b/app/assets/dicom/dicom-viewer.html @@ -1,502 +1,726 @@ - + - - - - - DICOM Viewer - + + .header { + padding: 15px 10px; + } + + .header h2 { + font-size: 18px; + } + + #dicomImage { + height: 300px; + margin: 10px; + max-width: calc(100% - 20px); + } + + .preview-container { + min-height: 250px; + padding: 15px; + } + + .status { + margin: 10px; + padding: 15px; + } + + .frame-counter { + min-width: 60px; + font-size: 11px; + } + } + + @media (max-width: 360px) { + .controls { + gap: 8px; + } + + .btn { + min-height: 44px; + min-width: 44px; + font-size: 14px; + padding: 6px 8px; + } + + .zoom-btn { + width: 44px; + height: 44px; + } + + #dicomImage { + height: 250px; + } + + .preview-container { + min-height: 200px; + padding: 10px; + } + + .preview-icon { + font-size: 40px; + } + + .preview-text { + font-size: 13px; + } + + .preview-subtext { + font-size: 11px; + } + } + + /* Touch feedback for mobile */ + @media (hover: none) and (pointer: coarse) { + .btn:active { + transform: scale(0.95); + background: #1976D2; + } + } + + /* Loading animation */ + .loading { + display: inline-block; + animation: pulse 1.5s ease-in-out infinite; + } + + @keyframes pulse { + 0%, 100% { opacity: 1; } + 50% { opacity: 0.5; } + } + -
-
-
-
Loading DICOM Viewer...
+ +
+

DICOM Viewer

+
+ Ready to load DICOM files + Loading... +
+
+ +
+
+ + +
+ +
+ + + +
+ +
+
+ +
No images
+
+
-