Commit graph

123 commits

Author SHA1 Message Date
d8f8b7e194
Modelle: Bilder per Higgsfield-KI erzeugen und uebernehmen
System > KI-Modellbilder: API-Key, Modell-Endpunkt, Prompt mit Platzhaltern,
Referenzbild und Zusatzparameter. Im Modell-Panel 'Bild erzeugen' (auch bei
vorhandenem Bild), Ergebnis anklicken = wird direkt Modellbild. Verbindungstest
um Higgsfield erweitert.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ex4YsMRQ4GF2dkGWuX6Yio
2026-10-23 16:23:12 +00:00
f7f4f9e7c8
Paketkacheln: lange Stichpunkte umbrechen statt rechts abschneiden
Ein langes, nicht trennbares Wort (z. B. Sicherungs-/Masseverteilerblock)
machte die implizite Subgrid-Spalte breiter als die Kachel, dadurch liefen
alle Stichpunkte rechts ueber den Rand. Spalte jetzt minmax(0, 1fr),
Stichpunkte mit Silbentrennung und Umbruch nach '/'.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ThyGQXuU38kWMcvhxHiof
2026-10-23 16:21:17 +00:00
1892fe5942
Pakete: einzelne Pakete kopieren, auch ins selbe Modell
Neben "Von anderem Modell kopieren" (alle Pakete) lassen sich jetzt einzelne
Pakete kopieren: "Kopieren" im Paket-Panel, in der Auswahl (Nach Modell) und
in der Liste "Alle Pakete". Ein einzelnes Paket kann dabei als andere Stufe
landen (z. B. Drive als Grundlage fuer Prime im selben Modell). Gibt es die
Stufe im Ziel schon: ersetzen oder ueberspringen.

API: POST /packages/copy {items [{id, name?, sort_order?}], target_model_id,
include_upgrades, replace_existing}; copyPackages nutzt dieselbe
Kopierfunktion (copyOne).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H18w9G2ZdEdGJ3E3goxdQE
2026-10-23 16:19:46 +00:00
7cf8ef52b3
Login: Wahl zwischen App und Mail-Code, Passwort vergessen
- Mit Authenticator-App und bestaetigter E-Mail laesst sich auf der
  Code-Seite zwischen beiden umschalten (POST /auth/2fa-method).
- "Passwort vergessen" auf der Login-Seite: Link an die bestaetigte E-Mail
  (60 Min, einmalig, hoechstens einer pro Minute), Seite
  /admin/passwort-zuruecksetzen. Antwort verraet nicht, ob es das Konto gibt.
- Neue Spalten password_reset_hash/_expires_at (Auto-Migration). Build neu.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W444hnfrfEXf9f84YRuZtH
2026-10-23 00:26:22 +00:00
2642011e3d
Login auch mit E-Mail-Adresse statt Benutzername
- Login und Re-Login-Fenster nehmen Benutzername oder bestaetigte E-Mail.
  Unbestaetigte Adressen zaehlen nicht.
- Eine E-Mail-Adresse kann nur noch zu einem Konto gehoeren (Pruefung beim
  Hinterlegen und beim Bestaetigen).
- Re-Login-Fenster zeigt beim Mail-Code, wohin er geschickt wurde. Build neu.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W444hnfrfEXf9f84YRuZtH
2026-10-22 23:20:05 +00:00
eb9b1f60ea
Merge branch 'besucher-statistik' in main
Admin-Seite "Besucher" (/admin/traffic) mit GA4-Trends und Live-Karte.
Build-Output neu erzeugt.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019SDNFmggXYzftrfZ6epwP5
2026-10-22 23:17:18 +00:00
2897eb4ff8
Benutzerkonten: E-Mail mit Bestaetigungslink, Login-Code per Mail
- Konten bekommen eine E-Mail-Adresse (Mein Konto und Benutzerverwaltung).
  Neue Adressen gelten erst nach Klick auf den Bestaetigungslink
  (/admin/email-bestaetigen, 48 h gueltig, Token nur als SHA-256 gespeichert).
- Login: mit Authenticator-App wie bisher TOTP; sonst bei bestaetigter
  E-Mail ein 6-stelliger Code per Mail (10 Min, 5 Versuche, neu senden
  nach 30 s). Konten ohne beides und Server ohne eingerichteten Mailversand
  melden sich weiter nur mit Passwort an.
- Versand ueber die SMTP-Einstellungen des Kontaktformulars (Mailer).
- Neue Spalten in Schema.php (Auto-Migration) und schema.sql, Export der
  Konten um email/email_verified_at ergaenzt. Build neu.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W444hnfrfEXf9f84YRuZtH
2026-10-22 22:01:46 +00:00
6bde1b0205
Besucher: eigene Live-Karte mit Seitenliste und Minutenverlauf
Die Echtzeit-Besucher stehen jetzt in einer eigenen Karte: Anzahl, Balken je
Minute der letzten 30 Minuten, Geräte und eine Liste der gerade angesehenen
Seiten (bis 10, mit Balken, ohne "| HifiPlanet"-Anhang). Die Karte holt sich
über GET /analytics/realtime jede Minute neue Werte (nur bei sichtbarem Tab).
Build neu.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TFDXmUdWg4Ai8x5ehhJvva
2026-10-22 09:57:55 +00:00
d31b72c01f
Admin: eigene Seite "Besucher" mit Trends aus Google Analytics
Neue Seite /admin/traffic (Seitenleiste unter Übersicht, Recht system.admin) mit
Zeitraum 7/28/90 Tage bzw. 12 Monate: Echtzeit-Besucher, sechs Kennzahlen mit
Vergleich zum Vorzeitraum, Verlaufsdiagramm (aktuell gegen davor), Kanäle,
Quellen, Seiten, Einstiegsseiten, eigene Events, Geräte und Orte.

