How 04rishabhgupta/incubatorportfoliohealth works
This is a demo portfolio-management application for an investment/incubation team and startup founders. Staff sign in, review portfolio health and individual startup records, then manage assessments, mentor matching, requests, and submissions; founders use token-based pages to submit requested information. The central workflow is backed by a persisted client store, seeded records, derived portfolio signals, and AI-style investibility analysis. The source index confirms several page-to-module dependencies, but unsampled page logic and external integrations are not inferred beyond those references.
Main entry points: index.ts Persisted App State · rbac.ts Role Permissions · portfolio/page.tsx Portfolio Dashboard · [id]/page.tsx Manager View
Components 22
Access and Roles
- Login
src/app/login/page.tsx - Auth Guard
src/components/AuthGuard.tsx - Role Permissions
src/lib/rbac.ts - Demo Accounts
src/data/seed/users.ts
Portfolio Operations
- Portfolio Dashboard
src/app/(authenticated)/portfolio/page.tsx - Administration
src/app/(authenticated)/admin/page.tsx - Manager View
src/app/(authenticated)/admin/managers/[id]/page.tsx - Startup Profile
src/app/(authenticated)/startups/[id]/page.tsx - Assessments
src/app/(authenticated)/assessments/page.tsx - Mentor Matching
src/app/(authenticated)/mentor-connect/page.tsx - Submission Review
src/app/(authenticated)/submissions/page.tsx - Founder Portal
src/app/founder/[token]/page.tsx - Startup Import
src/components/portfolio/StartupUploadModal.tsx - Startup Comparison
src/components/portfolio/StartupComparison.tsx - Excel Processing
src/lib/excelService.ts
Startup Support
- FITT Workspace
src/components/fitt/FittStartupPage.tsx
Application State
- Investibility Analysis
src/lib/aiAnalysis.ts - Portfolio Signals
src/lib/derived.ts - Persisted App State
src/store/index.ts
Shared UI
- UI Components
src/components/ui
Other components
- Investment Staff
- Startup Founder
Connections 27
- Investment Staff → Login: signs in
src/app/login/page.tsx - Login → Demo Accounts: checks credentials
src/app/login/page.tsx - Login → Persisted App State: sets session
src/app/login/page.tsx - Auth Guard → Persisted App State: checks session
src/components/AuthGuard.tsx - Portfolio Dashboard → Persisted App State: reads portfolio
src/app/(authenticated)/portfolio/page.tsx - Portfolio Dashboard → Role Permissions: checks roles
src/app/(authenticated)/portfolio/page.tsx - Portfolio Dashboard → Portfolio Signals: uses signals
src/app/(authenticated)/portfolio/page.tsx - Portfolio Dashboard → Startup Comparison: compares startups
src/app/(authenticated)/portfolio/page.tsx - Administration → Persisted App State: reads state
src/app/(authenticated)/admin/page.tsx - Manager View → Persisted App State: reads state
src/app/(authenticated)/admin/managers/[id]/page.tsx - Manager View → Excel Processing: exports data
src/app/(authenticated)/admin/managers/[id]/page.tsx - Manager View → Startup Comparison: uses comparison
src/app/(authenticated)/admin/managers/[id]/page.tsx - Assessments → Persisted App State: reads state
src/app/(authenticated)/assessments/page.tsx - Assessments → Role Permissions: checks roles
src/app/(authenticated)/assessments/page.tsx - Mentor Matching → Persisted App State: reads state
src/app/(authenticated)/mentor-connect/page.tsx - Mentor Matching → Role Permissions: checks roles
src/app/(authenticated)/mentor-connect/page.tsx - Submission Review → Persisted App State: reads state
src/app/(authenticated)/submissions/page.tsx - Submission Review → Role Permissions: checks roles
src/app/(authenticated)/submissions/page.tsx - Startup Founder → Founder Portal: submits information
src/app/founder/[token]/page.tsx - Founder Portal → Persisted App State: updates state
src/app/founder/[token]/page.tsx - Startup Profile → Persisted App State: reads state
src/app/(authenticated)/startups/[id]/page.tsx - Startup Profile → Role Permissions: checks roles
src/app/(authenticated)/startups/[id]/page.tsx - Startup Profile → FITT Workspace: renders workspace
src/app/(authenticated)/startups/[id]/page.tsx - Startup Import → Persisted App State: updates startups
src/components/portfolio/StartupUploadModal.tsx - Startup Import → Excel Processing: parses workbook
src/components/portfolio/StartupUploadModal.tsx - Startup Import → Investibility Analysis: requests analysis
src/components/portfolio/StartupUploadModal.tsx - Persisted App State → Investibility Analysis: computes scores
src/store/index.ts