Skip to content

4.968.0

Choose a tag to compare

@github-actions github-actions released this 31 Oct 04:31
· 29 commits to master since this release
cc1a058

Summary

  • Added supervisor-approved staffing for assigned, signup, and static shifts.
  • Added the On-Shift Hours report with department, group, shift, and static-shift scopes.
  • Corrected static-shift time handling by storing editor input in UTC and converting it to department-local time for display and reporting.
  • Added localized UI, report text, documentation, database migrations, and automated coverage.

Functional Changes

Shift staffing

  • Supervisors can review staffing by day, including past shift days.
  • Automatic staffing is derived from:
    • Assigned shift rosters
    • Signup shifts, including approved signups and trades
    • Static-shift unit crews
  • Supervisors can approve a day’s staffing and override the automatic personnel.
  • Approved staffing can be reverted to automatic staffing.
  • Shift-day approvals update the current roster when the day is still in progress. Past days record who worked without changing the roster.
  • Group supervisors can manage only the groups within their scope; department-wide supervisors can manage non-group personnel and static shifts.
  • Static-shift staffing is managed per unit and requires selected personnel to belong to one of the shift’s units.
  • The staffing page now includes:
    • Staffing-by-day overview
    • Automatic versus approved staffing details
    • Added and removed personnel indicators
    • Static-shift and unit staffing support
    • Links from shift details to the staffing editor

On-Shift Hours report

  • Added a report available from the Reports area.
  • Reports hours per person across assigned, signup, and static shifts.
  • Supports reporting for:
    • The entire department
    • A department group, including child groups
    • A single assigned, signup, or static shift
  • Separates approved hours from automatic hours.
  • Breaks hours down by shift type and includes per-occurrence details.
  • Clips shifts to the selected reporting period, including shifts that cross date boundaries.
  • Prevents duplicate counting when a person occupies multiple slots on the same shift occurrence.
  • Applies personnel visibility permissions before displaying results.
  • Provides a CSV download containing per-person, per-shift details.

Data and Infrastructure

  • Added staffing and reporting domain models, calculation logic, and service APIs.
  • Added repository support for loading staffing records with personnel across a department date range.
  • Added SQL Server and PostgreSQL migrations for:
    • Correcting the static-shift fill user ID column type
    • Indexing staffing date-range and static-shift-day lookups
  • Registered the new staffing service with dependency injection.

Localization and Documentation

  • Added report resources for English, Arabic, German, Greek, Spanish, French, Italian, Polish, Swedish, and Ukrainian.
  • Added localized staffing messages and labels for the supported languages.
  • Added Admin Assist catalog entries and documentation for Shift Staffing and the On-Shift Hours report.

Testing

  • Added coverage for:
    • Hours calculation and period clipping
    • Approved versus automatic staffing
    • Group filtering and duplicate personnel handling
    • Static-shift staffing and UTC/local-time conversion
    • Authorization and department scope validation
    • Staffing persistence and roster updates
    • Report rendering, CSV-related data, and query generation
    • Localization completeness for the new report resources