From 7f4a502fe149a51580bae5f3aee9bfbd5ca2f7c3 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Thu, 2 Oct 2025 16:39:47 +0100 Subject: [PATCH] Feature: Add elegant PWA loading screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implemented a professional loading screen for the PWA to eliminate the "hang and wait" experience during app initialization. Changes: - Added full-screen gradient loading overlay with TeleShop branding - Implemented animated triple-ring spinner with smooth animations - Added automatic removal after PWA initialization (500ms fade-out) - Included 5-second fallback timeout to prevent infinite loading - Updated service worker cache version to v2 - Enhanced JWT validation to detect test/temporary keys - Updated appsettings.json with secure JWT key Design Features: - Purple/blue gradient background matching brand colors - Pulsing logo animation for visual interest - Staggered spinner rings with cubic-bezier easing - Fade-in-out loading text animation - Mobile-responsive design (scales appropriately on all devices) Technical Implementation: - Loading screen visible by default (no FOUC) - Removed via JavaScript when PWA manager initialization completes - Graceful fade-out animation before DOM removal - Console logging for debugging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../Areas/Admin/Views/Shared/_Layout.cshtml | 16 ++ .../ConfigurationValidationService.cs | 4 +- LittleShop/appsettings.json | 2 +- LittleShop/wwwroot/css/mobile-admin.css | 146 ++++++++++++++++++ LittleShop/wwwroot/js/pwa.js | 32 +++- LittleShop/wwwroot/service-worker.js | 2 +- 6 files changed, 197 insertions(+), 5 deletions(-) diff --git a/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml b/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml index e9cf8c4..6d1e760 100644 --- a/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml +++ b/LittleShop/Areas/Admin/Views/Shared/_Layout.cshtml @@ -40,6 +40,22 @@ @await RenderSectionAsync("Head", required: false) + +
+
+ +

TeleShop

+
+
+
+
+
+

Loading your dashboard...

+
+
+