How codeacc384-coder/hr_hrms works
Horizon HRM is a browser-based HR administration portal: an HR user signs in, enters a protected workspace, and uses pages for workforce administration, attendance, payroll, documents, approvals, and reporting. The pages access Supabase directly; shared profile and workforce helpers support selected views. The README describes a narrower HR Documents/Team Lead package than the routed application shown in src/App.jsx; unsampled page behavior and most backend relationships are therefore represented conservatively.
Main entry points: App.jsx Routes and access · supabase.js Supabase client · workforce.js Workforce rules · Dashboard.jsx Dashboard
Components 24
Access and shell
- Routes and access
src/App.jsx - Sign in
src/pages/login/Login.jsx - Workspace shell
src/components/layout/AppLayout.jsx - Settings
src/pages/settings/Settings.jsx
Workforce operations
- Dashboard
src/pages/dashboard/Dashboard.jsx - Employment and teams
src/pages/employment/Employment.jsx - Onboarding
src/pages/onboarding/Onboarding.jsx - Attendance
src/pages/attendance/Attendance.jsx
Compensation
- Payroll
src/pages/payroll/Payroll.jsx - Salary processing
src/pages/SalaryProcessing/SalaryProcessing.jsx - Salary structure
src/pages/SalaryStructure/SalaryStructure.jsx - Payslips
src/pages/payslips/PaySlips.jsx - Payroll modules
src/pages/payroll/PayrollModule.jsx
Resources and oversight
- Approvals
src/pages/approvals/Approvals.jsx - Complaints
src/pages/complaints/Complaints.jsx - Documents
src/pages/Documents/Documents.jsx - Reports
src/pages/reports/Reports.jsx - Notifications
src/pages/notifications/Notifications.jsx
Shared services
- Current profile
src/hooks/useCurrentProfile.js - Workforce rules
src/utils/workforce.js - Supabase client
src/lib/supabase.js - Supabase services
- Document storage
Other components
- HR user
Connections 43
- HR user → Routes and access: opens portal
src/App.jsx - Routes and access → Sign in: routes to
src/App.jsx - Routes and access → Workspace shell: protects workspace
src/App.jsx - Routes and access → Dashboard: routes to
src/App.jsx - Routes and access → Employment and teams: routes to
src/App.jsx - Routes and access → Onboarding: routes to
src/App.jsx - Routes and access → Attendance: routes to
src/App.jsx - Routes and access → Payroll: routes to
src/App.jsx - Routes and access → Salary processing: routes to
src/App.jsx - Routes and access → Salary structure: routes to
src/App.jsx - Routes and access → Payslips: routes to
src/App.jsx - Routes and access → Approvals: routes to
src/App.jsx - Routes and access → Complaints: routes to
src/App.jsx - Routes and access → Documents: routes to
src/App.jsx - Routes and access → Reports: routes to
src/App.jsx - Routes and access → Notifications: routes to
src/App.jsx - Routes and access → Settings: routes to
src/App.jsx - Workspace shell → Current profile: renders profile
- Dashboard → Workforce rules: uses rules
src/pages/dashboard/Dashboard.jsx - Attendance → Workforce rules: uses rules
src/pages/attendance/Attendance.jsx - Employment and teams → Workforce rules: uses rules
src/pages/employment/Employment.jsx - Payroll → Workforce rules: uses rules
src/pages/payroll/Payroll.jsx - Reports → Workforce rules: uses rules
src/pages/reports/Reports.jsx - Sign in → Supabase client: authenticates through
src/pages/login/Login.jsx - Routes and access → Supabase client: checks session
src/App.jsx - Current profile → Supabase client: loads profile
src/hooks/useCurrentProfile.js - Dashboard → Supabase client: reads data
src/pages/dashboard/Dashboard.jsx - Employment and teams → Supabase client: reads and writes
src/pages/employment/Employment.jsx - Onboarding → Supabase client: uses data
src/pages/onboarding/Onboarding.jsx - Attendance → Supabase client: uses data
src/pages/attendance/Attendance.jsx - Payroll → Supabase client: uses data
src/pages/payroll/Payroll.jsx - Salary processing → Supabase client: uses data
src/pages/SalaryProcessing/SalaryProcessing.jsx - Salary structure → Supabase client: uses data
src/pages/SalaryStructure/SalaryStructure.jsx - Payslips → Supabase client: uses data
src/pages/payslips/PaySlips.jsx - Payroll modules → Supabase client: queries and saves
src/pages/payroll/PayrollModule.jsx - Approvals → Supabase client: uses data
src/pages/approvals/Approvals.jsx - Complaints → Supabase client: uses data
src/pages/complaints/Complaints.jsx - Documents → Supabase client: uses data
src/pages/Documents/Documents.jsx - Reports → Supabase client: uses data
src/pages/reports/Reports.jsx - Notifications → Supabase client: uses data
src/pages/notifications/Notifications.jsx - Settings → Supabase client: uses data
src/pages/settings/Settings.jsx - Supabase client → Supabase services: connects to
src/lib/supabase.js - Documents → Document storage: uploads files
src/pages/Documents/Documents.jsx