diff --git a/web/client/src/App.jsx b/web/client/src/App.jsx index 20799d4..292c50b 100644 --- a/web/client/src/App.jsx +++ b/web/client/src/App.jsx @@ -22,6 +22,8 @@ function App() { const [showSettings, setShowSettings] = useState(false); const [, forceRender] = useState(0); + const turtleDashboardUrl = import.meta.env.VITE_TURTLE_DASHBOARD_URL || `${window.location.protocol}//${window.location.hostname}:4444`; + useEffect(() => { connect(); }, [connect]); @@ -34,10 +36,6 @@ function App() { const staleSecs = lastUpdate ? Math.floor((Date.now() - lastUpdate) / 1000) : null; - useEffect(() => { - connect(); - }, [connect]); - const renderPanelContent = () => { switch (panelTab) { case 'inventory': @@ -60,6 +58,16 @@ function App() {

⛏️ Inventory Manager

+ {/* Cross-link to Turtle Dashboard */} + + 🐢 Turtles + {/* Settings gear button */}