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>
30 lines
1.3 KiB
SQL
30 lines
1.3 KiB
SQL
USE hifi_shop;
|
|
|
|
-- Pakete: per Klick ausblendbar (is_hidden), Markierung auf der Kachel (badge: recommended,
|
|
-- popular, tip, coming_soon oder custom mit eigenem badge_text) und optionaler Video-Link.
|
|
-- Dazu die neue Tabelle fuer den Download-Bereich samt optionalem Zugangspasswort
|
|
-- (app_settings.downloads_password, leer = oeffentlich). Additiv, nichts wird geloescht.
|
|
-- Hinweis: Auf der Live-Seite reicht stattdessen ein Klick auf "Datenbankstruktur aktualisieren"
|
|
-- unter Admin-Panel -> Einstellungen -> Datenbank.
|
|
|
|
ALTER TABLE packages
|
|
ADD COLUMN IF NOT EXISTS is_hidden TINYINT(1) NOT NULL DEFAULT 0,
|
|
ADD COLUMN IF NOT EXISTS badge VARCHAR(20) NULL,
|
|
ADD COLUMN IF NOT EXISTS badge_text VARCHAR(40) NULL,
|
|
ADD COLUMN IF NOT EXISTS video_url VARCHAR(500) NULL;
|
|
|
|
ALTER TABLE app_settings
|
|
ADD COLUMN IF NOT EXISTS downloads_password VARCHAR(100) NULL;
|
|
|
|
CREATE TABLE IF NOT EXISTS downloads (
|
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
title VARCHAR(150) NOT NULL,
|
|
description TEXT NULL,
|
|
file_path VARCHAR(255) NOT NULL,
|
|
file_name VARCHAR(255) NOT NULL,
|
|
file_size BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
|
is_hidden TINYINT(1) NOT NULL DEFAULT 0,
|
|
sort_order INT NOT NULL DEFAULT 0,
|
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
|
) ENGINE=InnoDB;
|