Meine Aufgaben (0.53.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 7m6s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 13s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 7m24s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 8m34s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m39s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m4s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m9s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m42s

Tasks-Registry mit Anbietern aus QM, Umfragen und Redaktion; Kachel auf der
Startseite und Seite /aufgaben.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-29 19:42:53 +00:00
parent 63f50f691a
commit c11cf4e0c4
146 changed files with 731 additions and 353 deletions

View file

@ -6,6 +6,7 @@ use App\Http\Resources\PersonResource;
use App\Models\User;
use App\Plugins\Hooks;
use App\Support\QuickLinks;
use App\Tasks\Tasks;
/**
* Kacheln des Kerns. Plugins ergänzen weitere über App\Dashboard\Widgets.
@ -25,6 +26,13 @@ class CoreWidgets
'actions' => array_values(array_filter((array) Hooks::apply('greeting.actions', [], $user), fn ($action) => is_array($action) && isset($action['label'], $action['href']))),
], label: 'Begrüßung mit Profil', mobileSort: 0);
// Meine Aufgaben: was jetzt wartet (Lesebestätigungen, Umfragen, Freigaben …)
$widgets->add('core.tasks', 'core::Tasks', 'aside', sort: 5, props: function (User $user) {
$tasks = app(Tasks::class)->forUser($user);
return $tasks === [] ? null : ['tasks' => array_slice($tasks, 0, 6), 'total' => count($tasks)];
}, label: 'Meine Aufgaben', mobileSort: 5, areas: ['aside', 'main']);
$widgets->add('core.quick-links', 'core::QuickLinks', 'main', sort: 10, props: function (User $user) {
$links = app(QuickLinks::class)->forUser($user);