feat(webui): add FLEET tab group to App.jsx — Issue #139
Adds FleetPanel import and FLEET tab group (green) to the main dashboard navigation. Fleet tab is self-contained via useFleet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
87b45e1b97
commit
85e5777994
@ -135,7 +135,9 @@ export default function App() {
|
||||
<span className="text-orange-500 font-bold tracking-widest text-sm">⚡ SALTYBOT</span>
|
||||
<span className="text-cyan-800 text-xs hidden sm:inline">DASHBOARD</span>
|
||||
</div>
|
||||
<ConnectionBar url={wsUrl} setUrl={setWsUrl} connected={connected} error={error} />
|
||||
{activeTab !== 'fleet' && (
|
||||
<ConnectionBar url={wsUrl} setUrl={setWsUrl} connected={connected} error={error} />
|
||||
)}
|
||||
</header>
|
||||
|
||||
{/* ── Tab Navigation ── */}
|
||||
@ -191,10 +193,16 @@ export default function App() {
|
||||
|
||||
{/* ── Footer ── */}
|
||||
<footer className="bg-[#070712] border-t border-cyan-950 px-4 py-1.5 flex items-center justify-between text-xs text-gray-700 shrink-0">
|
||||
<span>rosbridge: <code className="text-gray-600">{wsUrl}</code></span>
|
||||
<span className={connected ? 'text-green-700' : 'text-red-900'}>
|
||||
{connected ? 'CONNECTED' : 'DISCONNECTED'}
|
||||
</span>
|
||||
{activeTab !== 'fleet' ? (
|
||||
<>
|
||||
<span>rosbridge: <code className="text-gray-600">{wsUrl}</code></span>
|
||||
<span className={connected ? 'text-green-700' : 'text-red-900'}>
|
||||
{connected ? 'CONNECTED' : 'DISCONNECTED'}
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
<span className="text-green-800">FLEET MODE — multi-robot</span>
|
||||
)}
|
||||
</footer>
|
||||
</div>
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user