From 011dd08f0891ca29d680fa566dfb0cb60f4af383 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 May 2026 12:41:25 +0000 Subject: [PATCH] bump: SW cache v4 to force cache invalidation --- public/service-worker.js | 4 ++-- src/pages/DashboardPage.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/service-worker.js b/public/service-worker.js index 32463af..6e0b352 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,8 +1,8 @@ const isLocalhost = self.location.hostname === "localhost" || self.location.hostname === "127.0.0.1"; if (!isLocalhost) { - const STATIC_CACHE = "construction-delivery-static-v3"; - const RUNTIME_CACHE = "construction-delivery-runtime-v3"; + const STATIC_CACHE = "construction-delivery-static-v4"; + const RUNTIME_CACHE = "construction-delivery-runtime-v4"; const APP_SHELL_URLS = ["/", "/index.html", "/manifest.webmanifest", "/icons/icon-192.svg", "/icons/icon-512.svg"]; self.addEventListener("install", (event) => { diff --git a/src/pages/DashboardPage.jsx b/src/pages/DashboardPage.jsx index 604d930..b66c750 100644 --- a/src/pages/DashboardPage.jsx +++ b/src/pages/DashboardPage.jsx @@ -3,7 +3,7 @@ import { Navigate, useNavigate } from "react-router-dom"; import { DriverDeliveryPlanner } from "../components/driver/DriverDeliveryPlanner"; import { LogisticsReadinessBoard } from "../components/logistics/LogisticsReadinessBoard"; import { OrdersTable } from "../components/orders/OrdersTable"; -import AdminDashboard from "../components/admin/AdminDashboard"; +import { AdminDashboard } from "../components/admin/AdminDashboard"; import UserManagementPanel from "../components/admin/UserManagementPanel"; import ErrorLogPanel from "../components/admin/ErrorLogPanel"; import { Panel } from "../components/UI/Panel";