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:
2026-11-25 09:20:02 +02:00
co-authored by Claude Sonnet 5.5
parent d4251d00d7
commit 487a7d34ba
46 changed files with 2032 additions and 62 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace App\Modules\Dashboard\Application\DTOs;
/**
* An open task on the home page. The status is the Jobs module's task
* status key; days are Y-m-d.
*/
final readonly class WorkTask
{
public function __construct(
public int $taskId,
public int $jobId,
public string $jobNumber,
public string $jobName,
public string $title,
public string $status,
public ?string $dueOn,
public ?string $plannedFrom,
public ?string $plannedTo,
public ?string $assigneeName,
public bool $isLate = false,
) {}
public function late(): self
{
return new self($this->taskId, $this->jobId, $this->jobNumber, $this->jobName, $this->title, $this->status, $this->dueOn, $this->plannedFrom, $this->plannedTo, $this->assigneeName, true);
}
}