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

chore(lint): tighten rules and reduce warning backlog

[._.]/ Adam Eivycebd852ccbf6
diff --git a/client/eslint.config.js b/client/eslint.config.js
index 3ee363033f..d124e2712a 100644
--- a/client/eslint.config.js
+++ b/client/eslint.config.js
@@ -46,8 +46,8 @@ export default [
caughtErrorsIgnorePattern: '^_'
}],
'no-undef': 'error',
- 'no-useless-escape': 'warn',
- 'react-hooks/rules-of-hooks': 'warn',
+ 'no-useless-escape': 'error',
+ 'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
},
diff --git a/client/src/components/apps/tabs/GitTab.jsx b/client/src/components/apps/tabs/GitTab.jsx
index df2cc3524e..6c9bca98ff 100644
--- a/client/src/components/apps/tabs/GitTab.jsx
+++ b/client/src/components/apps/tabs/GitTab.jsx
@@ -51,7 +51,7 @@ ${reviewStep}. **Wait for Copilot review**:
${feedbackStep}. **Address review feedback** (if any):
- Fetch unresolved threads via GraphQL:
\`\`\`
- gh api graphql -f query='query(\$owner: String!, \$repo: String!, \$pr: Int!) { repository(owner: \$owner, name: \$repo) { pullRequest(number: \$pr) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 10) { nodes { body path line author { login } } } } } } } }'
+ gh api graphql -f query='query($owner: String!, $repo: String!, $pr: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $pr) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 10) { nodes { body path line author { login } } } } } } } }'
\`\`\`
- Make requested changes, commit, push (\`git pull --rebase --autostash && git push\`)
- Resolve addressed threads via GraphQL mutation
diff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsx
index 898e877f17..8009575234 100644
--- a/client/src/components/brain/tabs/InboxTab.jsx
+++ b/client/src/components/brain/tabs/InboxTab.jsx
@@ -20,7 +20,6 @@ import toast from 'react-hot-toast';
import {
DESTINATIONS,
- STATUS_COLORS,
getConfidenceColor,
formatRelativeTime
} from '../constants';
@@ -29,7 +28,6 @@ export default function InboxTab({ onRefresh, settings }) {
const [inputText, setInputText] = useState('');
const [sending, setSending] = useState(false);
const [entries, setEntries] = useState([]);
- const [counts, setCounts] = useState({});
const [loading, setLoading] = useState(true);
const [showNeedsReview, setShowNeedsReview] = useState(true);
const [showFiled, setShowFiled] = useState(true);
@@ -43,9 +41,8 @@ export default function InboxTab({ onRefresh, settings }) {
const inputRef = useRef(null);
const fetchInbox = useCallback(async () => {
- const data = await api.getBrainInbox().catch(() => ({ entries: [], counts: {} }));
+ const data = await api.getBrainInbox().catch(() => ({ entries: [] }));
setEntries(data.entries || []);
- setCounts(data.counts || {});
setLoading(false);
}, []);
diff --git a/client/src/components/brain/tabs/MemoryTab.jsx b/client/src/components/brain/tabs/MemoryTab.jsx
index 85c455f095..92d9ce9df7 100644
--- a/client/src/components/brain/tabs/MemoryTab.jsx
+++ b/client/src/components/brain/tabs/MemoryTab.jsx
@@ -7,8 +7,6 @@ import {
Trash2,
X,
Save,
- ChevronDown,
- ChevronRight,
CheckCircle2,
Search,
AlertTriangle
diff --git a/client/src/components/city/CityTraffic.jsx b/client/src/components/city/CityTraffic.jsx
index 68259c74ee..a3e198443f 100644
--- a/client/src/components/city/CityTraffic.jsx
+++ b/client/src/components/city/CityTraffic.jsx
@@ -1,6 +1,5 @@
import { useRef, useMemo } from 'react';
import { useFrame } from '@react-three/fiber';
-import * as THREE from 'three';
import { CITY_COLORS } from './cityConstants';
// A single flying hover vehicle
@@ -9,17 +8,6 @@ function HoverVehicle({ path, color, speed, offset, altitude }) {
const lightRef = useRef();
const bodyRef = useRef();
- const pathLength = useMemo(() => {
- let len = 0;
- for (let i = 1; i < path.length; i++) {
- len += Math.sqrt(
- (path[i][0] - path[i-1][0]) ** 2 +
- (path[i][2] - path[i-1][2]) ** 2
- );
- }
- return len;
- }, [path]);
-
useFrame(({ clock }) => {
if (!groupRef.current || path.length < 2) return;
const t = ((clock.getElapsedTime() * speed + offset) % 1.0);
diff --git a/client/src/components/city/ProcessBuilding.jsx b/client/src/components/city/ProcessBuilding.jsx
index 379ffa6a38..a7025269f4 100644
--- a/client/src/components/city/ProcessBuilding.jsx
+++ b/client/src/components/city/ProcessBuilding.jsx
@@ -11,16 +11,7 @@ const STATUS_COLORS = {
error: '#ef4444',
};
-const hashString = (str) => {
- let hash = 0;
- for (let i = 0; i < str.length; i++) {
- hash = ((hash << 5) - hash) + str.charCodeAt(i);
- hash |= 0;
- }
- return Math.abs(hash);
-};
-
-export default function ProcessBuilding({ process, pm2Status, position, accentColor, seed }) {
+export default function ProcessBuilding({ process, pm2Status, position, seed }) {
const blinkRef = useRef();
const glowRef = useRef();
diff --git a/client/src/components/cos/EsotericCoSAvatar.jsx b/client/src/components/cos/EsotericCoSAvatar.jsx
index d307a34789..172960a786 100644
--- a/client/src/components/cos/EsotericCoSAvatar.jsx
+++ b/client/src/components/cos/EsotericCoSAvatar.jsx
@@ -66,7 +66,7 @@ function EsotericCore({ color, state, speaking }) {
function RunicShards({ color, state }) {
const groupRef = useRef();
const shards = useMemo(() => {
- return Array.from({ length: 5 }).map((_, i) => ({
+ return Array.from({ length: 5 }).map(() => ({
rotationSpeed: (Math.random() - 0.5) * 2,
orbitSpeed: 0.5 + Math.random() * 0.5,
orbitRadius: 1.5 + Math.random() * 0.5,
@@ -119,7 +119,7 @@ function RunicShards({ color, state }) {
}
// Ancient halo rings
-function AncientHalo({ color, state }) {
+function AncientHalo({ color }) {
const ringRef = useRef();
const ring2Ref = useRef();
diff --git a/client/src/components/digital-twin/tabs/DocumentsTab.jsx b/client/src/components/digital-twin/tabs/DocumentsTab.jsx
index 0600d9210f..1f4a916766 100644
--- a/client/src/components/digital-twin/tabs/DocumentsTab.jsx
+++ b/client/src/components/digital-twin/tabs/DocumentsTab.jsx
@@ -5,9 +5,7 @@ import {
Trash2,
Save,
X,
- Eye,
Edit2,
- Check,
ToggleLeft,
ToggleRight,
Scale,
diff --git a/client/src/components/digital-twin/tabs/ExportTab.jsx b/client/src/components/digital-twin/tabs/ExportTab.jsx
index 150e2bf720..6ff2ef166d 100644
--- a/client/src/components/digital-twin/tabs/ExportTab.jsx
+++ b/client/src/components/digital-twin/tabs/ExportTab.jsx
@@ -13,9 +13,9 @@ import {
import * as api from '../../../services/api';
import toast from 'react-hot-toast';
-import { EXPORT_FORMATS, DOCUMENT_CATEGORIES } from '../constants';
+import { DOCUMENT_CATEGORIES } from '../constants';
-export default function ExportTab({ onRefresh }) {
+export default function ExportTab({ onRefresh: _onRefresh }) {
const [documents, setDocuments] = useState([]);
const [formats, setFormats] = useState([]);
const [loading, setLoading] = useState(true);
diff --git a/client/src/components/digital-twin/tabs/ImportTab.jsx b/client/src/components/digital-twin/tabs/ImportTab.jsx
index 2f1740202c..6540e5d06e 100644
--- a/client/src/components/digital-twin/tabs/ImportTab.jsx
+++ b/client/src/components/digital-twin/tabs/ImportTab.jsx
@@ -7,10 +7,8 @@ import {
Calendar,
RefreshCw,
Check,
- AlertCircle,
FileText,
ChevronRight,
- ExternalLink,
Save,
Trash2
} from 'lucide-react';
diff --git a/client/src/components/meatspace/HealthCategorySection.jsx b/client/src/components/meatspace/HealthCategorySection.jsx
index 86ada16116..92448a6b25 100644
--- a/client/src/components/meatspace/HealthCategorySection.jsx
+++ b/client/src/components/meatspace/HealthCategorySection.jsx
@@ -12,8 +12,6 @@ export default function HealthCategorySection({ category, from, to, expanded, on
// Filter to only metrics that have data
const activeMetrics = category.metrics.filter(m => availableMetrics.has(m.key));
- if (activeMetrics.length === 0) return null;
-
const rangeKey = `${from}|${to}`;
useEffect(() => {
diff --git a/client/src/components/meatspace/post/MemoryPractice.jsx b/client/src/components/meatspace/post/MemoryPractice.jsx
index 987bcae492..fef9e2d855 100644
--- a/client/src/components/meatspace/post/MemoryPractice.jsx
+++ b/client/src/components/meatspace/post/MemoryPractice.jsx
@@ -1,5 +1,5 @@
import { useState, useRef, useEffect, useMemo } from 'react';
-import { ChevronLeft, Play, Check, X, SkipForward, RotateCcw, Target, ChevronDown } from 'lucide-react';
+import { ChevronLeft, Check, X, SkipForward, RotateCcw, Target, ChevronDown } from 'lucide-react';
import { submitMemoryPractice, getChunkMastery } from '../../../services/api';
const MODES = [
@@ -10,7 +10,7 @@ const MODES = [
{ id: 'spaced', label: 'Spaced Repetition', desc: 'Focus on your weakest chunks with graduated hints' },
];
-export default function MemoryPractice({ item, onBack, onComplete }) {
+export default function MemoryPractice({ item, onBack, onComplete: _onComplete }) {
const [mode, setMode] = useState(null);
const [results, setResults] = useState([]);
const [currentIdx, setCurrentIdx] = useState(0);
@@ -27,6 +27,18 @@ export default function MemoryPractice({ item, onBack, onComplete }) {
const lines = item.content?.lines || [];
const chunks = item.content?.chunks || [];
+ const fillBlankLine = lines[currentIdx] || null;
+ const fillBlankWords = fillBlankLine?.text.split(/\s+/) || [];
+ // Blank out ~40% of words — recompute when line changes
+ const blanks = useMemo(() => {
+ if (mode !== 'fill-blank' || !fillBlankWords.length) return new Set();
+ const blankSet = new Set();
+ const count = Math.max(1, Math.floor(fillBlankWords.length * 0.4));
+ while (blankSet.size < count && blankSet.size < fillBlankWords.length) {
+ blankSet.add(Math.floor(Math.random() * fillBlankWords.length));
+ }
+ return blankSet;
+ }, [mode, fillBlankWords.length]);
useEffect(() => {
if (mode && inputRef.current) inputRef.current.focus();
@@ -419,19 +431,7 @@ export default function MemoryPractice({ item, onBack, onComplete }) {
);
}
- // FILL-IN-THE-BLANK mode — compute blanks outside conditional to respect Rules of Hooks
- const fillBlankLine = mode === 'fill-blank' ? lines[currentIdx] : null;
- const fillBlankWords = fillBlankLine?.text.split(/\s+/) || [];
- // Blank out ~40% of words — recompute when line changes
- const blanks = useMemo(() => {
- if (!fillBlankWords.length) return new Set();
- const blankSet = new Set();
- const count = Math.max(1, Math.floor(fillBlankWords.length * 0.4));
- while (blankSet.size < count && blankSet.size < fillBlankWords.length) {
- blankSet.add(Math.floor(Math.random() * fillBlankWords.length));
- }
- return blankSet;
- }, [currentIdx, mode, fillBlankWords.length]);
+ // FILL-IN-THE-BLANK mode
if (mode === 'fill-blank') {
const line = fillBlankLine;
diff --git a/client/src/components/messages/InboxTab.jsx b/client/src/components/messages/InboxTab.jsx
index 20726f440f..b292e79d8a 100644
--- a/client/src/components/messages/InboxTab.jsx
+++ b/client/src/components/messages/InboxTab.jsx
@@ -92,7 +92,6 @@ export default function InboxTab({ accounts }) {
new Date(b.date || 0) - new Date(a.date || 0)
);
});
- setTotal(prev => prev + incoming.length);
};
socket.on('messages:sync:message', onSyncMessage);
return () => socket.off('messages:sync:message', onSyncMessage);
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/Instances.jsx b/client/src/pages/Instances.jsx
index 2667bf555a..404036252d 100644
--- a/client/src/pages/Instances.jsx
+++ b/client/src/pages/Instances.jsx
@@ -28,14 +28,6 @@ const STATUS_ICONS = {
unknown: CircleDot
};
-function formatBytes(bytes) {
- if (!bytes) return '—';
- const gb = bytes / (1024 * 1024 * 1024);
- if (gb >= 1) return `${gb.toFixed(1)} GB`;
- const mb = bytes / (1024 * 1024);
- return `${Math.round(mb)} MB`;
-}
-
function timeAgo(iso) {
if (!iso) return 'Never';
const diff = Date.now() - new Date(iso).getTime();
@@ -257,7 +249,7 @@ function DirectionBadge({ directions = [] }) {
return null;
}
-function SyncStatusBadge({ label, icon: Icon, localSeq, peerSeq, cursorSeq }) {
+function SyncStatusBadge({ label, icon: Icon, localSeq: _localSeq, peerSeq, cursorSeq }) {
// cursorSeq = how far we've pulled from them (our cursor for their data)
// localSeq = our local max seq for this data type
// peerSeq = their max seq for this data type (from their sync-status endpoint)