Replace the demo home page with a dashboard
Everyone sees their open tasks on an agenda, their open jobs, this week's hours and quick links. Admin and management also get a lazily loaded management panel: things to do, the month so far against the previous month, jobs and late work, and everyone's workload. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Dashboard\Application\Contracts;
|
||||
|
||||
/**
|
||||
* What the management panel needs from Billing, Sales, Users and the
|
||||
* holiday calendar. Days are Y-m-d.
|
||||
*/
|
||||
interface DashboardAdmin
|
||||
{
|
||||
/**
|
||||
* The billing material draft being prepared, if there is one.
|
||||
*/
|
||||
public function openDraftId(): ?int;
|
||||
|
||||
/**
|
||||
* Days before the day with quick sales whose cash day is not closed.
|
||||
*
|
||||
* @return list<string>
|
||||
*/
|
||||
public function unclosedCashDaysBefore(string $day): array;
|
||||
|
||||
/**
|
||||
* Active users who do the work, subcontractors left out, by name.
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function staff(): array;
|
||||
|
||||
/**
|
||||
* Public holidays in use and company days off between the days.
|
||||
*
|
||||
* @return list<string>
|
||||
*/
|
||||
public function holidaysBetween(string $from, string $to): array;
|
||||
}
|
||||
Reference in New Issue
Block a user