Feature: New requests from the dashboard 

Description 

Dashboard widgets can now be acted on directly:

  • My absences offers Request leave and Report sick in a dialog.
  • My requests offers New request with every kind the installed packages provide: a leave request, and a time correction of a chosen day.
  • Missing punches links each day without a clock-out to its page to correct it; getDashboardMissingPunches answers its attendanceDayId.

The actions show also when a widget has nothing to list. Packages add request kinds with registerRequestKind() from @adsum/core/dashboard/requestKinds.js, and widgets offer actions through renderActions() and openDialog() of WidgetBase.

Impact 

Leave, sickness and corrections are filed without leaving the dashboard.