API GET /analytics/traffic (batchRunReports + runRealtimeReport), Ergebnis
5 Minuten im Temp-Ordner zwischengespeichert (?refresh=1 umgeht das).
Dashboard-Widget verlinkt auf die neue Seite. Build neu.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TFDXmUdWg4Ai8x5ehhJvva
2026-10-22 09:31:25 +00:00
ad09105efb
Pakete: Upgrades und Produkte im Paket-Panel wieder speicherbar
Das Paket-Panel war selbst ein <form>, die Formulare für Upgrades und
Produktnamen lagen darin verschachtelt. Der Browser hat beim Klick auf
"Upgrade hinzufügen" bzw. "Speichern" am Upgrade die Seite neu geladen,
statt zu speichern. Panel ist jetzt kein Formular mehr, Speichern per Klick.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017yqbrkqFsLrgVr6QMrvEZz
2026-10-21 07:19:34 +00:00
42586fa393
Pakete gesammelt löschen und beim Kopieren ersetzen
- Pakete > Nach Modell: "Auswählen" markiert mehrere Stufen (oder alle) und löscht sie auf einmal
- Pakete > Alle Pakete: Haken je Zeile, "Alle" bezieht sich auf das Suchergebnis
- Von anderem Modell kopieren: hat das Ziel schon Pakete, wahlweise alle ersetzen
  (Vorgabe) oder nur fehlende ergänzen
- API: POST /packages/delete {ids}, copy-packages mit replace_existing
- ui: Checkbox-Baustein, Icon check

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017yqbrkqFsLrgVr6QMrvEZz
2026-10-21 06:49:22 +00:00
Claude
496477285f
Admin: Website-Inhalte im neuen Stil
- Gemeinsames Listen-Geruest (EntityList): sortierbare Liste, ganze Zeile
  oeffnet das Seitenpanel, Leerzustand und Ladeplatzhalter
- FAQ, Partner-Logos, Leistungen und Downloads darauf umgestellt
- Downloads: Datei per Ziehen ablegen, Fortschritt beim Hochladen,
  Sichtbarkeit direkt in der Zeile, Zugriffsschutz als eigene Karte
- Startseite: Abschnitte links als nummerierte Liste, Sprache und
  Position als Umschalter, Felder im einheitlichen Stil

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R5qHQ6FkdkREoPVmRJ5V77
2026-10-20 17:21:00 +00:00
Claude
2295ebd2b7
Modelle im Admin neu: Marken links, Modell-Liste mit Paket-Status, Bearbeiten im Seitenpanel
- Marken als Liste links (am Handy Auswahlfeld) mit Modellanzahl und Hinweis auf Modelle
  ohne sichtbares Paket; "Alle Marken" zum Durchsuchen; Auswahl in der Adresse (?marke=)
- Modell-Liste: Bild, Paket-Status ("5 Pakete", "Noch keine Pakete"), Knopf "Pakete"
  direkt zum Modell auf der Paket-Seite, Suche, Ziehen zum Sortieren je Marke
- Bearbeiten/Anlegen im Seitenpanel (Marke vorbelegt), Loeschen nennt die Paketanzahl
- Leerzustaende mit "Aus Vorlage laden"

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R5qHQ6FkdkREoPVmRJ5V77
2026-10-20 17:12:44 +00:00
Claude
a0e8e4cbc0
Pakete im Admin neu: Modell-Liste mit Suche, Stufen als Kacheln, Bearbeiten im Seitenpanel
- Links alle Modelle nach Marke (aufklappbar, Suche, Hinweis "leer" bei Modellen ohne
  sichtbares Paket) statt zwei doppelter Auswahl-Bereiche
- Rechts die 8 Stufen als Kacheln wie auf der Website: Preis, Produkte/Upgrades,
  Markierung, Sichtbar-Schalter; fehlende Stufen als "Paket anlegen"
- Paket oeffnet im Seitenpanel: Preis mit Aufschlag-Umschalter und Summe oben, darunter
  Produkte und Upgrades, Kacheltexte; Seltenes unter "Weitere Optionen"
- Jedes Paket wird einzeln gespeichert, neue Pakete sofort angelegt (Produkte danach
  direkt hinzufuegbar) - kein Anhaken plus "Alle speichern" mehr
- Kopieren von anderem Modell als eigenes Panel, bei leeren Modellen direkt angeboten
- Ansicht "Alle Pakete" mit Suche; Adresse (?model, ?paket, ?ansicht=liste) bleibt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R5qHQ6FkdkREoPVmRJ5V77
2026-10-20 17:07:44 +00:00
Claude
6c4a3e652f
Admin-Design: einheitliche Bausteine, neue Seitenleiste mit Schnellsuche, aufgeraeumter Kopf
- components/ui: Button, IconButton, Input, Select, Textarea, Field, Toggle, Card,
  PageHeader, Badge, EmptyState, SlideOver und gemeinsame Symbole
- Seitenleiste bleibt beim Scrollen stehen, Gruppen einklappbar (System standardmaessig zu),
  dezentere Markierung der aktiven Seite, eigene Symbole statt Dubletten
- Schnellsuche (Strg+K) fuer alle Admin-Seiten und Modelle (springt zu den Paketen)
- Kopf: Bereich und Seitentitel, Live bearbeiten, Benutzer-Menue (Konto, Hell/Dunkel,
  Abmelden); Handy: Menue als Schublade, Kopf laeuft nicht mehr ueber
- Fahrzeugmarken als erste Seite umgestellt: volle Breite, ganze Zeile klickbar,
  Symbol-Aktionen, Bearbeiten im Seitenpanel, Modellanzahl, Suche, Leerzustand

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R5qHQ6FkdkREoPVmRJ5V77
2026-10-20 16:46:55 +00:00
296c196d06
Bilder im Admin austauschbar: Link-Vorschau, Einblicke, Startseite, Hintergruende, Paketkacheln
Neue Seite Einstellungen > Bilder (Titelbild und Logos dorthin verschoben) plus
"Bild tauschen" im Live-Bearbeiten-Modus. Gespeichert als JSON in
app_settings.site_images (Auto-Migration). Startseite und SPA-Fallback laufen
ueber api/public/page.php, das og:image und Favicon serverseitig ins HTML setzt.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBCD1KUwiqh1kdMwDSwVfD
2026-10-20 16:12:15 +00:00
be14d274a3
Verbindungstest im Admin: Google, Mail, Datenbank, Update-Server und Audio4Cars per Knopfdruck pruefen
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UKLyiTjbcqPzxHApMQVFh7
2026-10-20 15:49:04 +00:00
Claude
00c67cd860
Fahrzeug-Vorlage: 64 Marken mit 1.559 Modellgenerationen aus Europa im Admin ladbar
Marken/Modelle > 'Aus Vorlage laden' zeigt den Katalog (api/data/vehicle-catalog.json)
zum Anhaken; angelegt wird nur, was noch fehlt (Abgleich ueber Slug und Name).
Slug::make wandelt jetzt Akzente um (Škoda -> skoda statt koda).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bUXMMTn84UnoT7ps5aXCs
2026-10-20 13:54:31 +00:00
Claude
838da99ca3
Pfadzeilen auch auf Modell- und Galerieseiten entfernt
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174bfXbDqAn2M7TjkdqGCrn
2026-10-20 13:38:18 +00:00
Claude
6bc5980830
Direktsuche: Breite wie die Kachelreihe, leichter 3D-Effekt
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174bfXbDqAn2M7TjkdqGCrn
2026-10-20 13:33:48 +00:00
Claude
58ad067498
Markenseite: Pfadzeile ueber der Ueberschrift entfernt
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174bfXbDqAn2M7TjkdqGCrn
2026-10-20 13:28:39 +00:00
Claude
9a09e7e48f
Direktsuche nach Fahrzeug auf der Fahrzeug-Uebersicht
Suchfeld ueber den Marken-Kacheln: findet Marken und Modelle beim Tippen
(z. B. "golf 7", "vw golf", "bmw 3er"), Pfeiltasten + Enter, Link zum
Kontakt ohne Treffer. Neuer oeffentlicher Endpunkt GET /vehicle-search.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174bfXbDqAn2M7TjkdqGCrn
2026-10-20 13:24:14 +00:00
Claude
34d78018dd
Updates automatisch installieren (im Admin pro Server einschaltbar)
Prueft den gewaehlten Branch im eingestellten Abstand und installiert neue Staende mit
demselben Ablauf inkl. Backup wie der Button. Ausgeloest nebenbei nach Seitenaufrufen
(fastcgi_finish_request), per Cronjob-URL mit Token oder per CLI-Skript.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W3jkhrvgibG4v3tQyUMGsu
2026-10-20 12:56:08 +00:00
Claude
51c5e6e1c1
Launch-Countdown: Teaser vor dem Start, im Dashboard einstellbar
Unter Einstellungen > Launch-Countdown lassen sich Startzeitpunkt (deutsche Zeit),
An/Aus und optionale Texte (DE/EN) pflegen. Solange der Countdown laeuft, sehen
Besucher nur die Teaser-Seite; eingeloggte Admins sehen die normale Seite mit
Hinweisleiste und koennen den Teaser unter /?countdown=vorschau ansehen. Bei 0
oeffnet sich die Website automatisch. Neue Spalten in app_settings werden per
Auto-Migration nachgeruestet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KSYBhvKhm4di3v331BkNjL
2026-10-20 12:27:32 +00:00
ad3d1b081d
Live-Bearbeiten-Modus: Texte direkt auf der Website ändern
Eingeloggte Admins schalten über den Stift in der Navbar (oder "Website live
bearbeiten" im Dashboard) einen Bearbeiten-Modus ein und ändern Texte direkt
auf der Seite. Gesammelte Änderungen gehen mit "Speichern" an PUT /live-edit,
das jede Änderung gegen Feld-Whitelist und Berechtigung prüft und alles in
einer Transaktion schreibt.

- Startseite: Vorspann, Überschriften, Texte, Buttons inkl. Ziel, FAQ, Partner
- Leistungen, Paketkacheln (Name, Preistext, Stichpunkte), Marken, Modelle,
  Galerie-Marken/-Projekte, Impressum/Datenschutz/AGB
- Feste Texte (Buttons, Menü, Beschriftungen) je Seite über eine Liste,
  gespeichert in der neuen Tabelle text_overrides (Auto-Migration)
- Bearbeitet wird jeweils die gerade angezeigte Sprache
- .schema-version wird nicht mehr versioniert und vom Self-Update geschont

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Dgc8etkq7JkjyZgD2DEbv
2026-10-19 22:31:25 +00:00
d587fc177d
Merge branch 'main' into optimierungen
# Conflicts:
#	hifi/assets/AccountSettings-3Az7PIEf.js
#	hifi/assets/AccountSettings-C7P_TaTL.js
#	hifi/assets/AccountSettings-CfY49TlQ.js
#	hifi/assets/AdminUsers-C1zi3a_m.js
#	hifi/assets/Brands-V9s4vz2i.js
#	hifi/assets/ContactRequests-BcF_HxL3.js
#	hifi/assets/Dashboard-m6lX2kWI.js
#	hifi/assets/DatabaseSettings-pQejbEjR.js
#	hifi/assets/Downloads-DCZm2dP9.js
#	hifi/assets/EmailSettings-B_RqPmc9.js
#	hifi/assets/EmailSettings-DixrL0D8.js
#	hifi/assets/EmailSettings-VadOa5J3.js
#	hifi/assets/ExportImportSettings-Bkwm__tE.js
#	hifi/assets/Faqs-CDIDxeRo.js
#	hifi/assets/GalleryBrands-CeGo7QXi.js
#	hifi/assets/GalleryPhotos-NPKQDZMi.js
#	hifi/assets/GalleryProjects-CfB-fA4x.js
#	hifi/assets/HomeSections-BzNKNMho.js
#	hifi/assets/ImageUploadField-B8P2oQZ9.js
#	hifi/assets/ImageUploadField-DyLcJG5-.js
#	hifi/assets/ImageUploadField-oqjVVSSG.js
#	hifi/assets/LegalSettings-BnY85Lz7.js
#	hifi/assets/LegalSettings-CRgpL0dP.js
#	hifi/assets/LegalSettings-DGN-Kl_a.js
#	hifi/assets/Login-CFL8bhtC.js
#	hifi/assets/Login-Dc1nFqtx.js
#	hifi/assets/Login-pbnF9xt-.js
#	hifi/assets/MaintenanceSettings-CFGyPBuq.js
#	hifi/assets/MaintenanceSettings-DhcTJBUJ.js
#	hifi/assets/MaintenanceSettings-DsGBefLo.js
#	hifi/assets/Models-CyjYxQOO.js
#	hifi/assets/Packages-6JjKaOj1.js
#	hifi/assets/Partners-BRwobp6H.js
#	hifi/assets/PermissionGroups-CW64DGq9.js
#	hifi/assets/PermissionGroups-DI5xJ6TD.js
#	hifi/assets/PermissionGroups-_i9KMBTo.js
#	hifi/assets/ResetSettings-Bm64tgsK.js
#	hifi/assets/RichTextEditor-DJwdsoJ6.js
#	hifi/assets/RichTextEditor-DTscIhNf.js
#	hifi/assets/RichTextEditor-DcSNZ4jD.js
#	hifi/assets/Services-BTvu0ymy.js
#	hifi/assets/SettingsLayout-C5JQlIqD.js
#	hifi/assets/SetupWizard-BHY_FJd_.js
#	hifi/assets/SetupWizard-Cu-s4Wuc.js
#	hifi/assets/SetupWizard-DcHkEIZ7.js
#	hifi/assets/TextStyleWidget-BZdrb1Dr.js
#	hifi/assets/TextStyleWidget-CkwixV2h.js
#	hifi/assets/TextStyleWidget-Czb7ujSZ.js
#	hifi/assets/UpdateSettings-Ce5oqncR.js
#	hifi/assets/WebsiteSettings-B7CzBT2R.js
#	hifi/assets/eye-CZFeBsZS.js
#	hifi/assets/eye-YlN_9rkm.js
#	hifi/assets/eye-jJN30JHV.js
#	hifi/assets/iconRegistry-BJRytynd.js
#	hifi/assets/iconRegistry-C8CVLtUq.js
#	hifi/assets/iconRegistry-DUWamfSa.js
#	hifi/assets/index-QV-Szw5n.js
#	hifi/assets/trash-2-CQGOvKRj.js
#	hifi/assets/trash-2-CwY7wd8m.js
#	hifi/assets/trash-2-fu7u5OTF.js
#	hifi/index.html
2026-10-19 21:53:32 +00:00
de91ab0926
Self-Update: Branch im Admin auswählbar, um zwischen Branches zu wechseln
Unter Einstellungen > Updates lässt sich jetzt der Branch wählen, von dem
installiert wird (Standard main). So kann z.B. ein Test-Branch eingespielt
und danach wieder auf main zurückgewechselt werden - jeweils mit Backup.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Dgc8etkq7JkjyZgD2DEbv
2026-10-19 21:53:13 +00:00
b915972a12
Optimierungspaket: Kontaktformular, Admin-Komfort, Rechte, Übersetzungen
- Kontaktformular mit Spam-Schutz (Honeypot, Mindestzeit, Rate-Limit), klarer
  Bestätigung, Paketpreis vom Server, WhatsApp mit vorbereitetem Text
- Preis-Hinweis unter Paketpreisen, eigene 404-Seite, verständliche Fehler
- Admin: Toasts, Speicherleiste, Warnung bei ungespeicherten Änderungen,
  Re-Login bei abgelaufener Sitzung, Sortieren per Drag & Drop
- Neues Recht system.admin für DB, Mail, Google, Export/Import, Reset
- Englische Texte für Leistungen/Pakete/Upgrades (content_translations)
- Automatische Schema-Migration beim ersten Aufruf nach git pull
- Build in hifi/ neu erzeugt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Dgc8etkq7JkjyZgD2DEbv
2026-10-19 21:39:01 +00:00
Maaxxs
4fd3c7a035 Let admins hide whole site areas (pages and home sections) from the dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 21:16:34 +02:00
Maaxxs
e32bced40f Stop the homepage from jumping when mobile browser bars collapse
The hero used 100dvh, which grows once the phone browser has hidden its
address and bottom bars after a scroll. The hero then became ~110px
taller and pushed the stats strip and everything below it down, right
while the stats were fading in. 100svh stays fixed at the bars-shown
height, so the hero still fills the first screen on load but no longer
resizes afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:33:21 +02:00
Maaxxs
c6214637e8 Collapse overlong package card bullets instead of stretching the row
Since all cards in a row share one height, a single card with long
paragraphs in its description (e.g. Limitless) made every card as tall
as that one, leaving a lot of empty space in the others. Collapsed
bullets are now clamped to three lines; normal bullets fit, long
paragraphs end with an ellipsis and the card offers "Mehr anzeigen" to
show the full text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:18:09 +02:00
Maaxxs
8b4f2be4b9 Make all package cards on a model page the same height
Strip and coverflow: the row is a grid with four shared rows (header,
bullets, spacer, price) and every card a subgrid across them, so all cards
are equally tall and bullets, price and button line up even when a package
name wraps or one description is much longer. Expanding the bullets of one
card grows the whole row to keep it in sync. The minimum card height
setting now applies to the row.

Grid layout: cards stretch and all grid rows share the same height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:12:56 +02:00
Maaxxs
29f15d0133 Package editor: products, upgrades and prices for a model on one page
Tested locally on a separate branch before merging.

- Selected model (and package to open) live in the URL (?model=…&paket=…),
  so going back or reloading returns to the same vehicle.
- Packages are compact rows (price, product/upgrade count, badge,
  visibility); a click expands one package with its texts on the left and
  markup, live price calculation, products and upgrades on the right.
- Products and upgrades are edited inline and saved immediately. Several
  audio4cars links can be pasted at once, and products/upgrades are
  reordered by drag & drop (@dnd-kit). The separate product/upgrade pages
  are gone; old links redirect to the package in the editor.
- New GET /models/{id}/package-items loads all products and upgrades of a
  model in one request.
- "Pakete kopieren" can include upgrades (include_upgrades).

No database changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:48:57 +02:00
Maaxxs
54928d1411 Add package badges/visibility and a download area, speed up the site
Customer feedback round (4 items):

- Packages: one-click "Sichtbar/Ausgeblendet" toggle per package (saved
  immediately). Hidden packages disappear from the model page; the tier
  look of the remaining cards is ranked across all packages so it stays
  stable.
- Packages: badge per card (Empfohlen, Am beliebtesten, Tipp, Coming soon
  or custom text) plus an optional video link shown as "Zum Video". Legacy
  is_featured maps to "Empfohlen".
- New download area (/downloads + Admin -> Downloads): upload with
  progress, inline audio player, allow-listed file types, optional access
  password, new permission downloads.manage. Files live in
  api/uploads/downloads/ (gitignored, created at runtime).
- Performance:
  - SetupGate no longer refetches and remounts the whole app on every
    navigation.
  - Page loader waits only for pending API calls and above-the-fold images
    (fixes an 8 s hang on /leistungen caused by lazy images inside the
    hidden container).
  - Admin pages lazy-loaded; icon library moved out of the main bundle
    (initial JS 2.2 MB -> 0.48 MB).
  - Background video loads only near the viewport and was re-encoded to
    720p (32 MB -> 8.5 MB).
  - Visitors without a session cookie get no PHP session, so their parallel
    API requests no longer queue on the session lock.
  - index.html is served with Cache-Control: no-cache so browsers don't
    keep a stale build after deploys.
- Fonts (Barlow, Barlow Condensed, Michroma) are self-hosted instead of
  loaded from Google Fonts; the default privacy policy mentions this, lists
  all local storage uses and uses the new TDDDG name.
- A code update that adds a table no longer sends the site into the setup
  wizard while an admin exists.

Run "Datenbankstruktur aktualisieren" after deploying (new package
columns, downloads table, app_settings.downloads_password).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:15:48 +02:00
Maaxxs
139d6c2c59 Add a toggleable page loading screen that waits for images
New app_settings.page_loader_enabled (default on) plus a checkbox in
Website-Einstellungen -> "Seiten-Ladeanzeige".

PageImageLoader.jsx wraps the routed page content (PublicLayout.jsx's
<Outlet />): the content stays mounted (so its images actually start
loading and any data-fetching effects still run) but is visually hidden
behind a spinner until every <img> currently in it has fired load/error.
Works generically across all public pages with no per-page changes,
since many pages (gallery/brand/model photos) only render their <img>
tags after an async API call resolves - a plain "scan once on mount"
check would find zero images and dismiss the loader immediately, so it
uses a MutationObserver to keep tracking newly-inserted images as data
arrives, and only dismisses once nothing has changed or finished loading
for a short settle window. A hard 8-second cap prevents the loader from
sticking forever if an image never resolves.

Overlay only covers the main content area (navbar/footer stay visible
and usable throughout), and the whole thing only mounts when the setting
is enabled - disabled, PublicLayout renders the page exactly as before.

Verified the backend setting end-to-end (migration, default value,
save/round-trip through SiteSettingsController). The loading behavior
itself is client-side timing logic I can't exercise in a real browser
here, so it's worth clicking through a few pages (especially
image-heavy ones like the gallery) before this goes live.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 11:47:53 +02:00
Maaxxs
a9ae0d310a Show whether image compression is actually active on this server
There was no way to tell whether the gd extension the compression
feature depends on was actually enabled - the button always looked the
same and silently did nothing per file if gd was missing. Adds a status
badge (Aktiv/Nicht verfügbar) next to "Bilder optimieren", backed by a
new GET /settings/compress-status endpoint, and disables the button with
an explanatory note when gd isn't available: shared hosts like All-Inkl
don't offer a way to toggle individual PHP extensions (unlike a VPS), so
the note points at hoster support / PHP version selection rather than a
nonexistent self-service toggle.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 11:36:35 +02:00
Maaxxs
31d8143500 Compress uploaded images automatically to speed up page loads
Photos were being served exactly as uploaded, at whatever resolution and
quality the source file had - a multi-megabyte camera/phone photo shown
in a small tile still cost the visitor its full download weight.

Uploads::compressImage() (new) downscales an image to a 1920px long edge
if it's larger, and re-encodes it (JPEG quality 82, WEBP quality 82, PNG
best compression) in place - same path, same format, just a lighter
file. UploadController::store() now runs every new upload through it
automatically, so this fixes itself going forward with no admin action
needed.

For images already sitting in uploads/ from before this change,
SettingsController::compressUploads() (new endpoint, Einstellungen ->
Datenbank -> "Bilder optimieren") re-processes every existing file in
place and reports how much space was reclaimed - covers exactly the
photos causing today's slow loads.

Uses GD (near-universally available on shared hosting, unlike Imagick)
and does nothing instead of erroring if the extension or an unrecognized
file type is encountered, so an environment without GD just keeps
today's behavior rather than breaking uploads.

Verified locally (GD wasn't enabled in this XAMPP install, enabled it to
test - same php.ini already had zip enabled for the git-updater feature):
a synthetic 3000x2000 JPEG dropped from ~1.86MB to ~279KB and a test PNG's
alpha transparency survived resizing intact. Did not run the bulk
compressor against this repo's own uploads/ folder, since ~200 of those
files are git-tracked seed/demo images, not disposable local test data.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 03:23:31 +02:00
Maaxxs
49e2700399 Make brand/model tile size and package card size admin-configurable
Adds four numeric app_settings fields (vehicle_tile_width/height,
package_card_width/height, all in px, clamped server-side to a sane
range but otherwise a free number as requested) with matching inputs
in WebsiteSettings.jsx.

Brand/model tiles (VehicleSelect.jsx, BrandPage.jsx) move from a
responsive CSS-grid with an implicit per-column width to a flex-wrap
layout where every tile has the admin's chosen fixed width/height -
applies to both the photo-background and plain-text card variants, so
mixed grids stay visually consistent.

Package cards (ModelPage.jsx) keep their three existing layout modes
(grid/strip/coverflow) but the actual card dimensions - previously
hardcoded Tailwind width/min-height classes with a separate mobile/sm
breakpoint value - are now driven by the same two settings. Grid mode's
column count is no longer fixed at 2/3 columns; it's now
repeat(auto-fill, minmax(width, 1fr)), so the chosen width determines how
many cards fit per row. Coverflow's center-scroll padding, previously
hardcoded against the old fixed 230px card width, now derives from the
configured width too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:42:20 +02:00
Maaxxs
8999e63cbf Make brand/model images fill the whole card instead of a small inset thumbnail
Matches the existing gallery card treatment (GalleryOverview.jsx): when a
brand or model has an image, the card becomes a full-bleed aspect-[4/3]
photo with a dark gradient and the name overlaid at the bottom, instead of
a small contained thumbnail sitting above the name on a plain card. Cards
without an image are unchanged (same bordered box, centered name) - only
the image case changes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:30:53 +02:00
Maaxxs
326d124a60 Let admins upload their own custom fonts
Adds a new custom_fonts table (name, a server-generated collision-free
font_family identifier, file_path) with its own upload endpoint
(CustomFontController) separate from the generic image-only /uploads,
since it needs to accept WOFF2/WOFF/TTF/OTF instead. New management UI in
WebsiteSettings.jsx ("Eigene Schriftarten"): upload with a display name,
list with delete.

