How litongormhel/ohmployee-web works
OHMployee is a workforce operations web platform covering workforce records, staffing and vacancy workflows, approvals, reporting, administration, and user access. The main user flow is sign-in and role-based dashboard access, then using a domain workspace to read or submit operational changes; approvals review queued requests, while query modules access Supabase for data and mutations. The README describes a thin client with business rules, RBAC, and integrity delegated to Supabase. The graph emphasizes documented major workspaces and source-backed links; many routes and query modules were not sampled, so their internal wiring is not inferred.
Main entry points: client.ts Supabase client · auth.ts Session & identity · plantilla/page.tsx Plantilla staffing · vacancy/page.tsx Vacancy pipeline
Components 27
Access & shell
- Login / signup
src/app/(auth)/login/page.tsx - Dashboard
src/app/(dashboard)/dashboard/page.tsx - Session & identity
src/lib/auth.ts - Role permissions
src/lib/rbac.ts - Dashboard shell
src/app/(dashboard)/layout.tsx
Workforce operations
- Plantilla staffing
src/app/(dashboard)/plantilla/page.tsx - Staffing detail
src/app/(dashboard)/plantilla/[id]/page.tsx - Vacancy pipeline
src/app/(dashboard)/vacancy/page.tsx - Applicant pipeline UI
src/components/vacancy/VacancyTable.tsx - HR employee records
src/app/(dashboard)/hr-emploc/page.tsx - Cencom operations
src/app/(dashboard)/cencom/page.tsx
Approvals & governance
- Approval queues
src/app/(dashboard)/approvals/page.tsx - Queue review pane
src/components/approvals/ActiveQueueReviewPane.tsx - Operational requests
src/lib/queries/requests.ts - My requests
src/app/(dashboard)/my-requests/page.tsx - Admin & imports
src/app/(dashboard)/more/page.tsx
Insights & administration
- Reports & integrity
src/app/(dashboard)/reports/page.tsx - Users & access
src/app/(dashboard)/users/page.tsx - Notifications
src/app/(dashboard)/notifications/page.tsx
Data services
- Vacancy data operations
src/lib/queries/vacancy.ts - Staffing data operations
src/lib/queries/plantilla.ts - Employee data operations
src/lib/queries/hr_emploc.ts - Governance operations
src/lib/queries/governance.ts - Supabase client
src/lib/supabase/client.ts - Scoped API client
src/lib/supabase/server.ts - Ohmni API route
src/app/api/ohmni/route.ts
Other components
- Workforce user
Connections 28
- Workforce user → Login / signup: signs in
README.md - Login / signup → Session & identity: authenticates
- Dashboard → Session & identity: checks session
src/app/(dashboard)/dashboard/page.tsx - Session & identity → Supabase client: verifies session
src/lib/auth.ts - Session & identity → Role permissions: resolves access
src/lib/auth.ts - Dashboard shell → Workforce user: frames workspace
- Workforce user → Plantilla staffing: manages staffing
- Workforce user → Vacancy pipeline: runs hiring
- Workforce user → HR employee records: manages records
- Workforce user → Cencom operations: reviews deployment
- Plantilla staffing → Staffing data operations: loads staffing
src/app/(dashboard)/plantilla/page.tsx - Plantilla staffing → Vacancy data operations: loads vacancies
src/app/(dashboard)/plantilla/page.tsx - Vacancy pipeline → Applicant pipeline UI: renders table
src/app/(dashboard)/vacancy/page.tsx - Vacancy pipeline → Vacancy data operations: loads and updates
src/app/(dashboard)/vacancy/page.tsx - Applicant pipeline UI → Vacancy data operations: updates pipeline
- HR employee records → Employee data operations: loads records
src/app/(dashboard)/hr-emploc/page.tsx - Approval queues → Queue review pane: presents queues
- Queue review pane → Operational requests: loads approvals
src/components/approvals/ActiveQueueReviewPane.tsx - My requests → Operational requests: tracks requests
- Admin & imports → Governance operations: administers controls
src/app/(dashboard)/more/page.tsx - Reports & integrity → Supabase client: reads reports
- Users & access → Role permissions: manages access
- Operational requests → Supabase client: reads and writes
src/lib/queries/requests.ts - Staffing data operations → Supabase client: reads and writes
src/lib/queries/plantilla.ts - Employee data operations → Supabase client: reads and writes
src/lib/queries/hr_emploc.ts - Governance operations → Supabase client: loads controls
- Scoped API client → Supabase client: creates scoped client
src/lib/supabase/server.ts - Ohmni API route → Scoped API client: validates bearer
src/app/api/ohmni/route.ts