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:
@ -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,
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user