How psabhishek298-sys/clint-manegement-system works
TRUQEN CRM manages sales leads through client onboarding, outreach and follow-up, demo tracking, and conversion/completion, with dashboards and reporting across the lifecycle. The routed React app uses shared auth and client contexts; the client context persists records through Supabase. Edges reflect shown routes, imports, calls, or README statements. Some feature pages are indexed but not excerpted, so their detailed internal behavior is not inferred.
Main entry points: App.tsx App Router · ClientContext.tsx Client Context · Dashboard.tsx Executive Dashboard · AllClients.tsx Client Directory
Components 30
App Shell
- App Router
src/App.tsx - Dashboard Layout
src/components/layout/DashboardLayout.tsx - Navigation
src/components/layout/Sidebar.tsx - Theme State
src/context/ThemeContext.tsx
Client Lifecycle
- Client Context
src/context/ClientContext.tsx - Client Onboarding
src/pages/AddClient.tsx - Client Form
src/components/clients/ClientForm.tsx - Client Directory
src/pages/AllClients.tsx - Client Filters
src/components/clients/ClientFilters.tsx - Client Table
src/components/clients/ClientTable.tsx - Client Profile
src/pages/ClientDetails.tsx - Follow-up Manager
src/pages/FollowUps.tsx - Demo Projects
src/pages/DemoProjects.tsx - Completed Projects
src/pages/CompletedProjects.tsx - Category Manager
src/pages/Categories.tsx - Client Import
src/pages/ImportClients.tsx - Spreadsheet Parser
src/utils/excelImport.ts - Cash Fund
src/pages/CashFund.tsx - CRM Utilities
src/utils/helpers.ts
Insights and Reporting
- Executive Dashboard
src/pages/Dashboard.tsx - Activity Feed
src/components/dashboard/ActivityFeed.tsx - Status Overview
src/components/dashboard/StatusOverviewChart.tsx - Category Distribution
src/components/dashboard/CategoryDistribution.tsx - Follow-up Alerts
src/components/dashboard/FollowUpAlerts.tsx
Identity and Persistence
- Sign In
src/pages/Login.tsx - Auth Context
src/context/AuthContext.tsx - Supabase Client
src/services/supabase.ts - Settings
src/pages/Settings.tsx
Other components
- CRM Staff
- Supabase Backend
Connections 47
- CRM Staff → Sign In: signs in
README.md - Sign In → Auth Context: requests auth
src/pages/Login.tsx - Auth Context → Supabase Client: uses client
src/context/AuthContext.tsx - Supabase Client → Supabase Backend: auth and data
README.md - App Router → Auth Context: provides state
src/App.tsx - App Router → Client Context: provides state
src/App.tsx - App Router → Theme State: provides theme
src/App.tsx - App Router → Dashboard Layout: routes through
src/App.tsx - App Router → Sign In: routes to
src/App.tsx - App Router → Executive Dashboard: routes to
src/App.tsx - App Router → Client Directory: routes to
src/App.tsx - App Router → Client Onboarding: routes to
src/App.tsx - App Router → Client Profile: routes to
src/App.tsx - App Router → Follow-up Manager: routes to
src/App.tsx - App Router → Demo Projects: routes to
src/App.tsx - App Router → Category Manager: routes to
src/App.tsx - App Router → Client Import: routes to
src/App.tsx - App Router → Completed Projects: routes to
src/App.tsx - App Router → Cash Fund: routes to
src/App.tsx - App Router → Settings: routes to
src/App.tsx - Dashboard Layout → Navigation: renders
src/components/layout/DashboardLayout.tsx - Client Onboarding → Client Form: renders
src/pages/AddClient.tsx - Client Form → Client Context: reads categories
src/components/clients/ClientForm.tsx - Client Onboarding → Client Context: adds client
src/pages/AddClient.tsx - Client Directory → Client Context: reads clients
src/pages/AllClients.tsx - Client Directory → Client Filters: renders
src/pages/AllClients.tsx - Client Directory → Client Table: renders
src/pages/AllClients.tsx - Client Directory → CRM Utilities: filters and exports
src/pages/AllClients.tsx - Client Table → CRM Utilities: exports selected
src/components/clients/ClientTable.tsx - Client Profile → Client Context: reads and updates
src/pages/ClientDetails.tsx - Client Profile → Client Form: renders edit form
src/pages/ClientDetails.tsx - Follow-up Manager → Client Context: manages schedules
src/pages/FollowUps.tsx - Demo Projects → Client Context: updates demos
src/pages/DemoProjects.tsx - Completed Projects → Client Context: reads clients
src/pages/CompletedProjects.tsx - Category Manager → Client Context: manages categories
src/pages/Categories.tsx - Client Import → Spreadsheet Parser: parses workbook
src/pages/ImportClients.tsx - Client Import → Client Context: imports records
src/pages/ImportClients.tsx - Client Context → Supabase Client: persists records
README.md - Executive Dashboard → Client Context: reads client data
src/pages/Dashboard.tsx - Executive Dashboard → Activity Feed: renders
src/pages/Dashboard.tsx - Executive Dashboard → Status Overview: renders
src/pages/Dashboard.tsx - Executive Dashboard → Category Distribution: renders
src/pages/Dashboard.tsx - Executive Dashboard → Follow-up Alerts: renders
src/pages/Dashboard.tsx - Settings → Theme State: controls theme
src/pages/Settings.tsx - Settings → Client Context: resets legacy data
src/pages/Settings.tsx - Settings → Supabase Client: checks configuration
src/pages/Settings.tsx - Cash Fund → Client Context: reads clients
src/pages/CashFund.tsx