Initialize Eigen HRIS project

- Add .gitignore, .yarnrc.yml, and initial project metadata (AGENTS.md, DESIGN.md, package.json, Yarn lock, Tailwind, PostCSS, Next.js config, TypeScript config)
- Add CSV data files (users, employees, contracts, attendances)
- Implement API routes for auth, employees, contracts, attendances, analytics, and file upload
- Add core pages (dashboard, employees, attendances, profile, login, main layout)
- Add UI components (avatar, avatar picker, badge, button, card, input, modal, select, sidebar, navigation shell, top header)
- Add attendance features (table, clock widget, unified permit modal with file upload, upload API)
- Add employee management (contract timeline with file upload, employee form modal, employee table)
- Add dashboard widgets (leaderboard, early bird, latecomer, night owl, day status feed, date filter bar)
- Add utilities (avatar generator, analytics calculations, CSV DB layer, auth context)
- Add type definitions for auth, employee, contract, attendance, dashboard

All changes are synchronized with documentation (AGENTS.md, DESIGN.md, walkthrough).
This commit is contained in:
2026-08-27 17:41:59 +07:00
commit 16cbe65c62
65 changed files with 7804 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
id,employee_id,contract_number,contract_type,start_date,end_date,salary,notes,document_url,created_at
CTR-001,EMP-001,001/EIG-HR/PKWTT/I/2024,PKWTT,2024-01-01,,32000000,Permanent appointment as VP of People & Ops,https://example.com/docs/contract-001.pdf,2024-01-01T08:00:00Z
CTR-002,EMP-002,014/EIG-HR/PKWT-1/III/2024,PKWT,2024-03-15,2025-03-14,20000000,Initial 1-year contract as Lead Frontend Engineer,https://example.com/docs/contract-002.pdf,2024-03-15T08:00:00Z
CTR-003,EMP-002,088/EIG-HR/PKWTT/III/2025,PKWTT,2025-03-15,,24000000,Promoted to permanent employee with salary adjustment,https://example.com/docs/contract-003.pdf,2025-03-15T08:00:00Z
CTR-004,EMP-003,022/EIG-HR/PKWT-1/V/2024,PKWT,2024-05-01,2025-04-30,22000000,Senior Backend Architect initial contract,https://example.com/docs/contract-004.pdf,2024-05-01T08:00:00Z
CTR-005,EMP-003,099/EIG-HR/PKWTT/V/2025,PKWTT,2025-05-01,,26000000,Permanent Senior Backend Architect,https://example.com/docs/contract-005.pdf,2025-05-01T08:00:00Z
CTR-006,EMP-004,031/EIG-HR/PKWTT/VI/2024,PKWTT,2024-06-10,,23000000,Permanent Principal Product Designer,https://example.com/docs/contract-006.pdf,2024-06-10T08:00:00Z
CTR-007,EMP-005,045/EIG-HR/PKWT-1/VIII/2024,PKWT,2024-08-01,2025-07-31,14000000,People Engagement Specialist contract,https://example.com/docs/contract-007.pdf,2024-08-01T08:00:00Z
CTR-008,EMP-005,105/EIG-HR/PKWT-2/VIII/2025,PKWT,2025-08-01,2026-07-31,16500000,Contract extension PKWT 2,https://example.com/docs/contract-008.pdf,2025-08-01T08:00:00Z
CTR-009,EMP-006,052/EIG-HR/PKWT-1/II/2025,PKWT,2025-02-01,2026-01-31,15000000,Growth Marketing Lead 1-year contract,https://example.com/docs/contract-009.pdf,2025-02-01T08:00:00Z
CTR-010,EMP-007,063/EIG-HR/PKWTT/IV/2025,PKWTT,2025-04-15,,18000000,Permanent Financial Analyst,https://example.com/docs/contract-010.pdf,2025-04-15T08:00:00Z
CTR-011,EMP-008,077/EIG-HR/PKWT-1/VII/2025,PKWT,2025-07-01,2026-06-30,17500000,DevOps Engineer 1-year term,https://example.com/docs/contract-011.pdf,2025-07-01T08:00:00Z
1 id employee_id contract_number contract_type start_date end_date salary notes document_url created_at
2 CTR-001 EMP-001 001/EIG-HR/PKWTT/I/2024 PKWTT 2024-01-01 32000000 Permanent appointment as VP of People & Ops https://example.com/docs/contract-001.pdf 2024-01-01T08:00:00Z
3 CTR-002 EMP-002 014/EIG-HR/PKWT-1/III/2024 PKWT 2024-03-15 2025-03-14 20000000 Initial 1-year contract as Lead Frontend Engineer https://example.com/docs/contract-002.pdf 2024-03-15T08:00:00Z
4 CTR-003 EMP-002 088/EIG-HR/PKWTT/III/2025 PKWTT 2025-03-15 24000000 Promoted to permanent employee with salary adjustment https://example.com/docs/contract-003.pdf 2025-03-15T08:00:00Z
5 CTR-004 EMP-003 022/EIG-HR/PKWT-1/V/2024 PKWT 2024-05-01 2025-04-30 22000000 Senior Backend Architect initial contract https://example.com/docs/contract-004.pdf 2024-05-01T08:00:00Z
6 CTR-005 EMP-003 099/EIG-HR/PKWTT/V/2025 PKWTT 2025-05-01 26000000 Permanent Senior Backend Architect https://example.com/docs/contract-005.pdf 2025-05-01T08:00:00Z
7 CTR-006 EMP-004 031/EIG-HR/PKWTT/VI/2024 PKWTT 2024-06-10 23000000 Permanent Principal Product Designer https://example.com/docs/contract-006.pdf 2024-06-10T08:00:00Z
8 CTR-007 EMP-005 045/EIG-HR/PKWT-1/VIII/2024 PKWT 2024-08-01 2025-07-31 14000000 People Engagement Specialist contract https://example.com/docs/contract-007.pdf 2024-08-01T08:00:00Z
9 CTR-008 EMP-005 105/EIG-HR/PKWT-2/VIII/2025 PKWT 2025-08-01 2026-07-31 16500000 Contract extension PKWT 2 https://example.com/docs/contract-008.pdf 2025-08-01T08:00:00Z
10 CTR-009 EMP-006 052/EIG-HR/PKWT-1/II/2025 PKWT 2025-02-01 2026-01-31 15000000 Growth Marketing Lead 1-year contract https://example.com/docs/contract-009.pdf 2025-02-01T08:00:00Z
11 CTR-010 EMP-007 063/EIG-HR/PKWTT/IV/2025 PKWTT 2025-04-15 18000000 Permanent Financial Analyst https://example.com/docs/contract-010.pdf 2025-04-15T08:00:00Z
12 CTR-011 EMP-008 077/EIG-HR/PKWT-1/VII/2025 PKWT 2025-07-01 2026-06-30 17500000 DevOps Engineer 1-year term https://example.com/docs/contract-011.pdf 2025-07-01T08:00:00Z