Fehlerprotokoll im Systemzustand, Bilder in Stellen- und Terminbeschreibungen (0.28.1)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m6s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m14s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m55s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m54s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m57s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m43s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 10:32:14 +00:00
parent c0595d42dd
commit cf5b71cdd9
131 changed files with 601 additions and 323 deletions

View file

@ -3,6 +3,8 @@
namespace Inhaus\Plugins\Stellen;
use App\Editorial\Editorial;
use App\Media\ImagePaths;
use App\Media\MediaUsages;
use App\Models\User;
use App\Plugins\Plugin;
use App\Search\GlobalSearch;
@ -21,6 +23,13 @@ class StellenPlugin extends Plugin
$abilities->define('jobs.manage', 'Stellen ausschreiben und bearbeiten', 'Stellen', portal: true);
$abilities->define('jobs.applications', 'Bewerbungen aller Stellen einsehen und bearbeiten', 'Stellen', portal: true);
// Mediathek „Eingebunden in“: Bilder in der Beschreibung
$usages = $this->app->make(MediaUsages::class);
$usages->add('stellen', 'Stellen', fn (JobPosting $p) => [
['context' => ImagePaths::HTML_CONTEXT, 'label' => $p->title, 'url' => route('jobs.edit', $p, false), 'draft' => $p->published_at === null, 'paths' => ImagePaths::fromHtml($p->description)],
], fn (callable $each) => JobPosting::query()->chunkById(100, fn ($postings) => $postings->each($each)));
$usages->watch('stellen', JobPosting::class, ['description', 'title', 'published_at']);
$this->app->make(GlobalSearch::class)->add('stellen', 'Stellen', 'briefcase', fn (...$args) => app(JobSearch::class)(...$args), sort: 55);
$this->app->make(Editorial::class)->add('stellen', 'Stellen', 'stellen::EditorialJobs', 35,