Skip to content

Employee Fatigue Dashboard addition#397

Open
Cornel-design wants to merge 1 commit into
mainfrom
Cornell/Features/FatigueDashboardFix
Open

Employee Fatigue Dashboard addition#397
Cornel-design wants to merge 1 commit into
mainfrom
Cornell/Features/FatigueDashboardFix

Conversation

@Cornel-design
Copy link
Copy Markdown
Collaborator

This push introduces a Shift Fatigue Monitoring section to the Employer Dashboard that computes fatigue risk per guard from /shifts/myshifts. It normalizes shift data, parses dates or and times safely including ISO strings, and calculates shift duration. Guards are flagged as overworked when they have shifts ≥12 hours or rest gaps <12 hours between consecutive shifts. A “rest recommendation” score is derived from the shortest rest gap.

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant