Neue Seitenköpfe, global wählbar (0.48.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m29s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m31s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 9m3s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 9m36s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m33s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m56s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 12m35s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 11m58s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 50s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m13s

- PageHeader: Kopfband (Standard, kompakt), Kopfband mit Symbol, mit Symbol,
  kräftiger Titel – Einstellung page_header im Erscheinungsbild
- Symbol vom passenden Menüpunkt (aktiv oder per Adresse), Prop icon
- In Spalten (z. B. Downloads) schlichte Form statt Band
- Zurück-Links als breadcrumbs (IT-Service), Profil bearbeiten mit PageHeader
- Plugin-Assets: Fingerabdruck berücksichtigt Änderungszeiten der Dateien

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-28 20:05:37 +00:00
parent 36a58d4748
commit 800e267e1c
144 changed files with 524 additions and 390 deletions

View file

@ -33,6 +33,8 @@ class AppearanceColors extends AppearancePage
Radio::make('header_style')->label('Kopfleiste')->options(Theme::HEADER_STYLES)->inline()->required()->columnSpanFull(),
Radio::make('nav_style')->label('Hauptmenü am PC')->options(Theme::NAV_STYLES)->inline()->required()->columnSpanFull()
->helperText('Auf dem Handy ist es immer ein Burger-Menü. Das Burger-Menü passt, wenn das Menü viele Punkte hat oder die Kopfzeile ruhig bleiben soll.'),
Radio::make('page_header')->label('Seitenköpfe')->options(Theme::PAGE_HEADERS)->required()->columnSpanFull()
->helperText('Gestaltung von Titel, Beschreibung und Aktionen oben auf jeder Seite – gilt für das ganze Portal, auch für Plugins.'),
Section::make('Kontrastprüfung (WCAG AA)')->columnSpanFull()->compact()->schema([
Text::make(fn (Get $get) => $this->contrastReport((string) $get('primary_color'), $get('secondary_color'))),
]),

View file

@ -98,9 +98,14 @@ class PluginAssets
public function publish(string $slug, PluginManifest $manifest): bool
{
$target = self::publicPath($slug).'/'.$manifest->version;
// Fingerabdruck des Builds: dist/inhaus.json nennt die Dateien mit Hash – ein neuer Build
// (auch bei gleicher Versionsnummer, z. B. während der Entwicklung) wird neu kopiert
$build = md5((string) @file_get_contents($manifest->path.'/'.self::MANIFEST));
// Fingerabdruck des Builds: Inhalt von dist/inhaus.json plus Änderungszeit der dort genannten
// Dateien (Seiten behalten ihren Namen) – ein neuer Build, auch bei gleicher Versionsnummer
// (z. B. während der Entwicklung), wird neu kopiert
$json = (string) @file_get_contents($manifest->path.'/'.self::MANIFEST);
$data = json_decode($json, true);
$listed = is_array($data) ? [...array_values((array) ($data['components'] ?? [])), ...(array) ($data['css'] ?? [])] : [];
$times = array_map(fn ($file) => is_string($file) ? (int) @filemtime($manifest->path.'/dist/'.$file) : 0, $listed);
$build = md5($json.'|'.implode(',', $times));
if (@file_get_contents($target.'/.complete') === $build) {
return true;

View file

@ -183,6 +183,7 @@ class Branding
'logo_mark_url' => $this->url($theme['logo_mark']),
'header_style' => $theme['header_style'],
'nav_style' => $theme['nav_style'] ?? 'bar',
'page_header' => $theme['page_header'] ?? 'band',
'color_mode' => $this->forcedColorMode(),
'login' => [
'layout' => $theme['login_layout'],

View file

@ -24,6 +24,7 @@ class Theme
'secondary_color' => null,
'header_style' => 'light',
'nav_style' => 'bar',
'page_header' => 'band',
'font_body' => 'inter',
'font_heading' => 'same',
'custom_font' => null,
@ -51,6 +52,14 @@ class Theme
/** Hauptmenü am PC: Leiste in der Kopfzeile oder – wie auf dem Handy – ein Burger-Menü */
public const NAV_STYLES = ['bar' => 'Leiste in der Kopfzeile', 'burger' => 'Burger-Menü (wie auf dem Handy)'];
/** Gestaltung der Seitenköpfe (Titel, Beschreibung, Aktionen oben auf jeder Seite) */
public const PAGE_HEADERS = [
'band' => 'Kopfband – weißes Band über die volle Breite',
'band_icon' => 'Kopfband mit Symbol des Bereichs',
'icon' => 'Mit Symbol des Bereichs',
'bold' => 'Kräftiger Titel mit Akzentstrich',
];
public const RADII = ['none' => ['Eckig', '0rem'], 'small' => ['Leicht gerundet', '0.25rem'], 'medium' => ['Gerundet', '0.5rem'], 'large' => ['Stark gerundet', '0.75rem'], 'round' => ['Rund', '1rem']];
public const DENSITIES = ['compact' => ['Kompakt', '0.225rem'], 'normal' => ['Normal', '0.25rem'], 'comfortable' => ['Luftig', '0.275rem']];
@ -184,6 +193,7 @@ class Theme
$theme['secondary_color'] = $hex($theme['secondary_color']);
$theme['header_style'] = array_key_exists($theme['header_style'], self::HEADER_STYLES) ? $theme['header_style'] : 'light';
$theme['nav_style'] = array_key_exists((string) ($theme['nav_style'] ?? ''), self::NAV_STYLES) ? $theme['nav_style'] : 'bar';
$theme['page_header'] = array_key_exists((string) ($theme['page_header'] ?? ''), self::PAGE_HEADERS) ? $theme['page_header'] : 'band';
$theme['font_body'] = array_key_exists($theme['font_body'], Fonts::FONTS) || ($theme['font_body'] === 'custom' && $theme['custom_font']) ? $theme['font_body'] : 'inter';
$theme['font_heading'] = $theme['font_heading'] === 'same' || array_key_exists($theme['font_heading'], Fonts::FONTS) || ($theme['font_heading'] === 'custom' && $theme['custom_font']) ? $theme['font_heading'] : 'same';
$theme['radius'] = array_key_exists($theme['radius'], self::RADII) ? $theme['radius'] : 'medium';

View file

@ -9,5 +9,5 @@ namespace App;
*/
final class Version
{
public const VERSION = '0.47.1';
public const VERSION = '0.48.0';
}