CustomFontsContext.jsx fetches the list once per layout (PublicLayout.jsx
for visitors, AdminLayout.jsx for the dashboard) and exposes it two ways:
useFontOptionsWithCustom() appends the uploaded fonts to the existing
static FONT_OPTIONS list for every font picker (RichTextEditor,
TextStyleWidget, the per-section and global site-font dropdowns), and a
new CustomFontFaces.jsx component renders the @font-face rules that
actually make an uploaded font usable - without it, picking a custom font
would just reference a name the browser has no file for. refresh() lets
WebsiteSettings.jsx update every picker immediately after an
upload/delete, not just on next page load.

Fonts::isValid() replaces the three places that validated a font_family
value against the fixed Fonts::VALUES list (site-wide default, per-section
override, per-field text style) - it now also accepts any uploaded
font's generated identifier, so those endpoints don't reject a custom
font as an unknown value.

Verified locally end-to-end: migration creates the table, a simulated
upload's font_family passes validation while a nonexistent one doesn't,
index() returns the expected shape, and destroy() removes both the row
and the file from uploads/.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:28:57 +02:00
Maaxxs
a3767b1c0f Extend text styling to brand/model names and package text, add bold bullets
Rolls the generic text_styles mechanism out to three more areas (Phase 3/4
of the earlier text-styling plan): brands.name, car_models.name,
packages.description and packages.price_text. Registry entries reuse each
table's existing manage permission (brands.manage/models.manage/
packages.manage). Widgets are gated on an existing row (editingId in
Brands.jsx/Models.jsx, row.existing in Packages.jsx's batch editor), since
a newly-created row has no id yet to key a style on.

Added fieldStyle()/useTextStylesMap() to TextStylesContext.jsx alongside
the existing useTextStyle() - brand/model lists are open-ended, so styling
each one from inside a .map() can't call a hook per item (rules of hooks);
fieldStyle() does a plain lookup against the already-loaded styles map
instead. pkg.name stays unstyled (it's chosen from a fixed tier list, not
free text).

Deleting a brand cascades to its models and their packages in the
database, so BrandController/ModelController::destroy() now collect the
cascaded ids first and clean up their text_styles rows too (mirroring how
they already do this for orphaned uploaded images); SettingsController's
catalog reset endpoints get the same cleanup in bulk.

Separately: package descriptions can now mark individual bullet points
bold. Packages.jsx gained a "Fett" button that wraps the current textarea
selection in **markers** (one line per bullet is unchanged); the public
ModelPage.jsx renders those through a new BoldText.jsx component that
turns **text** into <strong> via a plain regex - no dangerouslySetInnerHTML,
since the only possible output is a <strong> tag. Product-name bullets
(scraped from the linked shop, not admin-authored) are unaffected.

Verified locally: registry rejects packages.name (not free text) and a
non-numeric id, and deleting a test brand correctly cascades text_styles
cleanup through its model and package.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:15:53 +02:00
Maaxxs
260cd0700e Add generic per-field text styling (font/size/color), starting with home sections
Adds a new text_styles table keyed by field_key ("{table}.{slugOrId}.{column}")
so any individual text field anywhere in the dashboard can get its own
font-family/font-size/color override, without a dedicated column per field.
App\Support\TextStyleFields is a server-side registry of which table/column/
permission combinations are valid, so TextStyleController::update() can't be
used to write styling for a field outside the caller's own permission domain,
and typos can't create permanently orphaned rows. Resetting all three values
deletes the row entirely rather than leaving it null, so the table only ever
holds fields an admin actually customized.

Font-size reuses the same "curated list, mirrored PHP+JS constant" approach
already used for font-family (App\Support\Fonts / fontOptions.js) - a free px
input on dozens of independently-edited fields with no design review step is
the most likely way to end up with an accidentally 4px or 400px heading.

New reusable pieces: TextStyleWidget.jsx (a self-contained font/size/color
toolbar with a live preview, used next to any field by passing its
field_key) and TextStylesContext.jsx + useTextStyle() hook (bulk-fetches all
styles once per page load in PublicLayout.jsx, same pattern as
SiteSettingsContext). This first phase wires both into the home-section
eyebrow/title/button-label fields (the ones from the screenshot that started
this) as a proven pilot; the registry is designed so extending it to the
remaining ~15 admin pages is just adding entries and wiring the widget/hook,
no new architecture.

Verified locally via direct PHP invocation: migration creates the table,
registry validation accepts only known table/slug-or-id/column
combinations and rejects the rest, upsert/reset round-trips correctly, and
a second migration run doesn't re-touch anything.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 02:59:06 +02:00
Maaxxs
17f331c35e Add global font selection with per-section override
Extracts the system-font list already used by RichTextEditor for mail
templates into a shared hifi-src/src/utils/fontOptions.js (frontend) and
App\Support\Fonts (backend), so it can drive two new pickers with a
consistent set of options.

Global: a new app_settings.site_font setting, exposed as an admin dropdown
in WebsiteSettings.jsx. tailwind.config.js now defines font-sans as
var(--site-font, ui-sans-serif, system-ui, sans-serif); Tailwind's
preflight already applies font-sans globally to <html>, so this alone
makes the chosen font cascade to virtually every text on the public site
without touching individual components. PublicLayout.jsx sets the CSS
variable from the fetched site settings.

Per-section override: a new home_sections.font_family column, editable
per homepage section in HomeSections.jsx ("Standard" = inherit the global
font). Home.jsx applies it as an inline style on each section's wrapper,
which naturally wins over the CSS-variable-driven global default when
set. Reveal.jsx gained an optional style prop (merged into its own
transform/opacity style) so the four flowing-text sections, which use it
directly as their wrapper, can receive the override too.

Verified locally: migration adds both columns without touching existing
rows, and both settings round-trip correctly through the database.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 00:12:01 +02:00
Maaxxs
040a00a0d7 Add Partner management to replace the hardcoded homepage brand strip
The "Partner" logo row on the homepage was a hard-coded array of ten audio
brand names in Home.jsx, not editable through the dashboard. Adds a
partners table (name, optional logo, sort order), a PartnerController
CRUD under the existing content.manage permission (same one already used
for FAQ-style homepage content), and an admin page modeled on Brands.jsx.
Home.jsx now fetches /partners and shows each entry's logo if set, falling
back to the name as text otherwise.

Schema migration now supports one-time seed data (Schema::SEED_DATA,
applied by SchemaController::runMigration() only at the moment a table is
first created, never again afterwards) so that clicking "Datenbankstruktur
aktualisieren" on an existing site populates the new partners table with
the previous ten names instead of leaving the homepage strip empty.
Verified locally: first migration run creates + seeds the table, a second
run neither re-seeds nor errors.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 00:05:44 +02:00
Maaxxs
48a2b5f7a6 Add image cropping to the shared upload field
ImageUploadField now opens a crop overlay (react-easy-crop) before
uploading a newly selected file, and offers a "Zuschneiden" button to
re-crop an already-set image without re-uploading. Cropping happens
entirely client-side via canvas; the resulting blob is sent through the
existing /uploads endpoint unchanged.

Wired a fixed aspect ratio into the fields whose images are displayed at
a fixed ratio elsewhere on the site (gallery project/brand covers and
service images at 4:3, matching their public aspect-[4/3] cards; the
hero image at 16:9). Logo fields (brands, car models, site logo) stay
unset, defaulting to the source image's own aspect ratio so they aren't
forced into an unrelated shape.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 23:59:27 +02:00
Maaxxs
9f5919eb45 Show brand/model images on the public vehicle-select pages
image_path was stored correctly since the brand/model image feature was
added, but VehicleSelect.jsx and BrandPage.jsx rendered cards as plain text
links and never read the column. Falls back to the existing text-only look
when no image is set.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 23:56:27 +02:00
Maaxxs
1b60b71ecd Add live-preview positioning to all homepage sections
Follow-up to "mach das bitte auch für alle Startseiten-Sektionen" -
the request was for the same drag experience across all six homepage
text sections, but they split into two structurally different groups
and got two different (both live-preview-driven) treatments rather
than forcing one interaction model onto both:

- Hero and the YouTube section have a real background (image, video)
  behind the text, structurally identical to the gallery cards - these
  get full continuous 2D drag positioning, reusing the same "left/top +
  translate(-x%,-y%)" technique. New home_sections.text_align_x/_y
  (TINYINT UNSIGNED 0-100, default 50/50 = centered, matching current
  behavior) sit alongside the existing text_align column rather than
  replacing it, since the other four sections still need it.
- Craft, Advice, Insights, and "More than car-hifi" are normal
  paragraph text next to a separate image column, with no background
  to drag over - text-align (left/center/right) is the actually correct
  tool for how wrapped paragraph lines align, the same way word
  processors use alignment buttons rather than a position slider for
  body text. These keep the existing text_align enum, but the admin
  page (HomeSections.jsx) replaces the old bare <select> with an actual
  rendered live preview (title/eyebrow/body snippet in a mock card)
  instead of leaving these four with zero visual feedback.

Renamed the shared positioning helper from galleryCardAlign.js /
galleryCardLabelStyle() to dragAnchorPosition.js / dragAnchorStyle()
(now takes a per-caller default so gallery cards keep their bottom-
anchored default while Home.jsx sections default to centered) since
it's no longer gallery-specific - three call sites updated.

Restructured Hero and the YouTube section in Home.jsx so the drag-set
static position doesn't fight with existing animation: Hero already
composes a scroll-linked parallax transform (framer-motion) and an
entrance fade-in on nested motion.div elements, both of which manage
their own `transform` internally - inserting a new plain (non-motion)
div between them for the percentage-based positioning keeps the static
placement and the two animations from touching the same CSS property.

Verified against the local database directly via PHP CLI: hero/youtube
default to 50/50 (centered, no visual change from before), and an
arbitrary pair (25/80) written to hero round-trips correctly through
HomeSectionController::index(), then removed the test row.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 03:42:17 +02:00
Maaxxs
28fc9d76dd Add vertical drag positioning for gallery card labels
Extends the just-added horizontal drag to a second axis, per follow-up
request. New app_settings.gallery_card_text_y (TINYINT UNSIGNED 0-100,
default 100 = bottom, matching the original always-bottom position -
no visual change until an admin drags it).

galleryCardLabelStyle() now takes both x and y and combines
`left/top` + a single `transform: translate(-X%, -Y%)` - same
edge-to-edge interpolation trick as the horizontal axis, just on both
axes at once. GalleryOverview.jsx/GalleryBrandPage.jsx drop the
`bottom-0` class entirely now that vertical position is fully
style-driven.

WebsiteSettings.jsx's drag handlers compute both axes from one pointer
position per move (one setForm call, not two) so a diagonal drag reads
as one continuous motion. Added a vertical Oben/Mittig/Unten quick-jump
row alongside the existing horizontal one.

Note left as-is deliberately: the card's dark gradient overlay still
only fades from opaque at the bottom to transparent at the top, so
text dragged toward the top will have less contrast behind it - that's
a real trade-off of allowing free vertical placement, and the live
preview is exactly how an admin would notice and judge it rather than
being blocked from trying.

Verified against the local database directly via PHP CLI: defaults
(0/100) and an arbitrary pair (30/15) both round-trip correctly
through SiteSettingsController::show(), then reset back to defaults.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 03:29:55 +02:00
Maaxxs
e9f68d054c Replace left/center/right buttons with real drag-and-drop positioning
Follow-up to the previous commit per explicit feedback: three preset
buttons weren't what was asked for - the ask was to grab the label in
the live preview and drag it directly.

Swaps app_settings.gallery_card_text_align (ENUM left/center/right,
one commit old) for gallery_card_text_x (TINYINT UNSIGNED 0-100, same
default position as before at 0). A discrete enum can't represent a
free-dragged position, so this is a real column replacement via
migration_gallery_card_drag.sql (drops the old column outright rather
than keeping both, since the old one is a single commit old and
unlikely to hold any real per-site customization yet).

The label is now positioned with `left: X%; transform: translateX(-X%)`
instead of a text-align class - the standard CSS trick for interpolating
a single percentage continuously between flush-left (X=0) and
flush-right (X=100, shifted back by its own width) with X=50 centering
it, so dragging feels continuous rather than snapping between three
fixed states. hifi-src/src/utils/galleryCardAlign.js now exports a
style-computing function instead of a class lookup table.

WebsiteSettings.jsx's preview label is draggable via Pointer Events
(setPointerCapture on pointerdown, so tracking keeps working even if
the cursor leaves the element mid-drag) with the card's own
getBoundingClientRect() converting cursor position to a 0-100 percent.
Kept small Links/Mittig/Rechts buttons as a secondary quick-jump
alongside the drag, not instead of it.

Verified against the local database directly via PHP CLI: default
comes back as 0, and an arbitrary value (73) written directly to the
column round-trips correctly through SiteSettingsController::show().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 03:23:37 +02:00
Maaxxs
142f9adb05 Make gallery card name label alignment configurable with a live preview
The brand/project name overlaid on gallery cards (GalleryOverview.jsx
and the identical pattern in GalleryBrandPage.jsx) was always left-
aligned with no way to change it - flagged against the brand-overview
page specifically, but the same hard-coded markup exists on the brand
detail page's project cards too, so both get the fix together as one
setting rather than two.

New app_settings.gallery_card_text_align (left/center/right, default
left - no visual change until an admin picks something else), same
site-wide-design-setting pattern as the existing package_card_theme/
package_card_layout. New "Bildergalerie-Kacheln" section in Website
settings renders an actual live preview card - using a real uploaded
gallery image and brand name when one exists, not just a placeholder -
that updates immediately when a button is clicked, rather than a
free-drag positioner: cheaper to build reliably and keeps the label
inside the three positions the design's bottom gradient overlay is
actually built to support.

New shared hifi-src/src/utils/galleryCardAlign.js provides the class
lookup both public pages and the admin preview use - a fixed map
rather than a template-string class name, same reasoning as the
Home.jsx section alignment work: Tailwind's build-time scanner needs
literal class names in the source or it purges them from the
production CSS.

Verified against the local database directly via PHP CLI: the new
column backfilled to 'left' on the existing app_settings row, and
SiteSettingsController::show() returns it correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 03:13:58 +02:00