feat: Comprehensive employee management system improvements

-  Added compact employee forms (add/edit) with all fields visible
- 🎯 Implemented expandable employee rows with timesheet integration
- 📊 Added real KPI calculation based on work hours, sick days, and overtime
- 📅 Added bulk date selection and editing in calendar
- 🗓️ Implemented day-specific editing modal with hours and overtime tracking
- 💾 Extended database schema with overtimeHours field
- 🎨 Improved UI layout: tabs left, search right, real current date display
- 🧹 Fixed spacing issues and removed unnecessary gaps
- 🔧 Enhanced GraphQL mutations for employee schedule management
This commit is contained in:
Bivekich
2025-07-30 17:33:37 +03:00
parent 84720a634d
commit 9062891b0a
12 changed files with 2449 additions and 528 deletions

View File

@ -81,6 +81,7 @@ interface UpdateScheduleInput {
date: string;
status: "WORK" | "WEEKEND" | "VACATION" | "SICK" | "ABSENT";
hoursWorked?: number;
overtimeHours?: number;
notes?: string;
}
@ -4794,11 +4795,13 @@ export const resolvers = {
date: new Date(args.input.date),
status: args.input.status,
hoursWorked: args.input.hoursWorked,
overtimeHours: args.input.overtimeHours,
notes: args.input.notes,
},
update: {
status: args.input.status,
hoursWorked: args.input.hoursWorked,
overtimeHours: args.input.overtimeHours,
notes: args.input.notes,
},
});