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

fix: address release review findings — missing imports, dead code, prop forwarding

Adam Eivy27b356177ed8
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 5a3cce6332..74b0e283d9 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -1,5 +1,5 @@
import { useState, useEffect, useMemo } from 'react';
-import { Outlet, NavLink, useLocation } from 'react-router-dom';
+import { Outlet, NavLink, useLocation, useNavigate } from 'react-router-dom';
import {
Home,
Package,
@@ -232,6 +232,7 @@ const SIDEBAR_KEY = 'portos-sidebar-collapsed';
export default function Layout() {
const location = useLocation();
+ const navigate = useNavigate();
const [collapsed, setCollapsed] = useState(() => {
const saved = localStorage.getItem(SIDEBAR_KEY);
return saved === 'true';
@@ -420,7 +421,7 @@ export default function Layout() {
if (collapsed) {
// When collapsed, navigate to first child
if (item.children && item.children.length > 0) {
- window.location.href = item.children[0].to;
+ navigate(item.children[0].to);
}
} else {
toggleSection(item.label);
diff --git a/client/src/components/NotificationDropdown.jsx b/client/src/components/NotificationDropdown.jsx
index df816fa45e..8e0b5a320e 100644
--- a/client/src/components/NotificationDropdown.jsx
+++ b/client/src/components/NotificationDropdown.jsx
@@ -157,7 +157,7 @@ export default function NotificationDropdown({
role="menuitem"
tabIndex={0}
className={`
- px-4 py-3 border-b border-port-border last:border-b-0 cursor-pointer
+ group px-4 py-3 border-b border-port-border last:border-b-0 cursor-pointer
hover:bg-port-border/50 transition-colors focus:outline-hidden focus:bg-port-border/50
${!notification.read ? 'bg-port-border/30' : ''}
border-l-2 ${PRIORITY_COLORS[notification.priority] || PRIORITY_COLORS.medium}
diff --git a/client/src/components/ReviewHubCard.jsx b/client/src/components/ReviewHubCard.jsx
index 7305eed36b..a7e7ce8b2d 100644
--- a/client/src/components/ReviewHubCard.jsx
+++ b/client/src/components/ReviewHubCard.jsx
@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
-import { ClipboardList, AlertTriangle, Crown, CheckCircle2 } from 'lucide-react';
+import { AlertTriangle, Crown, CheckCircle2 } from 'lucide-react';
import * as api from '../services/api';
import socket from '../services/socket';
diff --git a/client/src/components/city/CityScene.jsx b/client/src/components/city/CityScene.jsx
index df64ee3279..cfe92112a1 100644
--- a/client/src/components/city/CityScene.jsx
+++ b/client/src/components/city/CityScene.jsx
@@ -9,8 +9,6 @@ import CityCelestial from './CityCelestial';
import BuildingCluster from './BuildingCluster';
import CityDataStreams from './CityDataStreams';
import CityTraffic from './CityTraffic';
-import CitySignalBeacons from './CitySignalBeacons';
-
import CityWeather from './CityWeather';
import CityBillboards from './CityBillboards';
import CityShootingStars from './CityShootingStars';
@@ -90,6 +88,8 @@ export default function CityScene({ apps, agentMap, onBuildingClick, cosStatus,
positions={positions}
apps={apps}
cosStatus={cosStatus}
+ reviewCounts={reviewCounts}
+ instances={instances}
productivityData={productivityData}
/>
<CityVolumetricLights positions={positions} />
diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsx
index b28455438d..f99d04ddde 100644
--- a/client/src/pages/Apps.jsx
+++ b/client/src/pages/Apps.jsx
@@ -1,6 +1,6 @@
import { useState, useEffect, useCallback } from 'react';
import { Link } from 'react-router-dom';
-import { ExternalLink, Play, Square, RotateCcw, FolderOpen, Terminal, Code, RefreshCw, Wrench, Archive, ArchiveRestore, ChevronDown, ChevronUp, Ticket, GitBranch, Download, Hammer, Smartphone, Image } from 'lucide-react';
+import { ExternalLink, Play, Square, RotateCcw, FolderOpen, Terminal, Code, RefreshCw, Wrench, Archive, ArchiveRestore, Ticket, Download, Hammer, Smartphone, Image } from 'lucide-react';
import toast from 'react-hot-toast';
import AppIcon from '../components/AppIcon';
import BrailleSpinner from '../components/BrailleSpinner';
diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsx
index 98eb5fa23b..eb782608b2 100644
--- a/client/src/pages/Shell.jsx
+++ b/client/src/pages/Shell.jsx
@@ -6,6 +6,7 @@ import { WebLinksAddon } from '@xterm/addon-web-links';
import '@xterm/xterm/css/xterm.css';
import { useSocket } from '../hooks/useSocket';
import { RefreshCw, Power, PowerOff, FolderOpen, ChevronDown, Plus, X, Terminal as TerminalIcon } from 'lucide-react';
+import * as api from '../services/api';
// Must match MAX_TOTAL_SESSIONS in server/services/shell.js
const MAX_SESSIONS = 5;
@@ -71,8 +72,7 @@ export default function Shell() {
// Fetch app folders from the managed apps list
useEffect(() => {
- fetch('/api/apps')
- .then(res => res.ok ? res.json() : Promise.reject(new Error(`${res.status} ${res.statusText}`)))
+ api.getApps()
.then(apps => setAppFolders(
(apps || [])
.filter(a => a.repoPath)
diff --git a/server/routes/attachments.js b/server/routes/attachments.js
index 26b5935ef3..b9f4b56273 100644
--- a/server/routes/attachments.js
+++ b/server/routes/attachments.js
@@ -6,7 +6,7 @@
import { Router } from 'express';
import { writeFile, unlink, readdir, stat } from 'fs/promises';
import { existsSync } from 'fs';
-import { join, basename, extname } from 'path';
+import { join, basename, extname, resolve } from 'path';
import { v4 as uuidv4 } from 'uuid';
import { asyncHandler, ServerError } from '../lib/errorHandler.js';
import { ensureDir, PATHS } from '../lib/fileUtils.js';
diff --git a/server/routes/database.js b/server/routes/database.js
index ea34269e5a..7e9e188d25 100644
--- a/server/routes/database.js
+++ b/server/routes/database.js
@@ -1,5 +1,5 @@
import { Router } from 'express';
-import { execFile, execFileSync } from 'child_process';
+import { execFile } from 'child_process';
import { existsSync } from 'fs';
import { join } from 'path';
import { asyncHandler } from '../lib/errorHandler.js';
diff --git a/server/routes/detect.js b/server/routes/detect.js
index 1cfcc71291..e72b6bf49a 100644
--- a/server/routes/detect.js
+++ b/server/routes/detect.js
@@ -143,9 +143,10 @@ router.post('/port', asyncHandler(async (req, res) => {
};
// Use lsof on macOS/Linux to find process
+ const safePort = parseInt(port, 10);
const command = process.platform === 'darwin'
- ? `lsof -i :${port} -P -n | grep LISTEN`
- : `ss -lntp | grep :${port}`;
+ ? `lsof -i :${safePort} -P -n | grep LISTEN`
+ : `ss -lntp | grep :${safePort}`;
const { stdout } = await execAsync(command, { windowsHide: true }).catch(() => ({ stdout: '' }));
diff --git a/server/routes/uploads.js b/server/routes/uploads.js
index 1cbcabb6b0..a21d4b4a85 100644
--- a/server/routes/uploads.js
+++ b/server/routes/uploads.js
@@ -6,7 +6,7 @@
import { Router } from 'express';
import { writeFile, unlink, readdir, stat } from 'fs/promises';
import { existsSync } from 'fs';
-import { join, basename, extname } from 'path';
+import { join, basename, extname, resolve } from 'path';
import { v4 as uuidv4 } from 'uuid';
import { asyncHandler, ServerError } from '../lib/errorHandler.js';
import { ensureDir, PATHS } from '../lib/fileUtils.js';
diff --git a/server/services/googleAuth.js b/server/services/googleAuth.js
index 551772353b..f00b4158fb 100644
--- a/server/services/googleAuth.js
+++ b/server/services/googleAuth.js
@@ -10,7 +10,7 @@ const SCOPES = [
'https://www.googleapis.com/auth/calendar',
'https://www.googleapis.com/auth/gmail.modify'
];
-export const OAUTH_REDIRECT_URI = `http://localhost:${process.env.PORT || 5555}/api/calendar/google/oauth/callback`;
+export const OAUTH_REDIRECT_URI = `http://${process.env.HOST || 'localhost'}:${process.env.PORT || 5555}/api/calendar/google/oauth/callback`;
let oAuth2Client = null;