How parvez141300/zentro-hr-payroll-sass-erp-client works
Zentro is a multi-tenant HR and payroll ERP frontend serving six roles, from platform administration to employee self-service. The principal workflow is: a user registers or signs in, reaches a role-appropriate dashboard, manages or views workforce records, and handles attendance, leave, or payroll tasks. The tree and README establish these product areas, while sampled auth and HTTP code show server actions delegating to services that call a backend API. Many domain-specific UI-to-service links were not sampled, so those links are marked unverified.
Main entry points: (roleBasedProtectedRoute) Role Dashboards · actions Domain Actions · httpServer.ts Server HTTP Client · (authLayout) Login and Register
Components 20
Entry and Access
- Public Site
src/app/(commonLayout) - Login and Register
src/app/(authLayout) - Auth Forms
src/components/modules/authentication - Auth Actions
src/actions/auth.action.ts - Auth Service
src/services/auth.service.ts - Role Dashboards
src/app/(dashboardLayout)/(roleBasedProtectedRoute)
Workforce Management
- Role Profiles
src/components/modules/(dashboard)/(common)/profile - Employee Management
src/components/modules/(dashboard)/dashboard/manageEmployeeTable - Organization Setup
src/components/modules/(dashboard)/dashboard/manageDepartmentTable
HR Operations
- Attendance
src/components/modules/(dashboard)/dashboard/manageAttendanceTable - Leave Management
src/components/modules/(dashboard)/dashboard/manageLeaveTable - Payroll
src/components/modules/(dashboard)/dashboard/managePayrollTable
Platform and Billing
- Platform Administration
src/app/(dashboardLayout)/(roleBasedProtectedRoute)/(platformSuperAdminRoute) - Subscription Plans
src/services/subscriptionPlanConfig.service.ts
API and Session Layer
- Domain Actions
src/actions - Domain Services
src/services - Server HTTP Client
src/lib/http/httpServer.ts - Session and Tokens
src/lib/auth/refresh.server.ts
Other components
- User
- Express API
Connections 24
- User → Public Site: browses
README.md - User → Login and Register: signs in
src/app/(authLayout)/login/page.tsx - Login and Register → Auth Forms: renders
src/app/(authLayout)/login/page.tsx - Auth Forms → Auth Actions: submits
- Auth Actions → Auth Service: delegates
src/actions/auth.action.ts - Auth Service → Server HTTP Client: calls
src/services/auth.service.ts - Server HTTP Client → Express API: sends requests
src/lib/http/httpServer.ts - Server HTTP Client → Session and Tokens: refreshes tokens
src/lib/http/httpServer.ts - User → Role Dashboards: opens role view
README.md - Role Dashboards → Role Profiles: shows profile
- Role Dashboards → Employee Management: manages employees
- Role Dashboards → Organization Setup: manages departments
- Role Dashboards → Attendance: manages attendance
- Role Dashboards → Leave Management: handles leave
- Role Dashboards → Payroll: processes payroll
- Role Dashboards → Platform Administration: routes by role
README.md - Platform Administration → Subscription Plans: manages plans
- Employee Management → Domain Actions: submits changes
- Organization Setup → Domain Actions: submits changes
- Attendance → Domain Actions: submits records
- Leave Management → Domain Actions: submits requests
- Payroll → Domain Actions: submits payroll
- Domain Actions → Domain Services: delegates
src/actions/auth.action.ts - Domain Services → Server HTTP Client: calls API
src/services/auth.service.ts