Modelle > 'KI-Bilder': Modelle anhaken (alle ohne Bild / alle), Ergebnis optional
automatisch uebernehmen. Vorlage laden: Haken 'KI-Bilder fuer die neuen Modelle'.
Warteschlange am Modell (ai_state waiting/running/done/failed), POST /ai-images/process
schickt hoechstens 4 gleichzeitig zu Higgsfield und holt fertige Bilder ab, solange die
Modell-Seite offen ist.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ex4YsMRQ4GF2dkGWuX6Yio
Panel schliessen oder Seite neu laden bricht nichts mehr ab: der Auftrag steht in
car_models.ai_request_id und wird beim naechsten Oeffnen wieder aufgenommen, bis ein
Ergebnis uebernommen oder verworfen wird. In der Modell-Liste Hinweis 'KI-Bild offen'.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ex4YsMRQ4GF2dkGWuX6Yio
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
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
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
- 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
- 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
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
- 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
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
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
gtag.js verarbeitet nur arguments-Objekte. Mit ...args landeten Arrays im
dataLayer, die stillschweigend ignoriert wurden - config und page_view kamen
nie bei GA an. Build neu.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TFDXmUdWg4Ai8x5ehhJvva
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
Unveraendert gespeicherter alter Impressum-Text wird wie bei DSE/AGB durch den neuen ersetzt.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYoPhXFekv6sar3TAgqXPJ
- 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
- Datenschutz: Hoster All-Inkl, Google-Bewertungen, GA4 statt IP-Anonymisierung,
USA-Uebermittlung (DPF), Widerspruchsrecht Art. 21, Art. 13 Abs. 2, YouTube nur noch Links
- AGB: Widerrufsbelehrung + Muster-Formular fuer Fernabsatz, Haftung fuer Gegenstaende
im Fahrzeug und Gewaehrleistung verbraucherkonform, Kostenvoranschlag/Pfandrecht
- Unveraendert gespeicherte alte Standardtexte werden durch die neuen ersetzt
- Bewerter-Profilfotos werden beim Refresh nach uploads/reviews/ geladen; externe
Foto-URLs gibt die oeffentliche API nicht mehr aus
- Cookie-Banner nennt YouTube nicht mehr
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYoPhXFekv6sar3TAgqXPJ
- 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
- 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
- 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
- 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
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
Import uebernimmt die haeufigste Schrift-Einstellung (text_styles) der vorhandenen
Marken- und Modellnamen fuer alle Eintraege ohne eigene Einstellung. Im Vorlagen-Fenster
gleicht 'Jetzt angleichen' frueher importierte Eintraege an (POST /vehicle-catalog/align-styles).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bUXMMTn84UnoT7ps5aXCs
Optional werden die Pakete eines Referenzmodells (Vorgabe VW Golf 7) samt Produkten,
Uebersetzungen und Upgrades in jedes neu angelegte Modell kopiert
(PackageController::copyPackages, auch von 'Pakete kopieren' genutzt). Neue Marken
bekommen das Bild, das die meisten vorhandenen Marken nutzen. Import laeuft markenweise.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bUXMMTn84UnoT7ps5aXCs
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
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
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
Hintergrund, Farben, Michroma-Ueberschrift mit gruenem Schlusswort und Kartenoptik
aus dem Kontaktformular-Design; Equalizer, Leuchteffekte, Raster, Glas-Kacheln und
Zaehlwerk-Animation entfernt. Inhalt linksbuendig, weil rechts der Farbspritzer liegt.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KSYBhvKhm4di3v331BkNjL
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
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
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
- 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
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>
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>
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>
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>
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>
dark:border-neutral-800 set all four border sides in dark mode, which
also silently overwrote the top edge's border-t-brand-500 color that
creates the spin illusion - with all four sides the same color, the ring
still rotated but had nothing visible to show for it. Added an explicit
dark:border-t-brand-500 so the top edge keeps its accent color in both
themes; verified in the built CSS that its rule now comes after (and so
wins over) the general dark:border-neutral-800 one.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The homepage is the longest, most image/video-heavy page on the site,
where waiting for everything to settle pays off the least. It now always
renders immediately regardless of the global page_loader_enabled
setting; every other page still respects that setting as before.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Spinner was absolutely positioned within the (very tall, since hidden
content still occupies layout space) page container, so on a long page
like the homepage it centered itself far down the page instead of in the
visible viewport - had to scroll to see it. Switched to fixed positioning
so it always centers in the actual visible screen regardless of how long
the underlying page is.
Separately, found and fixed the single biggest asset weighing down every
load of the contact page: hifi-src/src/assets/contact/bg-light.png and
bg-dark.png were 3.1MB and 4.0MB respectively (2560x1440, stored as
lossless PNG despite being photographic/gradient content - PNG compresses
that kind of content very poorly compared to a lossy format). Converted
both to WEBP at quality 78 and updated the two background-image
references in index.css - 3.13MB -> 0.02MB and 4.01MB -> 0.08MB, over
98% smaller, visually equivalent for a blurred background image. These
aren't admin-uploaded content (they're bundled build assets), so they
were untouched by the automatic upload compression added earlier.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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>