How payal225/human-resource-management-system works
This is a client-facing HR management dashboard: users enter through a home dashboard and navigate to employee records, attendance, leave, and salary views. Employee management supports listing, local add/edit/delete, and remote employee lookup; attendance summarizes and displays sample records. The README also describes theme support, reflected in the theme provider. The sampled code shows no persistent HR database, and leave/salary implementation details were not sampled, so those capabilities are represented only by their routes.
Main entry points: app/page.tsx Dashboard · employees/page.tsx Employee directory · [id]/page.tsx Employee detail · store.ts Redux store
Components 19
HR workflows
- Dashboard
src/app/page.tsx - Employee directory
src/app/employees/page.tsx - Employee detail
src/app/employee/[id]/page.tsx - Attendance view
src/app/attendance/page.tsx - Attendance records
src/app/data/attendance.ts - Leave management
src/app/leaves/page.tsx - Salary management
src/app/salary/page.tsx
App shell
- App layout
src/app/layout.tsx - App providers
src/app/providers.tsx
Shared UI
Client state
- Theme provider
src/context/themeProvider.tsx - Redux store
src/store/store.ts - Sidebar state
src/store/sidebarSlice.ts
Other components
- HR user
- DummyJSON users API
- Browser local storage
Connections 21
- HR user → Dashboard: opens
README.md - Dashboard → Employee directory: links to
src/app/page.tsx - Dashboard → Leave management: links to
src/app/page.tsx - Dashboard → Salary management: links to
src/app/page.tsx - Dashboard → Attendance view: links to
src/app/page.tsx - Employee directory → Employee detail: links to
src/app/employees/page.tsx - Employee directory → DummyJSON users API: fetches users
src/app/employees/page.tsx - Employee detail → DummyJSON users API: fetches record
src/app/employee/[id]/page.tsx - Attendance view → Attendance records: reads
src/app/attendance/page.tsx - Employee directory → Dialog: renders
src/app/employees/page.tsx - Employee detail → Dialog: renders
src/app/employee/[id]/page.tsx - Dashboard → Sidebar: renders
src/app/page.tsx - Dashboard → Button: renders
src/app/page.tsx - Dashboard → Card: renders
src/app/page.tsx - Dashboard → Redux store: reads state
src/app/page.tsx - Dashboard → Sidebar state: dispatches toggle
src/app/page.tsx - Sidebar → Redux store: reads state
src/components/ui/Sidebar.tsx - App layout → App providers: renders
src/app/layout.tsx - App layout → Theme provider: wraps app
src/app/layout.tsx - App providers → Redux store: provides store
src/app/providers.tsx - Theme provider → Browser local storage: reads and writes
src/context/themeProvider.tsx