HifiPlanet-Website/hifi/api/database
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
..
migration_2fa.sql Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
migration_analytics.sql Add Google Analytics integration with consent-gated loading 2026-07-07 01:32:44 +02:00
migration_analytics_dashboard.sql Add Google Analytics dashboard widget (GA4 Data API integration) 2026-07-07 01:57:32 +02:00
migration_brand_model_images.sql Add image support for car brands and models 2026-09-09 01:42:40 +02:00
migration_business_stammdaten.sql Add CMS v1: editable business identity and legal pages 2026-09-09 02:03:59 +02:00
migration_custom_fonts.sql Let admins upload their own custom fonts 2026-09-10 03:28:57 +02:00
migration_faqs.sql Move FAQ management into the admin panel and cover it plus the gallery in export/import 2026-07-07 19:25:06 +02:00
migration_font.sql Add global font selection with per-section override 2026-09-10 00:12:01 +02:00
migration_gallery_card_align.sql Make gallery card name label alignment configurable with a live preview 2026-09-09 03:13:58 +02:00
migration_gallery_card_drag.sql Replace left/center/right buttons with real drag-and-drop positioning 2026-09-09 03:23:37 +02:00
migration_gallery_card_y.sql Add vertical drag positioning for gallery card labels 2026-09-09 03:29:55 +02:00
migration_home_sections.sql Make the homepage's main marketing text blocks editable 2026-09-09 02:51:00 +02:00
migration_home_sections_position.sql Add live-preview positioning to all homepage sections 2026-09-09 03:42:17 +02:00
migration_last_active.sql Track when each admin user was last active 2026-08-29 22:14:06 +02:00
migration_mail_settings.sql Add configurable SMTP email settings and contact-form email notifications 2026-07-07 00:54:17 +02:00
migration_maintenance.sql Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
migration_package_badges_downloads.sql Add package badges/visibility and a download area, speed up the site 2026-09-26 23:15:48 +02:00
migration_package_card_layout.sql Redesign package tiles as a dark, credit-card-style scroll strip with hue-sweeping tiers 2026-07-08 23:41:59 +02:00
migration_package_card_theme.sql Add selectable package card color themes and refine the feature list styling 2026-07-08 10:28:05 +02:00
migration_package_design.sql Make package cards configurable and give them a proper tiered design 2026-07-07 21:13:55 +02:00
migration_package_price_text.sql Implement client feedback: calmer cursor, price override text, 3D coverflow layout 2026-07-12 15:13:08 +02:00
migration_package_wheel_hint_interval.sql Repeat the wheel-scroll hint on an admin-configurable interval 2026-08-01 00:39:23 +02:00
migration_page_loader.sql Add a toggleable page loading screen that waits for images 2026-09-11 11:47:53 +02:00
migration_partners.sql Add Partner management to replace the hardcoded homepage brand strip 2026-09-10 00:05:44 +02:00
migration_permissions.sql Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
migration_services.sql Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
migration_site_settings.sql Add admin-configurable website settings and VIN field to contact form 2026-07-06 15:28:11 +02:00
migration_text_styles.sql Add generic per-field text styling (font/size/color), starting with home sections 2026-09-10 02:59:06 +02:00
migration_tile_sizes.sql Make brand/model tile size and package card size admin-configurable 2026-09-10 03:42:20 +02:00
migration_upgrades.sql Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
schema.sql Add package badges/visibility and a download area, speed up the site 2026-09-26 23:15:48 +02:00