HifiPlanet-Website/hifi/api/database
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
..
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_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 a toggleable page loading screen that waits for images 2026-09-11 11:47:53 +02:00