How harsha-vardhan-03/srishti-cds works
This is a Next.js member portal for Srishti CDS. The main user journey is login, followed by a dashboard with member statistics and navigation to referral and network-tree views. Feature hooks retrieve data through feature API modules and a shared Axios client; login stores the returned session and navigates to the dashboard. The graph also shows the shared dashboard shell and query-client setup. The README is a generic Next.js starter and does not document portal capabilities; connections are limited to relationships supported by sampled source or the source index.
Main entry points: LoginForm.tsx Login form · axiosClient.ts HTTP client · dashboard/page.tsx Dashboard page · referrals/page.tsx Referrals page
Components 31
Application
- Login route
src/app/login/page.tsx - Dashboard shell
src/app/dashboard/layout.tsx - Dashboard page
src/app/dashboard/page.tsx - Referrals page
src/app/dashboard/referrals/page.tsx - Network page
src/app/dashboard/network-tree/page.tsx
Authentication
- Login form
src/features/auth/components/LoginForm.tsx - Login validation
src/features/auth/schemas/loginSchema.ts - Login mutation
src/features/auth/hooks/useLogin.ts - Authentication API
src/features/auth/api/authApi.ts - Session state
src/shared/store/authStore.ts
Member data
- Dashboard stats
src/features/dashboard/hooks/useDashboardStats.ts - Stats API
src/features/dashboard/api/dashboardApi.ts - Stat cards
src/features/dashboard/components/StatCard.tsx - Referrals query
src/features/referrals/hooks/useReferrals.ts - Referrals API
src/features/referrals/api/referralsApi.ts - Referral table
src/features/referrals/components/ReferralTable.tsx - Referral search
src/features/referrals/components/SearchBar.tsx
Network views
- Tree view
src/features/network-tree/components/NetworkTreeView.tsx - Tree node
src/features/network-tree/components/TreeNode.tsx - Level progress
src/features/network-tree/components/LevelProgress.tsx - Tree query
src/features/network-tree/hooks/useNetworkTree.ts - Network tree API
src/features/network-tree/api/networkTreeApi.ts
Shared services
- Header
src/shared/components/layout/Header.tsx - Sidebar
src/shared/components/layout/Sidebar.tsx - Profile menu
src/features/dashboard/components/ProfileMenu.tsx - HTTP client
src/shared/lib/axiosClient.ts - Query defaults
src/shared/lib/queryClient.ts - Text input
src/shared/components/ui/Input.tsx - Button
src/shared/components/ui/Button.tsx
Other components
- Member
- API service
Connections 35
- Member → Login route: opens
- Login route → Login form: renders
src/app/login/page.tsx - Login form → Login validation: validates with
src/features/auth/components/LoginForm.tsx - Login form → Login mutation: submits through
src/features/auth/components/LoginForm.tsx - Login form → Text input: uses
src/features/auth/components/LoginForm.tsx - Login form → Button: uses
src/features/auth/components/LoginForm.tsx - Login mutation → Authentication API: calls
src/features/auth/hooks/useLogin.ts - Authentication API → HTTP client: requests through
src/features/auth/api/authApi.ts - Login mutation → Session state: stores session
src/features/auth/hooks/useLogin.ts - Login mutation → Dashboard page: navigates to
src/features/auth/hooks/useLogin.ts - HTTP client → API service: sends requests
src/shared/lib/axiosClient.ts - Member → Dashboard shell: opens
- Dashboard shell → Header: renders
src/app/dashboard/layout.tsx - Dashboard shell → Sidebar: renders
src/app/dashboard/layout.tsx - Header → Profile menu: renders
src/shared/components/layout/Header.tsx - Sidebar → Session state: reads session
src/shared/components/layout/Sidebar.tsx - Profile menu → Session state: reads session
src/features/dashboard/components/ProfileMenu.tsx - Dashboard page → Dashboard stats: loads stats
src/app/dashboard/page.tsx - Dashboard page → Session state: reads member
src/app/dashboard/page.tsx - Dashboard page → Stat cards: renders
src/app/dashboard/page.tsx - Dashboard stats → Stats API: queries
src/features/dashboard/hooks/useDashboardStats.ts - Stats API → HTTP client: requests through
src/features/dashboard/api/dashboardApi.ts - Member → Referrals page: opens
- Referrals page → Referrals query: loads referrals
src/app/dashboard/referrals/page.tsx - Referrals page → Referral search: renders
src/app/dashboard/referrals/page.tsx - Referrals page → Referral table: renders results
src/app/dashboard/referrals/page.tsx - Referrals query → Referrals API: queries
src/features/referrals/hooks/useReferrals.ts - Referrals API → HTTP client: requests through
src/features/referrals/api/referralsApi.ts - Member → Network page: opens
- Network page → Tree view: renders
src/app/dashboard/network-tree/page.tsx - Tree view → Tree query: loads tree
src/features/network-tree/components/NetworkTreeView.tsx - Tree view → Tree node: renders nodes
src/features/network-tree/components/NetworkTreeView.tsx - Tree view → Level progress: renders progress
src/features/network-tree/components/NetworkTreeView.tsx - Tree query → Network tree API: queries
src/features/network-tree/hooks/useNetworkTree.ts - Network tree API → HTTP client: requests through
src/features/network-tree/api/networkTreeApi.ts