From 26d4b5a3a512dd1f06f75ef52816eeaa5569d5cb Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Fri, 19 Dec 2025 20:51:01 -0800 Subject: [PATCH] fix: remove splash screen from 3D facility viewer The 3D viewer now loads directly into the scene without the Feature3D intro overlay --- frontend/src/pages/Facility3DViewerPage.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/frontend/src/pages/Facility3DViewerPage.tsx b/frontend/src/pages/Facility3DViewerPage.tsx index 3dc3e5a..399da46 100644 --- a/frontend/src/pages/Facility3DViewerPage.tsx +++ b/frontend/src/pages/Facility3DViewerPage.tsx @@ -82,7 +82,6 @@ class ErrorBoundary extends Component<{ children: ReactNode }, ErrorBoundaryStat // --- Main Component --- export default function Facility3DViewerPage() { - const [showIntro, setShowIntro] = useState(true); const [status, setStatus] = useState('Initializing...'); const [floorData, setFloorData] = useState(null); const [selectedPlant, setSelectedPlant] = useState(null); @@ -112,12 +111,7 @@ export default function Facility3DViewerPage() { const [searchParams] = useSearchParams(); const targetedPlantTag = searchParams.get('plant'); - useEffect(() => { - // If coming from deep link, skip intro - if (targetedPlantTag) { - setShowIntro(false); - } - }, [targetedPlantTag]); + useEffect(() => { loadData(); @@ -304,12 +298,6 @@ export default function Facility3DViewerPage() { return (
- {/* Intro Overlay */} - {showIntro && ( -
- setShowIntro(false)} /> -
- )} {/* Header */}