Symbole für alle Hauptpunkte im automatischen Menü (0.40.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 8m25s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m46s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m36s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 11m31s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 11m34s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 12m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 12m14s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 46s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 11m18s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m15s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 18:02:11 +00:00
parent a704d12d2a
commit 8a9399b6a5
21 changed files with 102 additions and 29 deletions

View file

@ -25,7 +25,7 @@ class DownloadsPlugin extends Plugin
$this->app->singleton(FolderTree::class);
$this->app->make(Navigation::class)->add('downloads', 'Downloads', '/downloads', active: 'downloads.*', sort: 50);
$this->app->make(Navigation::class)->add('downloads', 'Downloads', '/downloads', active: 'downloads.*', sort: 50, icon: 'folder-down');
$abilities = $this->app->make(Abilities::class);
$abilities->define('downloads.manage', 'Downloads: gesamten Bereich verwalten', 'Downloads');

View file

@ -39,7 +39,7 @@ class EventsPlugin extends Plugin
$this->app->make(GlobalSearch::class)->add('events', 'Termine', 'calendar-days', fn (...$args) => app(EventSearch::class)(...$args), sort: 20);
$this->app->make(Navigation::class)->add('events', 'Termine', '/termine', active: 'events.*', sort: 30);
$this->app->make(Navigation::class)->add('events', 'Termine', '/termine', active: 'events.*', sort: 30, icon: 'calendar-days');
$this->app->make(Abilities::class)->define('events.manage', 'Termine verwalten', 'Termine', portal: true);
Gate::policy(Event::class, EventPolicy::class);

View file

@ -10,7 +10,7 @@ class GemeinsamPlugin extends Plugin
{
public function register(): void
{
$this->app->make(Navigation::class)->add('gemeinsam', 'Gemeinsam', '/gemeinsam', active: 'gemeinsam.*', sort: 65);
$this->app->make(Navigation::class)->add('gemeinsam', 'Gemeinsam', '/gemeinsam', active: 'gemeinsam.*', sort: 65, icon: 'handshake');
$this->app->make(Abilities::class)->define('gemeinsam.manage', 'Personalnachrichten pflegen (Gemeinsam feiern …)', 'Gemeinsam', portal: true);
}
}

View file

@ -11,7 +11,7 @@ class GlossarPlugin extends Plugin
{
public function register(): void
{
$this->app->make(Navigation::class)->add('glossar', 'Glossar', '/glossar', active: 'glossary.*', sort: 75);
$this->app->make(Navigation::class)->add('glossar', 'Glossar', '/glossar', active: 'glossary.*', sort: 75, icon: 'book-a');
$this->app->make(Abilities::class)->define('glossary.manage', 'Glossar pflegen', 'Glossar', portal: true);
$this->app->make(GlobalSearch::class)->add('glossar', 'Glossar', 'book-open', fn (...$args) => app(GlossarySearch::class)(...$args), sort: 45);
}

View file

@ -16,7 +16,7 @@ class IdeenPlugin extends Plugin
{
public function register(): void
{
$this->app->make(Navigation::class)->add('ideen', 'Ideenbox', '/ideen', active: 'ideas.*', sort: 76);
$this->app->make(Navigation::class)->add('ideen', 'Ideenbox', '/ideen', active: 'ideas.*', sort: 76, icon: 'lightbulb');
$this->app->make(Digest::class)->add('ideen', 'Neue Ideen', 40, fn (User $user, CarbonImmutable $since) => Idea::query()
->whereNull('hidden_at')->where('created_at', '>=', $since)->orderByDesc('supports_count')->latest()->limit(5)->get()
->map(fn (Idea $idea) => [

View file

@ -21,7 +21,7 @@ class ItServicePlugin extends Plugin
$this->app->singleton(Settings::class);
$this->app->make(Abilities::class)->define('it-service.manage', 'IT-Service (OpenNIT) einrichten', 'IT-Service');
$this->app->make(Navigation::class)->add('it-service', 'IT-Service', '/it-service', active: 'it-service.*', sort: 75);
$this->app->make(Navigation::class)->add('it-service', 'IT-Service', '/it-service', active: 'it-service.*', sort: 75, icon: 'headset');
// Knopf „Meine IT“ im Profilkasten der Startseite
Hooks::filter('greeting.actions', fn (array $actions, User $user) => app(Settings::class)->configured() && app(PluginAccess::class)->allows('it-service', $user)

View file

@ -60,7 +60,7 @@ class NewsPlugin extends Plugin
$this->app->make(GlobalSearch::class)->add('news', 'Neuigkeiten', 'newspaper', fn (...$args) => app(NewsSearch::class)(...$args), sort: 10);
$this->app->make(Navigation::class)->add('news', 'Neuigkeiten', '/neuigkeiten', active: ['news.index', 'news.show'], sort: 20);
$this->app->make(Navigation::class)->add('news', 'Neuigkeiten', '/neuigkeiten', active: ['news.index', 'news.show'], sort: 20, icon: 'newspaper');
$abilities = $this->app->make(Abilities::class);
$abilities->define('news.manage', 'Neuigkeiten: alle Kategorien verwalten', 'Neuigkeiten');

View file

@ -23,7 +23,7 @@ class QmPlugin extends Plugin
$this->app->singleton($class);
}
$this->app->make(Navigation::class)->add('qm', 'Qualitätsmanagement', '/qm', active: 'qm.*', sort: 55,
$this->app->make(Navigation::class)->add('qm', 'Qualitätsmanagement', '/qm', active: 'qm.*', sort: 55, icon: 'shield-check',
visible: fn (User $user) => $this->app->make(QmAccess::class)->allows($user));
// Startseite: noch zu bestätigende QM-Dokumente (nur wenn es welche gibt)

View file

@ -15,7 +15,7 @@ class SpeiseplanPlugin extends Plugin
public function register(): void
{
$this->app->make(Navigation::class)->add('speiseplan', 'Speiseplan', '/speiseplan', active: 'speiseplan.*', sort: 70);
$this->app->make(Navigation::class)->add('speiseplan', 'Speiseplan', '/speiseplan', active: 'speiseplan.*', sort: 70, icon: 'utensils');
$this->app->make(Abilities::class)->define('speiseplan.manage', 'Speiseplan hochladen', 'Speiseplan', portal: true);
}

View file

@ -19,7 +19,7 @@ class StellenPlugin extends Plugin
{
public function register(): void
{
$this->app->make(Navigation::class)->add('stellen', 'Stellen', '/stellen', active: 'jobs.*', sort: 72);
$this->app->make(Navigation::class)->add('stellen', 'Stellen', '/stellen', active: 'jobs.*', sort: 72, icon: 'briefcase');
$this->app->make(Digest::class)->add('stellen', 'Neue interne Stellen', 50, fn (User $user, CarbonImmutable $since) => JobPosting::query()
->open()->where('published_at', '>=', $since)->latest('published_at')->limit(5)->get()

View file

@ -19,7 +19,7 @@ class UmfragenPlugin extends Plugin
{
public function register(): void
{
$this->app->make(Navigation::class)->add('umfragen', 'Umfragen', '/umfragen', active: 'polls.*', sort: 74);
$this->app->make(Navigation::class)->add('umfragen', 'Umfragen', '/umfragen', active: 'polls.*', sort: 74, icon: 'vote');
$this->app->make(Digest::class)->add('umfragen', 'Ihre Meinung ist gefragt', 30, fn (User $user) => Poll::query()
->open()->visibleTo($user)->latest('published_at')->limit(10)->get()
->reject(fn (Poll $poll) => $poll->hasVoted($user))->take(5)