How mahipal1127/solarpulse works
Solar Pulse OS is a multi-tenant solar-business ERP with role-specific workspaces spanning HR, finance, sales, operations, distribution, technical, DISCOM, marketing, store, tender, and executive oversight. Users sign in and enter a guarded module workspace, manage domain records and tasks, and receive results through dashboards, reports, and workflow updates. Next.js route handlers and domain services mediate application operations against Supabase; Postgres RLS is the documented data-access boundary. The README documents broad capabilities, but many module implementations were not sampled, so their internal links are omitted or marked unverified.
Main entry points: api API routes · app Role workspaces · services Domain services · tasks.ts Task workflows
Components 27
Access and platform
- Role workspaces
app - Sign-in
app/login/page.tsx - Access guards
lib/auth/guards.ts - API routes
app/api - Input schemas
lib/validation/schemas.ts - Domain services
lib/services - Supabase
lib/supabase/server.ts - Audit logging
lib/audit/log.ts
Work management
- Task workflows
lib/services/tasks.ts - Employee task board
components/employee/MyTaskBoard.tsx - Department task inbox
components/shared/DepartmentTaskInbox.tsx - AI assistant panel
components/shared/PulseAIPanel.tsx - AI features
lib/ai
Commercial operations
- Sales pipeline
app/sales - Finance operations
app/finance - Distribution and purchasing
app/distribution - Store and inventory
app/store
Solar delivery
- Surveys and design
app/technical - Installations and service
app/om - Rooftop projects
app/rooftop - DISCOM and subsidy
app/discom - Tender and bids
app/(tender)
People and oversight
- HR and workforce
app/hr - Marketing
app/marketing - Executive oversight
app/(ceo) - Employee reports
lib/services/employee-reports.ts
Other components
- ERP users
Connections 28
- ERP users → Sign-in: signs in
README.md - ERP users → Role workspaces: uses
- Sign-in → Access guards: checks session
- Role workspaces → Access guards: guards access
README.md - Role workspaces → API routes: submits operations
- API routes → Input schemas: validates input
README.md - API routes → Domain services: dispatches
app/api/discom-documents/route.ts - Domain services → Supabase: reads and writes
README.md - Supabase → ERP users: enforces RLS
README.md - Domain services → Audit logging: logs mutations
README.md - Role workspaces → Task workflows: uses task workflows
- Employee task board → Task workflows: manages tasks
- Department task inbox → Task workflows: delegates tasks
- Role workspaces → AI assistant panel: offers assistant
app/sales/dashboard/page.tsx - AI assistant panel → AI features: presents AI features
components/shared/PulseAIPanel.tsx - Sales pipeline → API routes: manages sales records
- Finance operations → API routes: manages finance records
- Distribution and purchasing → API routes: manages purchasing
- Store and inventory → API routes: manages inventory
- Surveys and design → API routes: manages surveys
- Installations and service → API routes: manages service
- Rooftop projects → API routes: manages projects
- DISCOM and subsidy → API routes: manages applications
- Tender and bids → API routes: manages bids
- HR and workforce → API routes: manages workforce
- Marketing → API routes: manages campaigns
- Executive oversight → API routes: oversees operations
- Role workspaces → Employee reports: views reports
app/(ceo)/reports/page.tsx