Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Add linkable routes for DevTools tabs

Adam Eivyea187ff27406
diff --git a/PLAN.md b/PLAN.md
index 3c5adf3f6b..617cc99f04 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -38,6 +38,7 @@ pm2 logs
- **No `window.alert` or `window.confirm`** - Use inline confirmation components or toast notifications for better UX
- Favor functional components and hooks over class components
- Use Tailwind for all styling
+- **Linkable routes for all views** - Tabbed pages, sub-pages, edit/add forms should have distinct URL routes (e.g., `/devtools/history`, `/devtools/processes`) so users can bookmark and share links
### Git Workflow
- **`dev`** - Development branch, all features branch from here
diff --git a/client/src/App.jsx b/client/src/App.jsx
index 80d46aee41..c6e4ebc84b 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -14,7 +14,8 @@ export default function App() {
<Route index element={<Dashboard />} />
<Route path="apps" element={<Apps />} />
<Route path="logs" element={<Logs />} />
- <Route path="devtools" element={<DevTools />} />
+ <Route path="devtools" element={<Navigate to="/devtools/history" replace />} />
+ <Route path="devtools/:tab" element={<DevTools />} />
<Route path="ai" element={<AIProviders />} />
<Route path="create" element={<CreateApp />} />
<Route path="*" element={<Navigate to="/" replace />} />
diff --git a/client/src/pages/DevTools.jsx b/client/src/pages/DevTools.jsx
index eb7394a17c..4ae55fb37f 100644
--- a/client/src/pages/DevTools.jsx
+++ b/client/src/pages/DevTools.jsx
@@ -1,4 +1,5 @@
import { useState, useEffect, useRef } from 'react';
+import { useParams, useNavigate, Link } from 'react-router-dom';
import * as api from '../services/api';
import socket from '../services/socket';
@@ -9,7 +10,15 @@ const TABS = [
];
export default function DevTools() {
- const [activeTab, setActiveTab] = useState('history');
+ const { tab = 'history' } = useParams();
+ const navigate = useNavigate();
+
+ // Redirect invalid tabs to history
+ useEffect(() => {
+ if (!TABS.find(t => t.id === tab)) {
+ navigate('/devtools/history', { replace: true });
+ }
+ }, [tab, navigate]);
return (
<div className="space-y-6">
@@ -19,25 +28,25 @@ export default function DevTools() {
{/* Tabs */}
<div className="flex gap-1 bg-port-card border border-port-border rounded-lg p-1">
- {TABS.map(tab => (
- <button
- key={tab.id}
- onClick={() => setActiveTab(tab.id)}
- className={`flex-1 px-4 py-2 rounded-md text-sm font-medium transition-colors ${
- activeTab === tab.id
+ {TABS.map(t => (
+ <Link
+ key={t.id}
+ to={`/devtools/${t.id}`}
+ className={`flex-1 px-4 py-2 rounded-md text-sm font-medium transition-colors text-center ${
+ tab === t.id
? 'bg-port-accent text-white'
: 'text-gray-400 hover:text-white hover:bg-port-border/50'
}`}
>
- {tab.label}
- </button>
+ {t.label}
+ </Link>
))}
</div>
{/* Tab Content */}
- {activeTab === 'history' && <HistoryTab />}
- {activeTab === 'runner' && <RunnerTab />}
- {activeTab === 'processes' && <ProcessesTab />}
+ {tab === 'history' && <HistoryTab />}
+ {tab === 'runner' && <RunnerTab />}
+ {tab === 'processes' && <ProcessesTab />}
</div>
);
}