fix: remove splash screen from 3D facility viewer
The 3D viewer now loads directly into the scene without the Feature3D intro overlay
This commit is contained in:
parent
f7a4b32a2c
commit
26d4b5a3a5
1 changed files with 1 additions and 13 deletions
|
|
@ -82,7 +82,6 @@ class ErrorBoundary extends Component<{ children: ReactNode }, ErrorBoundaryStat
|
||||||
|
|
||||||
// --- Main Component ---
|
// --- Main Component ---
|
||||||
export default function Facility3DViewerPage() {
|
export default function Facility3DViewerPage() {
|
||||||
const [showIntro, setShowIntro] = useState(true);
|
|
||||||
const [status, setStatus] = useState('Initializing...');
|
const [status, setStatus] = useState('Initializing...');
|
||||||
const [floorData, setFloorData] = useState<Floor3DData | null>(null);
|
const [floorData, setFloorData] = useState<Floor3DData | null>(null);
|
||||||
const [selectedPlant, setSelectedPlant] = useState<PlantPosition | null>(null);
|
const [selectedPlant, setSelectedPlant] = useState<PlantPosition | null>(null);
|
||||||
|
|
@ -112,12 +111,7 @@ export default function Facility3DViewerPage() {
|
||||||
const [searchParams] = useSearchParams();
|
const [searchParams] = useSearchParams();
|
||||||
const targetedPlantTag = searchParams.get('plant');
|
const targetedPlantTag = searchParams.get('plant');
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
// If coming from deep link, skip intro
|
|
||||||
if (targetedPlantTag) {
|
|
||||||
setShowIntro(false);
|
|
||||||
}
|
|
||||||
}, [targetedPlantTag]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadData();
|
loadData();
|
||||||
|
|
@ -304,12 +298,6 @@ export default function Facility3DViewerPage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-screen w-full relative bg-slate-950 text-white overflow-hidden font-sans">
|
<div className="h-screen w-full relative bg-slate-950 text-white overflow-hidden font-sans">
|
||||||
{/* Intro Overlay */}
|
|
||||||
{showIntro && (
|
|
||||||
<div className="absolute inset-0 z-50 bg-slate-950 overflow-y-auto">
|
|
||||||
<Feature3D onEnter={() => setShowIntro(false)} />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<div className="absolute top-0 left-0 right-0 p-3 md:p-4 z-10 flex flex-wrap items-center justify-between bg-gradient-to-b from-black/90 to-transparent pointer-events-none gap-2">
|
<div className="absolute top-0 left-0 right-0 p-3 md:p-4 z-10 flex flex-wrap items-center justify-between bg-gradient-to-b from-black/90 to-transparent pointer-events-none gap-2">
|
||||||
<div className="pointer-events-auto flex items-center gap-3">
|
<div className="pointer-events-auto flex items-center gap-3">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue