How kk666679/dashboardhr works
AiFWMS is a Malaysian HR and foreign-worker management platform. Users manage worker and employee lifecycles, attendance, payroll, compliance, and operational workflows through localized web dashboards; AI orchestration and regulatory intelligence support those operations. The graph preserves the README’s major product areas and the sampled AHROS execution layers. Most domain routes and integrations were not sampled, so their internal calls are omitted or marked unverified rather than inferred from directory names.
Main entry points: foreign-workers/page.tsx Foreign Worker Lifecycle · workflowEngine.ts Workflow Runtime API · use-business-event-pipeline.ts Business Event Pipeline · payroll/page.tsx Payroll & Statutory
Components 25
Workforce Operations
- Employee Lifecycle
app/[locale]/dashboard/employees/page.tsx - Foreign Worker Lifecycle
app/[locale]/dashboard/foreign-workers/page.tsx - Permits & Visas
app/[locale]/dashboard/permits/page.tsx - Geolocation Attendance
app/[locale]/dashboard/geolocation/page.tsx - Worker Accommodation
app/[locale]/dashboard/accommodation/page.tsx
Payroll & Finance
- Payroll & Statutory
app/[locale]/dashboard/payroll/page.tsx - Accounting & E-invoice
app/[locale]/accounting/page.tsx
Compliance & Quality
- Regulatory Intelligence
lib/regulatory/change-pipeline.ts - Compliance Management
app/[locale]/dashboard/compliance/page.tsx - ISO & Quality
app/[locale]/iso/page.tsx - SOP Management
app/api/sops/route.ts
Automation & AI
- Workflow Designer
app/[locale]/automation/flow-process/components/FlowDesigner.tsx - Workflow Runtime API
server/routers/workflowEngine.ts - Workflow Engine
lib/workflow-engine.ts - AHROS Workspace
components/ahros/workspace/ahros-workspace.tsx - Business Event Pipeline
lib/ahros/wiring/use-business-event-pipeline.ts - Execution Engine
lib/ahros/execution-engine.ts - Artifact Event Bus
lib/ahros/event-bus.ts - HR Orchestrator
lib/orchestrator/hr-orchestrator.ts - Orchestrator API
app/api/hr-orchestrator/route.ts - Knowledge Retrieval
lib/kb/index.ts
Platform Services
- Tenant Data Store
lib/prisma.ts - External Integrations
app/[locale]/dashboard/integrations/page.tsx - Analytics & Reports
app/[locale]/dashboard/reports/page.tsx
Other components
- HR User
Connections 23
- HR User → Employee Lifecycle: manages workforce
README.md - HR User → Foreign Worker Lifecycle: manages lifecycle
README.md - HR User → Payroll & Statutory: runs payroll
README.md - HR User → Workflow Designer: designs workflows
README.md - Employee Lifecycle → Foreign Worker Lifecycle: supports lifecycle
- Foreign Worker Lifecycle → Permits & Visas: manages permits
README.md - Foreign Worker Lifecycle → Geolocation Attendance: tracks attendance
README.md - Foreign Worker Lifecycle → Worker Accommodation: tracks housing
README.md - Payroll & Statutory → Accounting & E-invoice: supports accounting
- Regulatory Intelligence → Compliance Management: updates requirements
- Compliance Management → ISO & Quality: supports quality
README.md - Workflow Designer → Workflow Runtime API: configures workflows
- Workflow Runtime API → Workflow Engine: controls runtime
- Workflow Runtime API → Tenant Data Store: stores workflow data
server/routers/workflowEngine.ts - AHROS Workspace → Business Event Pipeline: starts event pipeline
- Business Event Pipeline → Execution Engine: initializes execution
lib/ahros/wiring/use-business-event-pipeline.ts - Execution Engine → Artifact Event Bus: publishes events
lib/ahros/execution-engine.ts - Business Event Pipeline → Artifact Event Bus: synchronizes artifacts
lib/ahros/wiring/use-business-event-pipeline.ts - Orchestrator API → HR Orchestrator: dispatches request
app/api/hr-orchestrator/route.ts - Orchestrator API → Knowledge Retrieval: retrieves context
- Regulatory Intelligence → Tenant Data Store: records changes
lib/regulatory/change-pipeline.ts - External Integrations → Foreign Worker Lifecycle: exchanges data
- Analytics & Reports → Payroll & Statutory: reports payroll