Refactors employee details and UI controls
Enhances employee hours view with dynamic weekly schedule rendering Updates toggle slider and theme switch components with improved interactions Adds more flexible notification and settings configurations for employees Improves user experience by streamlining UI controls and schedule display
This commit is contained in:
parent
6746e876d7
commit
545d6606a6
18 changed files with 506 additions and 206 deletions
|
|
@ -3,10 +3,10 @@
|
|||
"year": 2025,
|
||||
"startDate": "2025-12-23",
|
||||
"endDate": "2025-12-29",
|
||||
"closedDays": ["2025-12-25"],
|
||||
"closedDays": ["2025-12-25", "2026-01-01"],
|
||||
"employees": [
|
||||
{
|
||||
"employeeId": "emp-1",
|
||||
"employeeId": "employee-1",
|
||||
"name": "Anna Sørensen",
|
||||
"weeklyHours": 32,
|
||||
"schedule": {
|
||||
|
|
@ -16,11 +16,39 @@
|
|||
"2025-12-26": { "status": "off" },
|
||||
"2025-12-27": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2025-12-28": { "status": "work", "start": "10:00", "end": "14:00" },
|
||||
"2025-12-29": { "status": "off" }
|
||||
"2025-12-29": { "status": "off" },
|
||||
"2025-12-30": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2025-12-31": { "status": "work", "start": "09:00", "end": "14:00" },
|
||||
"2026-01-01": { "status": "off" },
|
||||
"2026-01-02": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-03": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-04": { "status": "work", "start": "10:00", "end": "14:00" },
|
||||
"2026-01-05": { "status": "off" },
|
||||
"2026-01-06": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-07": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-08": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-09": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-10": { "status": "off" },
|
||||
"2026-01-11": { "status": "off" },
|
||||
"2026-01-12": { "status": "off" },
|
||||
"2026-01-13": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-14": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-15": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-16": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-17": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-18": { "status": "off" },
|
||||
"2026-01-19": { "status": "off" },
|
||||
"2026-01-20": { "status": "vacation" },
|
||||
"2026-01-21": { "status": "vacation" },
|
||||
"2026-01-22": { "status": "vacation" },
|
||||
"2026-01-23": { "status": "vacation" },
|
||||
"2026-01-24": { "status": "vacation" },
|
||||
"2026-01-25": { "status": "off" },
|
||||
"2026-01-26": { "status": "off" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"employeeId": "emp-2",
|
||||
"employeeId": "employee-2",
|
||||
"name": "Mette Jensen",
|
||||
"weeklyHours": 40,
|
||||
"schedule": {
|
||||
|
|
@ -30,11 +58,39 @@
|
|||
"2025-12-26": { "status": "vacation" },
|
||||
"2025-12-27": { "status": "vacation" },
|
||||
"2025-12-28": { "status": "off" },
|
||||
"2025-12-29": { "status": "off" }
|
||||
"2025-12-29": { "status": "off" },
|
||||
"2025-12-30": { "status": "vacation" },
|
||||
"2025-12-31": { "status": "vacation" },
|
||||
"2026-01-01": { "status": "off" },
|
||||
"2026-01-02": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-03": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-04": { "status": "off" },
|
||||
"2026-01-05": { "status": "off" },
|
||||
"2026-01-06": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-07": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-08": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-09": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-10": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-11": { "status": "off" },
|
||||
"2026-01-12": { "status": "off" },
|
||||
"2026-01-13": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-14": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-15": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-16": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-17": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-18": { "status": "off" },
|
||||
"2026-01-19": { "status": "off" },
|
||||
"2026-01-20": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-21": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-22": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-23": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-24": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-25": { "status": "off" },
|
||||
"2026-01-26": { "status": "off" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"employeeId": "emp-3",
|
||||
"employeeId": "employee-3",
|
||||
"name": "Louise Nielsen",
|
||||
"weeklyHours": 37,
|
||||
"schedule": {
|
||||
|
|
@ -44,11 +100,39 @@
|
|||
"2025-12-26": { "status": "off" },
|
||||
"2025-12-27": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2025-12-28": { "status": "work", "start": "09:00", "end": "14:00" },
|
||||
"2025-12-29": { "status": "off" }
|
||||
"2025-12-29": { "status": "off" },
|
||||
"2025-12-30": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2025-12-31": { "status": "work", "start": "09:00", "end": "13:00" },
|
||||
"2026-01-01": { "status": "off" },
|
||||
"2026-01-02": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-03": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-04": { "status": "off" },
|
||||
"2026-01-05": { "status": "off" },
|
||||
"2026-01-06": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-07": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-08": { "status": "sick" },
|
||||
"2026-01-09": { "status": "sick" },
|
||||
"2026-01-10": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-11": { "status": "off" },
|
||||
"2026-01-12": { "status": "off" },
|
||||
"2026-01-13": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-14": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-15": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-16": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-17": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-18": { "status": "off" },
|
||||
"2026-01-19": { "status": "off" },
|
||||
"2026-01-20": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-21": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-22": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-23": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-24": { "status": "work", "start": "09:00", "end": "17:00" },
|
||||
"2026-01-25": { "status": "off" },
|
||||
"2026-01-26": { "status": "off" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"employeeId": "emp-4",
|
||||
"employeeId": "employee-4",
|
||||
"name": "Katrine Pedersen",
|
||||
"weeklyHours": 24,
|
||||
"schedule": {
|
||||
|
|
@ -58,11 +142,39 @@
|
|||
"2025-12-26": { "status": "off" },
|
||||
"2025-12-27": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2025-12-28": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2025-12-29": { "status": "off" }
|
||||
"2025-12-29": { "status": "off" },
|
||||
"2025-12-30": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2025-12-31": { "status": "off" },
|
||||
"2026-01-01": { "status": "off" },
|
||||
"2026-01-02": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-03": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-04": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-05": { "status": "off" },
|
||||
"2026-01-06": { "status": "off" },
|
||||
"2026-01-07": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-08": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-09": { "status": "off" },
|
||||
"2026-01-10": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-11": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-12": { "status": "off" },
|
||||
"2026-01-13": { "status": "off" },
|
||||
"2026-01-14": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-15": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-16": { "status": "off" },
|
||||
"2026-01-17": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-18": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-19": { "status": "off" },
|
||||
"2026-01-20": { "status": "off" },
|
||||
"2026-01-21": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-22": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-23": { "status": "off" },
|
||||
"2026-01-24": { "status": "work", "start": "12:00", "end": "20:00" },
|
||||
"2026-01-25": { "status": "work", "start": "10:00", "end": "18:00" },
|
||||
"2026-01-26": { "status": "off" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"employeeId": "emp-5",
|
||||
"employeeId": "employee-5",
|
||||
"name": "Sofie Andersen",
|
||||
"weeklyHours": 20,
|
||||
"schedule": {
|
||||
|
|
@ -72,7 +184,35 @@
|
|||
"2025-12-26": { "status": "off" },
|
||||
"2025-12-27": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2025-12-28": { "status": "off" },
|
||||
"2025-12-29": { "status": "off" }
|
||||
"2025-12-29": { "status": "off" },
|
||||
"2025-12-30": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2025-12-31": { "status": "off" },
|
||||
"2026-01-01": { "status": "off" },
|
||||
"2026-01-02": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-03": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-04": { "status": "off" },
|
||||
"2026-01-05": { "status": "off" },
|
||||
"2026-01-06": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-07": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-08": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-09": { "status": "off" },
|
||||
"2026-01-10": { "status": "off" },
|
||||
"2026-01-11": { "status": "off" },
|
||||
"2026-01-12": { "status": "off" },
|
||||
"2026-01-13": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-14": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-15": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-16": { "status": "off" },
|
||||
"2026-01-17": { "status": "off" },
|
||||
"2026-01-18": { "status": "off" },
|
||||
"2026-01-19": { "status": "off" },
|
||||
"2026-01-20": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-21": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-22": { "status": "work", "start": "09:00", "end": "15:00" },
|
||||
"2026-01-23": { "status": "off" },
|
||||
"2026-01-24": { "status": "off" },
|
||||
"2026-01-25": { "status": "off" },
|
||||
"2026-01-26": { "status": "off" }
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue