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]>
27 lines
614 B
PHP
27 lines
614 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Dashboard\Application\Contracts;
|
|
|
|
use App\Modules\Dashboard\Application\DTOs\PendingApproval;
|
|
use App\Modules\Dashboard\Application\DTOs\WeekHours;
|
|
|
|
/**
|
|
* Recorded hours, from the TimeTracking module.
|
|
*/
|
|
interface DashboardTime
|
|
{
|
|
/**
|
|
* The user's hours in the week starting on the Monday (Y-m-d).
|
|
*/
|
|
public function week(int $userId, string $monday): WeekHours;
|
|
|
|
/**
|
|
* Everyone's hours waiting for approval, by person (by name).
|
|
*
|
|
* @return list<PendingApproval>
|
|
*/
|
|
public function pendingApprovals(): array;
|
|
}
|