How mimnets/openhrapp works
OpenHRApp is a multi-tenant HRMS for small and mid-sized organizations. Employees and administrators enter through the React app; its authenticated pages support attendance, leave approvals, reviews, organization management, and reporting, with Supabase providing auth and persisted data. The graph retains the documented product areas even where their implementation was not sampled. Edges are limited to relationships visible in excerpts, SOURCE INDEX references, or README statements; unsampled feature links are omitted.
Main entry points: App.tsx App routing · hrService.ts HR service facade · supabase.ts Supabase client · AuthContext.tsx Authentication
Components 23
App and identity
- App routing
src/App.tsx - Authentication
src/context/AuthContext.tsx - Session lifecycle
src/services/session/sessionManager.ts - Subscription access
src/context/SubscriptionContext.tsx - Offline-ready PWA
src/hooks/useServiceWorker.ts
Workforce operations
- Attendance tracking
src/pages/Attendance.tsx - Leave workflows
src/components/leave - Performance reviews
src/pages/PerformanceReview.tsx - Review data flow
src/hooks/review/usePerformanceReview.ts - Employee directory
src/pages/EmployeeDirectory.tsx - Reports and analytics
src/pages/Reports.tsx
Organization and oversight
- Organization setup
src/pages/Organization.tsx - Announcements
src/pages/Announcements.tsx - Notifications
src/services/notification.service.ts - Superadmin tools
src/pages/SuperAdmin.tsx
Services and persistence
- Attendance service
src/services/attendance.service.ts - Review service
src/services/review.service.ts - HR service facade
src/services/hrService.ts - Organization service
src/services/organization.service.ts - API client
src/services/api.client.ts - Supabase client
src/services/supabase.ts
Other components
- Employee or admin
- Supabase platform
Connections 18
- Employee or admin → App routing: uses
README.md - App routing → Authentication: provides context
src/App.tsx - App routing → Attendance tracking: routes to
src/App.tsx - App routing → Performance reviews: routes to
src/App.tsx - App routing → Subscription access: provides context
src/App.tsx - Authentication → Session lifecycle: delegates lifecycle
- Session lifecycle → Supabase client: refreshes auth
src/services/session/sessionManager.ts - Performance reviews → Review data flow: uses
src/pages/PerformanceReview.tsx - Review data flow → HR service facade: fetches review data
src/hooks/review/usePerformanceReview.ts - HR service facade → Review service: delegates reviews
src/services/hrService.ts - Review service → Supabase platform: reads and writes
src/services/review.service.ts - HR service facade → Attendance service: delegates attendance
src/services/hrService.ts - Attendance service → Supabase client: uses client
- HR service facade → Organization service: delegates organization
src/services/hrService.ts - Organization service → Supabase platform: reads and writes
src/services/organization.service.ts - API client → Supabase client: uses client
src/services/api.client.ts - Supabase client → Supabase platform: connects to
src/services/supabase.ts - Offline-ready PWA → Employee or admin: supports offline use
README.md