Initial commit: Pireon Admin — headless admin panel and public API

Laravel 13 + Filament 5 admin panel and REST API for a non-profit developer
collective, backed by the Pireon OAuth identity server. The public site is a
separate, server-rendered application consuming /api/public/v1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-19 17:55:27 +02:00
commit 3897113313
534 changed files with 64050 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
declare(strict_types=1);
namespace App\Support\Health\Checks;
use App\Filament\Resources\Clients\ClientResource;
use App\Models\Client;
use App\Support\Health\Check;
use App\Support\Health\Finding;
/**
* Organisations on the wall of logos with no logo.
*
* The frontend has to render something for them, so it renders their name in
* a row of images — a hole in the wall that looks like a mistake, because it
* is one.
*/
class ClientsWithoutLogo implements Check
{
public function key(): string
{
return 'clients-without-logo';
}
public function permission(): ?string
{
return 'clients.view_any';
}
public function run(): Finding
{
$clients = Client::query()
->public()
->whereNull('logo')
// Only the ones the wall actually shows: a client with nothing
// published is not on it in the first place.
->whereHas('projects', fn ($q) => $q->published())
->get(['id', 'name']);
return Finding::problem(
$this->key(),
$clients->count(),
url: ClientResource::getUrl('index'),
samples: $clients->pluck('name')->all(),
);
}
}