Organigramm und Dokumente neu gestaltet
All checks were successful
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m30s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m34s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m45s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m35s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m42s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m7s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m15s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s

- Organigramm: grafischer Baum (Linien, Zoom, Verschieben) und
  Fokus-Ansicht mit Vorgesetzten, Team und direkt Unterstellten
- Dokumente: Übersicht mit Bereichen und „Zuletzt aktualisiert“,
  sortierbare Dateiliste oder Kacheln (Wahl wird gemerkt)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 13:06:23 +00:00
parent 4fcc41ed30
commit ab0384ceb1
99 changed files with 1292 additions and 443 deletions

View file

@ -9,7 +9,7 @@ final class DocumentPresenter
/**
* @return array<string, mixed>
*/
public static function row(Document $document): array
public static function row(Document $document, ?string $folderName = null): array
{
$version = $document->currentVersion;
@ -18,10 +18,12 @@ final class DocumentPresenter
'title' => $document->title,
'description' => $document->description,
'folder_id' => $document->folder_id,
'folder_name' => $folderName,
'version' => $version?->version,
'name' => $version?->name,
'extension' => $version?->extension(),
'size' => (int) ($version?->size ?? 0),
'updated_by' => $version?->relationLoaded('uploader') ? $version->uploader?->name : null,
'updated_at' => ($version?->created_at ?? $document->updated_at)?->toIso8601String(),
'download_url' => $version ? $document->downloadUrl($version) : null,
];