How rajdeep123-ops/cognicare-health-portal- works
CogniCompanion is a cognitive-wellness portal: users create an account or sign in, complete a 30-question screening, review a symptom profile and recommended companion, and reach a dashboard for follow-up and companion access. The app stores accounts and screening results in browser storage; scoring and question data form an internal assessment layer. The server also exposes AI-generated screening summaries with a fallback. Some component wiring is inferred from the visible app structure; the excerpts do not establish whether the screening UI calls the AI endpoint.
Main entry points: App.tsx App Controller · authStorage.ts Account & Results · CognitiveScreening.tsx 30-Question Screening · LoginView.tsx Sign In
Components 19
Portal Experience
- App Controller
src/App.tsx - Navigation
src/components/Navbar.tsx - Wellness Dashboard
src/components/Dashboard/DashboardHome.tsx - Health Tracker
src/components/Dashboard/CognitiveHealthTracker.tsx - Companion Modules
- External Navigation
src/utils/navigation.ts
Screening & Results
- 30-Question Screening
src/components/Screening/CognitiveScreening.tsx - Question Set
src/data/questions.ts - Screening Scoring
src/utils/scoring.ts - Result Profile
src/components/Screening/ScreeningResultModal.tsx
Identity & State
- Sign In
src/components/Auth/LoginView.tsx - Account Setup
src/components/Auth/SignUpView.tsx - Password Recovery
src/components/Auth/ForgotPasswordModal.tsx - Account & Results
src/utils/authStorage.ts - Browser Storage
- Validation & Hashing
src/utils/security.ts
Analysis Services
- Analysis API
server.ts - Gemini AI
Other components
- Portal User
Connections 24
- Portal User → App Controller: uses
- App Controller → Navigation: renders
- App Controller → Sign In: renders
- App Controller → Account Setup: renders
- App Controller → 30-Question Screening: starts
- App Controller → Wellness Dashboard: shows
- Sign In → Account & Results: authenticates
- Sign In → Validation & Hashing: validates
- Sign In → Password Recovery: opens
- Account Setup → Account & Results: registers
- Account & Results → Validation & Hashing: hashes passwords
- Account & Results → Question Set: loads questions
- Account & Results → Screening Scoring: scores sample
- Account & Results → Browser Storage: reads and writes
- 30-Question Screening → Question Set: presents
- 30-Question Screening → Screening Scoring: scores responses
- 30-Question Screening → Result Profile: shows results
- App Controller → Account & Results: loads and saves results
- App Controller → External Navigation: redirects
- External Navigation → Companion Modules: opens
- Wellness Dashboard → Health Tracker: includes
- Wellness Dashboard → External Navigation: opens modules
- Portal User → Analysis API: requests analysis
- Analysis API → Gemini AI: generates summary