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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat(cybercity): improve UX with better colors, readability, and interactivity
Adam Eivydfd8ffb43824
diff --git a/client/src/components/city/Building.jsx b/client/src/components/city/Building.jsxindex bae74ac2d4..0f497bf7d6 100644--- a/client/src/components/city/Building.jsx+++ b/client/src/components/city/Building.jsx@@ -277,6 +277,7 @@ export default function Building({ app, position, agentCount, onClick, playSfx,const edgeColor = getBuildingColor(app.overallStatus, app.archived);const accentColor = getAccentColor(app);const isOnline = app.overallStatus === 'online' && !app.archived;+ const isStopped = app.overallStatus === 'stopped' && !app.archived;const { width, depth } = BUILDING_PARAMS;// Name hash for seeded randomness@@ -306,8 +307,12 @@ export default function Building({ app, position, agentCount, onClick, playSfx,const t = clock.getElapsedTime();const nb = neonBrightness;- const baseIntensity = (isOnline ? 0.5 : 0.2) * nb;- const pulse = isOnline ? Math.sin(t * 2 + seed) * 0.15 * nb : 0;+ const baseIntensity = (isOnline ? 0.5 : isStopped ? 0.35 : 0.2) * nb;+ const pulse = isOnline+ ? Math.sin(t * 2 + seed) * 0.15 * nb+ : isStopped+ ? Math.sin(t * 3.5 + seed) * 0.2 * nb+ : 0;const hoverBoost = hovered ? 0.4 * nb : 0;meshRef.current.material.emissiveIntensity = baseIntensity + pulse + hoverBoost;@@ -340,7 +345,7 @@ export default function Building({ app, position, agentCount, onClick, playSfx,emissiveIntensity={0.35 * neonBrightness}map={windowTexture}transparent- opacity={app.archived ? 0.75 : 0.95}+ opacity={app.archived ? 0.6 : 0.95}/></mesh>diff --git a/client/src/components/city/CityActivityLog.jsx b/client/src/components/city/CityActivityLog.jsxindex fe84034e8c..ed3680dc0f 100644--- a/client/src/components/city/CityActivityLog.jsx+++ b/client/src/components/city/CityActivityLog.jsx@@ -1,4 +1,4 @@-import { useRef, useEffect } from 'react';+import { useRef, useEffect, useState } from 'react';const LEVEL_COLORS = {info: 'text-cyan-400',@@ -8,8 +8,17 @@ const LEVEL_COLORS = {debug: 'text-gray-500',};+const LEVEL_INDICATORS = {+ info: 'bg-cyan-400',+ warn: 'bg-amber-400',+ error: 'bg-red-400',+ success: 'bg-emerald-400',+ debug: 'bg-gray-600',+};+export default function CityActivityLog({ logs }) {const scrollRef = useRef(null);+ const [collapsed, setCollapsed] = useState(false);useEffect(() => {if (scrollRef.current) {@@ -20,27 +29,51 @@ export default function CityActivityLog({ logs }) {if (logs.length === 0) return null;return (- <div className="absolute top-16 right-3 bottom-20 w-72 pointer-events-auto">- <div className="h-full bg-black/70 backdrop-blur-sm border border-cyan-500/20 rounded-lg overflow-hidden flex flex-col">- <div className="px-3 py-2 border-b border-cyan-500/20 text-cyan-400 text-[10px] font-pixel tracking-wider font-bold">- ACTIVITY LOG- </div>- <div ref={scrollRef} className="flex-1 overflow-y-auto px-3 py-1 space-y-0.5">- {logs.slice(-30).map((log, i) => {- const level = log.level || 'info';- const colorClass = LEVEL_COLORS[level] || LEVEL_COLORS.info;- const time = log.timestamp- ? new Date(log.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' })- : '';+ <div className={`absolute top-16 right-3 ${collapsed ? '' : 'bottom-20'} w-72 pointer-events-auto`}>+ <div className={`${collapsed ? '' : 'h-full'} bg-black/80 backdrop-blur-sm border border-cyan-500/25 rounded-lg overflow-hidden flex flex-col`}>+ <button+ onClick={() => setCollapsed(!collapsed)}+ className="flex items-center justify-between px-3 py-2 border-b border-cyan-500/20 hover:bg-cyan-500/5 transition-colors"+ >+ <span className="text-cyan-400 text-[11px] font-pixel tracking-wider font-bold">+ ACTIVITY LOG+ </span>+ <div className="flex items-center gap-2">+ <span className="font-pixel text-[9px] text-cyan-500/40">{logs.length}</span>+ <span className="font-pixel text-[10px] text-cyan-500/50">+ {collapsed ? '[+]' : '[-]'}+ </span>+ </div>+ </button>+ {!collapsed && (+ <div+ ref={scrollRef}+ className="flex-1 overflow-y-auto px-3 py-1.5 space-y-1"+ style={{ scrollbarWidth: 'thin', scrollbarColor: 'rgba(6,182,212,0.2) transparent' }}+ >+ {logs.slice(-40).map((log, i) => {+ const level = log.level || 'info';+ const colorClass = LEVEL_COLORS[level] || LEVEL_COLORS.info;+ const indicatorClass = LEVEL_INDICATORS[level] || LEVEL_INDICATORS.info;+ const time = log.timestamp+ ? new Date(log.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' })+ : '';+ const message = log.message || log.event || JSON.stringify(log);- return (- <div key={i} className="font-pixel text-[9px] leading-tight flex gap-1.5 tracking-wide">- <span className="text-gray-600 shrink-0">{time}</span>- <span className={colorClass}>{log.message || log.event || JSON.stringify(log)}</span>- </div>- );- })}- </div>+ return (+ <div+ key={i}+ className="font-pixel text-[9px] leading-tight flex items-start gap-1.5 tracking-wide group hover:bg-cyan-500/5 rounded px-1 py-0.5 -mx-1 transition-colors"+ title={message}+ >+ <span className={`w-1 h-1 rounded-full ${indicatorClass} shrink-0 mt-1 opacity-70`} />+ <span className="text-gray-500 shrink-0">{time}</span>+ <span className={`${colorClass} truncate group-hover:whitespace-normal group-hover:break-all`}>{message}</span>+ </div>+ );+ })}+ </div>+ )}</div></div>);diff --git a/client/src/components/city/CityAgentBar.jsx b/client/src/components/city/CityAgentBar.jsxindex c47a01c9d0..289dca662a 100644--- a/client/src/components/city/CityAgentBar.jsx+++ b/client/src/components/city/CityAgentBar.jsx@@ -18,28 +18,34 @@ export default function CityAgentBar({ cosAgents, agentMap }) {return (<div className="absolute bottom-3 left-3 right-3 pointer-events-auto">- <div className="bg-black/70 backdrop-blur-sm border border-cyan-500/20 rounded-lg px-3 py-2">- <div className="flex items-center gap-3 overflow-x-auto">- <span className="text-cyan-400 text-[10px] font-pixel tracking-wider font-bold shrink-0">AGENTS</span>+ <div className="bg-black/80 backdrop-blur-sm border border-cyan-500/25 rounded-lg px-3 py-2.5">+ <div className="flex items-center gap-3 overflow-x-auto" style={{ scrollbarWidth: 'thin', scrollbarColor: 'rgba(6,182,212,0.2) transparent' }}>+ <span className="text-cyan-400 text-[11px] font-pixel tracking-wider font-bold shrink-0">AGENTS</span>+ <div className="w-px h-4 bg-cyan-500/20 shrink-0" />{activeAgents.map((agent, i) => {const state = agent.state || 'coding';const stateConfig = AGENT_STATES[state];const appName = getAppName(agent);+ const stateLabel = stateConfig?.label || state;return (<divkey={agent.agentId || i}- className="flex items-center gap-1.5 px-2 py-1 bg-black/40 border border-white/10 rounded text-[9px] font-pixel tracking-wide shrink-0"+ className="flex items-center gap-2 px-2.5 py-1.5 bg-black/50 border border-white/10 rounded-md text-[9px] font-pixel tracking-wide shrink-0 min-h-[32px]"+ title={`${agent.type || 'agent'} - ${stateLabel}${appName ? ` (${appName})` : ''}`}><spanclassName="w-2 h-2 rounded-full shrink-0 animate-pulse"- style={{ backgroundColor: stateConfig?.color || '#06b6d4' }}+ style={{+ backgroundColor: stateConfig?.color || '#06b6d4',+ boxShadow: `0 0 6px ${stateConfig?.color || '#06b6d4'}`,+ }}/><span className="text-gray-300">{agent.type || 'agent'}</span>{appName && (<><span className="text-gray-600">|</span>- <span className="text-cyan-400/70 truncate max-w-[100px]">{appName}</span>+ <span className="text-cyan-400/70 truncate max-w-[120px]">{appName}</span></>)}</div>diff --git a/client/src/components/city/CityGround.jsx b/client/src/components/city/CityGround.jsxindex 84f45ced17..be4625f482 100644--- a/client/src/components/city/CityGround.jsx+++ b/client/src/components/city/CityGround.jsx@@ -106,14 +106,14 @@ export default function CityGround({ settings }) {<GridinfiniteGrid- cellSize={1}- sectionSize={4}- cellColor={CITY_COLORS.ground}- sectionColor={CITY_COLORS.ground}- cellThickness={0.4}- sectionThickness={1}- fadeDistance={70}- fadeStrength={0.8}+ cellSize={2}+ sectionSize={6}+ cellColor="#0e7490"+ sectionColor="#06b6d4"+ cellThickness={0.6}+ sectionThickness={1.4}+ fadeDistance={80}+ fadeStrength={0.6}position={[0, -0.01, 0]}/>@@ -128,7 +128,7 @@ export default function CityGround({ settings }) {<meshBasicMaterialcolor="#06b6d4"transparent- opacity={0.03}+ opacity={0.045}blending={THREE.AdditiveBlending}side={THREE.DoubleSide}/>diff --git a/client/src/components/city/CityHud.jsx b/client/src/components/city/CityHud.jsxindex 658b0ba4da..386cee6b99 100644--- a/client/src/components/city/CityHud.jsx+++ b/client/src/components/city/CityHud.jsx@@ -15,11 +15,11 @@ const formatUptime = (seconds) => {// Weather status text based on system healthconst getWeatherStatus = (onlineRatio) => {- if (onlineRatio >= 1.0) return { text: 'CLEAR', color: 'text-emerald-400', icon: '//' };- if (onlineRatio >= 0.8) return { text: 'FAIR', color: 'text-cyan-400', icon: '~' };- if (onlineRatio >= 0.5) return { text: 'OVERCAST', color: 'text-amber-400', icon: '%%' };- if (onlineRatio >= 0.2) return { text: 'RAIN', color: 'text-orange-400', icon: '||' };- return { text: 'STORM', color: 'text-red-400', icon: '!!' };+ if (onlineRatio >= 1.0) return { text: 'CLEAR', color: 'text-emerald-400', icon: '//', desc: 'All systems operational' };+ if (onlineRatio >= 0.8) return { text: 'FAIR', color: 'text-cyan-400', icon: '~', desc: 'Minor issues detected' };+ if (onlineRatio >= 0.5) return { text: 'OVERCAST', color: 'text-amber-400', icon: '%%', desc: 'Multiple systems down' };+ if (onlineRatio >= 0.2) return { text: 'RAIN', color: 'text-orange-400', icon: '||', desc: 'Significant outages' };+ return { text: 'STORM', color: 'text-red-400', icon: '!!', desc: 'Critical system failure' };};// Animated corner decoration for HUD panels@@ -133,27 +133,27 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con<div className="absolute inset-0 pointer-events-none overflow-hidden">{/* Top-left: Clock + system status + vitals */}<div className="absolute top-3 left-3 pointer-events-auto">- <div className="relative bg-black/80 backdrop-blur-sm border border-cyan-500/30 rounded-lg px-4 py-2.5 overflow-hidden">+ <div className="relative bg-black/85 backdrop-blur-sm border border-cyan-500/40 rounded-lg px-4 py-3 overflow-hidden"><HudCorner position="tl" /><HudCorner position="tr" /><HudCorner position="bl" /><HudCorner position="br" />- <div className="font-pixel text-cyan-400 text-lg tracking-wider" style={{ textShadow: '0 0 8px rgba(6,182,212,0.5)' }}>+ <div className="font-pixel text-cyan-400 text-xl tracking-wider" style={{ textShadow: '0 0 10px rgba(6,182,212,0.6)' }}>{time.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' })}</div>- <div className="font-pixel text-[10px] text-cyan-600 tracking-wide">+ <div className="font-pixel text-[11px] text-cyan-500 tracking-wide mt-0.5">{activeApps}/{totalApps} SYSTEMS ONLINE</div>{/* System health bar */}- <div className="mt-1.5">+ <div className="mt-2"><HealthBar value={activeApps} max={totalApps} color="#06b6d4" /></div></div>{/* System Vitals panel */}- <div className="relative mt-2 bg-black/80 backdrop-blur-sm border border-cyan-500/20 rounded-lg px-3 py-2 space-y-1 overflow-hidden">+ <div className="relative mt-2 bg-black/85 backdrop-blur-sm border border-cyan-500/30 rounded-lg px-3 py-2.5 space-y-1.5 overflow-hidden"><HudCorner position="tl" /><HudCorner position="tr" /><HudCorner position="bl" />@@ -161,34 +161,34 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con{/* Animated scan line */}<div- className="absolute left-0 right-0 h-px bg-cyan-400/10 pointer-events-none"+ className="absolute left-0 right-0 h-px bg-cyan-400/15 pointer-events-none"style={{ top: `${scanLine}%` }}/>- <div className="font-pixel text-[9px] text-cyan-500/60 tracking-wider mb-1">+ <div className="font-pixel text-[10px] text-cyan-500/70 tracking-wider mb-1">SYSTEM VITALS</div>{/* Uptime */}- <div className="flex items-center justify-between gap-4">- <span className="font-pixel text-[9px] text-gray-500 tracking-wide">UPTIME</span>- <span className="font-pixel text-[10px] text-cyan-400" style={{ textShadow: '0 0 4px rgba(6,182,212,0.3)' }}>+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">UPTIME</span>+ <span className="font-pixel text-[11px] text-cyan-400" style={{ textShadow: '0 0 6px rgba(6,182,212,0.4)' }}>{formatUptime(uptimeSeconds)}</span></div>{/* Weather (system health) */}- <div className="flex items-center justify-between gap-4">- <span className="font-pixel text-[9px] text-gray-500 tracking-wide">WEATHER</span>- <span className={`font-pixel text-[10px] ${weather.color}`}>- <span className="opacity-50 mr-1">{weather.icon}</span>{weather.text}+ <div className="flex items-center justify-between gap-6" title={weather.desc}>+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">WEATHER</span>+ <span className={`font-pixel text-[11px] ${weather.color}`}>+ <span className="opacity-60 mr-1">{weather.icon}</span>{weather.text}</span></div>{/* Active agents */}- <div className="flex items-center justify-between gap-4">- <span className="font-pixel text-[9px] text-gray-500 tracking-wide">AGENTS</span>- <span className={`font-pixel text-[10px] ${activeAgentCount > 0 ? 'text-emerald-400' : 'text-gray-600'}`}>+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">AGENTS</span>+ <span className={`font-pixel text-[11px] ${activeAgentCount > 0 ? 'text-emerald-400' : 'text-gray-600'}`}>{activeAgentCount > 0 && <span className="inline-block w-1.5 h-1.5 rounded-full bg-emerald-400 mr-1 animate-pulse" />}{activeAgentCount} ACTIVE</span>@@ -196,9 +196,9 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con{/* Stopped count */}{stoppedApps > 0 && (- <div className="flex items-center justify-between gap-4">- <span className="font-pixel text-[9px] text-gray-500 tracking-wide">STOPPED</span>- <span className="font-pixel text-[10px] text-amber-400" style={{ textShadow: '0 0 4px rgba(245,158,11,0.3)' }}>+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">STOPPED</span>+ <span className="font-pixel text-[11px] text-red-400" style={{ textShadow: '0 0 4px rgba(239,68,68,0.3)' }}>{stoppedApps}</span></div>@@ -206,17 +206,17 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con{/* Archived */}{archivedApps > 0 && (- <div className="flex items-center justify-between gap-4">- <span className="font-pixel text-[9px] text-gray-500 tracking-wide">ARCHIVED</span>- <span className="font-pixel text-[10px] text-gray-600">{archivedApps}</span>+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">ARCHIVED</span>+ <span className="font-pixel text-[11px] text-gray-500">{archivedApps}</span></div>)}{/* Productivity - today's tasks */}{productivityData?.todaySucceeded > 0 && (- <div className="flex items-center justify-between gap-4">- <span className="font-pixel text-[9px] text-gray-500 tracking-wide">TASKS</span>- <span className="font-pixel text-[10px] text-purple-400" style={{ textShadow: '0 0 4px rgba(168,85,247,0.3)' }}>+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">TASKS</span>+ <span className="font-pixel text-[11px] text-purple-400" style={{ textShadow: '0 0 4px rgba(168,85,247,0.3)' }}>{productivityData.todaySucceeded} TODAY</span></div>@@ -224,19 +224,19 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con{/* Streak */}{productivityData?.currentDailyStreak > 0 && (- <div className="flex items-center justify-between gap-4">- <span className="font-pixel text-[9px] text-gray-500 tracking-wide">STREAK</span>- <span className={`font-pixel text-[10px] ${productivityData.currentDailyStreak >= 3 ? 'text-orange-400' : 'text-gray-400'}`}>+ <div className="flex items-center justify-between gap-6">+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide">STREAK</span>+ <span className={`font-pixel text-[11px] ${productivityData.currentDailyStreak >= 3 ? 'text-orange-400' : 'text-gray-400'}`}>{productivityData.currentDailyStreak}d</span></div>)}{/* Divider */}- <div className="border-t border-cyan-500/10 mt-1 pt-1">+ <div className="border-t border-cyan-500/15 mt-1.5 pt-1.5"><div className="flex items-center justify-between">- <span className="font-pixel text-[8px] text-cyan-500/30 tracking-widest">SYS.OK</span>- <span className="font-pixel text-[8px] text-cyan-500/30 tracking-widest">+ <span className="font-pixel text-[9px] text-cyan-500/40 tracking-widest">SYS.OK</span>+ <span className="font-pixel text-[9px] text-cyan-500/40 tracking-widest">{new Date().toLocaleDateString('en-US', { month: 'short', day: 'numeric' }).toUpperCase()}</span></div>@@ -257,22 +257,22 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con{/* Top-right: Connection + CoS status */}<div className="absolute top-3 right-3 pointer-events-auto">- <div className="relative bg-black/80 backdrop-blur-sm border border-cyan-500/30 rounded-lg px-3 py-2 flex items-center gap-3">+ <div className="relative bg-black/85 backdrop-blur-sm border border-cyan-500/40 rounded-lg px-4 py-2.5 flex items-center gap-4"><HudCorner position="tl" /><HudCorner position="tr" /><HudCorner position="bl" /><HudCorner position="br" />- <div className="flex items-center gap-1.5">- <span className={`w-2 h-2 rounded-full ${connected ? 'bg-emerald-400 shadow-[0_0_6px_rgba(34,197,94,0.5)]' : 'bg-red-400 shadow-[0_0_6px_rgba(239,68,68,0.5)]'}`} />- <span className="font-pixel text-[10px] text-gray-400 tracking-wide">+ <div className="flex items-center gap-2">+ <span className={`w-2.5 h-2.5 rounded-full ${connected ? 'bg-emerald-400 shadow-[0_0_8px_rgba(34,197,94,0.6)]' : 'bg-red-400 shadow-[0_0_8px_rgba(239,68,68,0.6)] animate-pulse'}`} />+ <span className={`font-pixel text-[11px] tracking-wide ${connected ? 'text-gray-300' : 'text-red-400'}`}>{connected ? 'LINK' : 'OFFLINE'}</span></div>- <div className="w-px h-4 bg-cyan-500/20" />- <div className="flex items-center gap-1.5">- <span className={`w-2 h-2 rounded-full ${cosStatus?.running ? 'bg-cyan-400 animate-pulse shadow-[0_0_6px_rgba(6,182,212,0.5)]' : 'bg-gray-600'}`} />- <span className="font-pixel text-[10px] text-gray-400 tracking-wide">+ <div className="w-px h-5 bg-cyan-500/25" />+ <div className="flex items-center gap-2">+ <span className={`w-2.5 h-2.5 rounded-full ${cosStatus?.running ? 'bg-cyan-400 animate-pulse shadow-[0_0_8px_rgba(6,182,212,0.6)]' : 'bg-gray-600'}`} />+ <span className={`font-pixel text-[11px] tracking-wide ${cosStatus?.running ? 'text-cyan-400' : 'text-gray-500'}`}>CoS {cosStatus?.running ? 'RUN' : 'IDLE'}</span></div>@@ -285,21 +285,43 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con{/* Bottom: Agent status bar */}<CityAgentBar cosAgents={cosAgents} agentMap={agentMap} />- {/* Bottom-left: Settings gear + corner decoration */}+ {/* Bottom-left: Settings gear + legend + corner decoration */}<div className="absolute bottom-16 left-3">+ {/* Status legend */}+ <div className="pointer-events-none mb-2 bg-black/70 backdrop-blur-sm border border-cyan-500/15 rounded-lg px-2.5 py-2 space-y-1">+ <div className="font-pixel text-[8px] text-cyan-500/50 tracking-wider mb-1">LEGEND</div>+ <div className="flex items-center gap-1.5">+ <span className="w-2 h-2 rounded-sm bg-cyan-500" />+ <span className="font-pixel text-[8px] text-gray-400 tracking-wide">ONLINE</span>+ </div>+ <div className="flex items-center gap-1.5">+ <span className="w-2 h-2 rounded-sm bg-red-500" />+ <span className="font-pixel text-[8px] text-gray-400 tracking-wide">STOPPED</span>+ </div>+ <div className="flex items-center gap-1.5">+ <span className="w-2 h-2 rounded-sm bg-violet-500" />+ <span className="font-pixel text-[8px] text-gray-400 tracking-wide">NOT STARTED</span>+ </div>+ <div className="flex items-center gap-1.5">+ <span className="w-2 h-2 rounded-sm bg-slate-500" />+ <span className="font-pixel text-[8px] text-gray-400 tracking-wide">ARCHIVED</span>+ </div>+ </div>+<buttononClick={() => navigate(location.pathname === '/city/settings' ? '/city' : '/city/settings')}- className="pointer-events-auto mb-2 relative bg-black/80 backdrop-blur-sm border border-cyan-500/30 rounded-lg px-2.5 py-1.5 hover:border-cyan-400/60 transition-all group"+ className="pointer-events-auto mb-2 relative bg-black/85 backdrop-blur-sm border border-cyan-500/30 rounded-lg w-10 h-10 flex items-center justify-center hover:border-cyan-400/60 hover:bg-cyan-500/10 transition-all group"+ title="Settings"><HudCorner position="tl" /><HudCorner position="br" />- <svg className="w-3.5 h-3.5 text-cyan-500/60 group-hover:text-cyan-400 transition-colors" style={{ filter: 'drop-shadow(0 0 4px rgba(6,182,212,0.3))' }} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>+ <svg className="w-4.5 h-4.5 text-cyan-500/70 group-hover:text-cyan-400 transition-colors" style={{ filter: 'drop-shadow(0 0 6px rgba(6,182,212,0.4))' }} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}><path strokeLinecap="round" strokeLinejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" /><path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /></svg></button><div className="pointer-events-none">- <div className="font-pixel text-[8px] text-cyan-500/15 tracking-widest leading-tight">+ <div className="font-pixel text-[8px] text-cyan-500/20 tracking-widest leading-tight">{'>'} SYS.INIT<br/>{'>'} NET.LINK<br/>{'>'} HUD.READYdiff --git a/client/src/components/city/CitySettingsPanel.jsx b/client/src/components/city/CitySettingsPanel.jsxindex dec2d18cad..fb2d6faa2e 100644--- a/client/src/components/city/CitySettingsPanel.jsx+++ b/client/src/components/city/CitySettingsPanel.jsx@@ -17,31 +17,33 @@ function HudCorner({ position = 'tl', color = 'cyan' }) {);}-function SettingToggle({ label, value, onChange }) {+function SettingToggle({ label, value, onChange, description }) {return (- <div className="flex items-center justify-between py-1">- <span className="font-pixel text-[10px] text-gray-400 tracking-wide">{label}</span>+ <div className="flex items-center justify-between py-1.5 group" title={description}>+ <span className="font-pixel text-[10px] text-gray-400 tracking-wide group-hover:text-gray-300 transition-colors">+ {label}+ </span><buttononClick={() => onChange(!value)}- className={`w-8 h-4 rounded-full relative transition-colors ${value ? 'bg-cyan-500/40 border-cyan-500/60' : 'bg-gray-700/40 border-gray-600/40'} border`}+ className={`w-9 h-5 rounded-full relative transition-colors ${value ? 'bg-cyan-500/40 border-cyan-500/60' : 'bg-gray-700/40 border-gray-600/40'} border`}><div- className={`absolute top-0.5 w-2.5 h-2.5 rounded-full transition-all ${value ? 'left-[14px] bg-cyan-400 shadow-[0_0_6px_rgba(6,182,212,0.5)]' : 'left-[2px] bg-gray-500'}`}+ className={`absolute top-0.5 w-3 h-3 rounded-full transition-all ${value ? 'left-[16px] bg-cyan-400 shadow-[0_0_6px_rgba(6,182,212,0.5)]' : 'left-[2px] bg-gray-500'}`}/></button></div>);}-function SettingSlider({ label, value, onChange, min = 0, max = 1, step = 0.05, format }) {+function SettingSlider({ label, value, onChange, min = 0, max = 1, step = 0.05, format, description }) {const displayValue = format? format(value): `${Math.round(value * 100)}%`;return (- <div className="py-1">+ <div className="py-1.5" title={description}><div className="flex items-center justify-between mb-1"><span className="font-pixel text-[10px] text-gray-400 tracking-wide">{label}</span>- <span className="font-pixel text-[9px] text-cyan-400/60">{displayValue}</span>+ <span className="font-pixel text-[10px] text-cyan-400/70">{displayValue}</span></div><inputtype="range"@@ -50,15 +52,26 @@ function SettingSlider({ label, value, onChange, min = 0, max = 1, step = 0.05,step={step}value={value}onChange={(e) => onChange(parseFloat(e.target.value))}- className="w-full h-1 bg-gray-700 rounded-full appearance-none cursor-pointer accent-cyan-500"+ className="w-full h-1.5 bg-gray-700 rounded-full appearance-none cursor-pointer accent-cyan-500"style={{- background: `linear-gradient(to right, #06b6d4 0%, #06b6d4 ${value / max * 100}%, #374151 ${value / max * 100}%, #374151 100%)`,+ background: `linear-gradient(to right, #06b6d4 0%, #06b6d4 ${(value - min) / (max - min) * 100}%, #374151 ${(value - min) / (max - min) * 100}%, #374151 100%)`,}}/></div>);}+function SectionHeader({ title, subtitle }) {+ return (+ <div className="mb-2">+ <div className="font-pixel text-[10px] text-cyan-500/70 tracking-wider">{title}</div>+ {subtitle && (+ <div className="font-pixel text-[8px] text-gray-600 tracking-wide mt-0.5">{subtitle}</div>+ )}+ </div>+ );+}+export default function CitySettingsPanel() {const navigate = useNavigate();const { settings, updateSetting, resetSettings } = useCitySettingsContext();@@ -67,38 +80,41 @@ export default function CitySettingsPanel() {return (<div className="absolute bottom-4 right-4 z-50 pointer-events-auto animate-in slide-in-from-bottom-4 duration-300">- <div className="relative bg-black/90 backdrop-blur-md border border-cyan-500/30 rounded-lg w-72 max-h-[80vh] overflow-y-auto">+ <div+ className="relative bg-black/92 backdrop-blur-md border border-cyan-500/35 rounded-lg w-76 max-h-[80vh] overflow-y-auto"+ style={{ scrollbarWidth: 'thin', scrollbarColor: 'rgba(6,182,212,0.2) transparent', width: '19rem' }}+ ><HudCorner position="tl" /><HudCorner position="tr" /><HudCorner position="bl" /><HudCorner position="br" />{/* Header */}- <div className="flex items-center justify-between px-4 py-2.5 border-b border-cyan-500/20">- <span className="font-pixel text-[11px] text-cyan-400 tracking-widest" style={{ textShadow: '0 0 8px rgba(6,182,212,0.4)' }}>+ <div className="sticky top-0 z-10 bg-black/95 flex items-center justify-between px-4 py-3 border-b border-cyan-500/25">+ <span className="font-pixel text-[12px] text-cyan-400 tracking-widest" style={{ textShadow: '0 0 8px rgba(6,182,212,0.4)' }}>SETTINGS</span><buttononClick={() => navigate('/city')}- className="font-pixel text-[10px] text-gray-500 hover:text-cyan-400 transition-colors tracking-wide"+ className="font-pixel text-[11px] text-gray-500 hover:text-cyan-400 transition-colors tracking-wide w-8 h-8 flex items-center justify-center rounded hover:bg-cyan-500/10">[X]</button></div>- <div className="px-4 py-3 space-y-4">+ <div className="px-4 py-3 space-y-5">{/* Quality Preset */}<div>- <div className="font-pixel text-[9px] text-cyan-500/60 tracking-wider mb-2">QUALITY PRESET</div>- <div className="grid grid-cols-4 gap-1">+ <SectionHeader title="QUALITY PRESET" subtitle="Controls overall visual fidelity" />+ <div className="grid grid-cols-4 gap-1.5">{Object.keys(QUALITY_PRESETS).map(preset => (<buttonkey={preset}onClick={() => updateSetting('qualityPreset', preset)}- className={`font-pixel text-[9px] py-1.5 rounded border transition-all tracking-wide ${+ className={`font-pixel text-[9px] py-2 rounded border transition-all tracking-wide ${settings.qualityPreset === preset? 'bg-cyan-500/20 border-cyan-500/50 text-cyan-400 shadow-[0_0_8px_rgba(6,182,212,0.2)]'- : 'bg-gray-800/40 border-gray-700/40 text-gray-500 hover:border-gray-600'+ : 'bg-gray-800/40 border-gray-700/40 text-gray-500 hover:border-gray-600 hover:text-gray-400'}`}>{preset.toUpperCase()}@@ -107,79 +123,94 @@ export default function CitySettingsPanel() {</div></div>+ <div className="border-t border-cyan-500/10" />+{/* Music */}<div>- <div className="font-pixel text-[9px] text-cyan-500/60 tracking-wider mb-1">MUSIC</div>+ <SectionHeader title="MUSIC" subtitle="Procedural synthwave background" /><SettingTogglelabel="SYNTHWAVE"value={settings.musicEnabled}onChange={(v) => updateSetting('musicEnabled', v)}+ description="Enable ambient synthwave music"/>{settings.musicEnabled && (<SettingSliderlabel="VOLUME"value={settings.musicVolume}onChange={(v) => updateSetting('musicVolume', v)}+ description="Music playback volume"/>)}</div>{/* Sound Effects */}<div>- <div className="font-pixel text-[9px] text-cyan-500/60 tracking-wider mb-1">SOUND FX</div>+ <SectionHeader title="SOUND FX" subtitle="UI and environment sounds" /><SettingTogglelabel="ENABLED"value={settings.sfxEnabled}onChange={(v) => updateSetting('sfxEnabled', v)}+ description="Enable sound effects for interactions"/>{settings.sfxEnabled && (<SettingSliderlabel="VOLUME"value={settings.sfxVolume}onChange={(v) => updateSetting('sfxVolume', v)}+ description="Sound effects volume"/>)}</div>+ <div className="border-t border-cyan-500/10" />+{/* Visual Effects */}<div>- <div className="font-pixel text-[9px] text-cyan-500/60 tracking-wider mb-1">VISUAL FX</div>+ <SectionHeader title="VISUAL FX" subtitle="Post-processing and atmosphere" /><SettingTogglelabel="BLOOM"value={settings.bloomEnabled}onChange={(v) => updateSetting('bloomEnabled', v)}+ description="Glowing light bloom around bright surfaces"/>{settings.bloomEnabled && (<SettingSliderlabel="STRENGTH"value={settings.bloomStrength}onChange={(v) => updateSetting('bloomStrength', v)}+ description="Intensity of the bloom glow effect"/>)}<SettingTogglelabel="REFLECTIONS"value={settings.reflectionsEnabled}onChange={(v) => updateSetting('reflectionsEnabled', v)}+ description="Wet street reflections and puddles"/><SettingTogglelabel="CHROMATIC ABERRATION"value={settings.chromaticAberration}onChange={(v) => updateSetting('chromaticAberration', v)}+ description="Color fringing at screen edges"/><SettingTogglelabel="FILM GRAIN"value={settings.filmGrain}onChange={(v) => updateSetting('filmGrain', v)}+ description="Subtle animated noise overlay"/><SettingTogglelabel="COLOR GRADING"value={settings.colorGrading}onChange={(v) => updateSetting('colorGrading', v)}+ description="Cinematic color correction"/><SettingTogglelabel="SCANLINES"value={settings.scanlineOverlay}onChange={(v) => updateSetting('scanlineOverlay', v)}+ description="CRT monitor scanline overlay"/><SettingSliderlabel="PARTICLE DENSITY"@@ -188,12 +219,15 @@ export default function CitySettingsPanel() {min={0.25}max={2}step={0.25}+ description="Amount of floating particles in the scene"/></div>+ <div className="border-t border-cyan-500/10" />+{/* Scene Lighting */}<div>- <div className="font-pixel text-[9px] text-cyan-500/60 tracking-wider mb-1">SCENE LIGHTING</div>+ <SectionHeader title="SCENE LIGHTING" subtitle="Brightness and time of day" /><SettingSliderlabel="AMBIENT BRIGHTNESS"value={settings.ambientBrightness}@@ -202,6 +236,7 @@ export default function CitySettingsPanel() {max={2.5}step={0.1}format={(v) => `${v.toFixed(1)}x`}+ description="Overall scene ambient light level"/><SettingSliderlabel="NEON BRIGHTNESS"@@ -211,18 +246,19 @@ export default function CitySettingsPanel() {max={2.5}step={0.1}format={(v) => `${v.toFixed(1)}x`}+ description="Brightness of neon lights and building glow"/>- <div className="py-1">- <div className="font-pixel text-[10px] text-gray-400 tracking-wide mb-1.5">TIME OF DAY</div>- <div className="grid grid-cols-4 gap-1">+ <div className="py-1.5">+ <div className="font-pixel text-[10px] text-gray-400 tracking-wide mb-2">TIME OF DAY</div>+ <div className="grid grid-cols-4 gap-1.5">{['sunrise', 'noon', 'sunset', 'midnight'].map(tod => (<buttonkey={tod}onClick={() => updateSetting('timeOfDay', tod)}- className={`font-pixel text-[8px] py-1.5 rounded border transition-all tracking-wide ${+ className={`font-pixel text-[9px] py-2 rounded border transition-all tracking-wide ${settings.timeOfDay === tod? 'bg-cyan-500/20 border-cyan-500/50 text-cyan-400 shadow-[0_0_8px_rgba(6,182,212,0.2)]'- : 'bg-gray-800/40 border-gray-700/40 text-gray-500 hover:border-gray-600'+ : 'bg-gray-800/40 border-gray-700/40 text-gray-500 hover:border-gray-600 hover:text-gray-400'}`}>{tod.toUpperCase()}@@ -232,10 +268,12 @@ export default function CitySettingsPanel() {</div></div>+ <div className="border-t border-cyan-500/10" />+{/* Reset */}<buttononClick={resetSettings}- className="w-full font-pixel text-[9px] py-1.5 rounded border border-red-500/30 text-red-400/60 hover:bg-red-500/10 hover:text-red-400 transition-all tracking-wider"+ className="w-full font-pixel text-[10px] py-2 rounded border border-red-500/30 text-red-400/60 hover:bg-red-500/10 hover:text-red-400 transition-all tracking-wider">RESET DEFAULTS</button>diff --git a/client/src/components/city/HolographicPanel.jsx b/client/src/components/city/HolographicPanel.jsxindex 86a78bbca4..78dd76ba50 100644--- a/client/src/components/city/HolographicPanel.jsx+++ b/client/src/components/city/HolographicPanel.jsx@@ -1,17 +1,37 @@import { Html } from '@react-three/drei';+const STATUS_ICONS = {+ online: '\u25CF',+ stopped: '\u25A0',+ not_started: '\u25CB',+ not_found: '\u25CB',+};+export default function HolographicPanel({ app, agentCount, position }) {const statusColors = {online: 'border-cyan-500/50 text-cyan-400',- stopped: 'border-amber-500/50 text-amber-400',- not_started: 'border-indigo-500/50 text-indigo-400',- not_found: 'border-indigo-500/50 text-indigo-400',+ stopped: 'border-red-500/50 text-red-400',+ not_started: 'border-violet-500/50 text-violet-400',+ not_found: 'border-violet-500/50 text-violet-400',+ };++ const statusDotColors = {+ online: 'text-cyan-400',+ stopped: 'text-red-400',+ not_started: 'text-violet-400',+ not_found: 'text-violet-400',};const colorClass = app.archived? 'border-slate-500/50 text-slate-400': statusColors[app.overallStatus] || statusColors.not_started;+ const dotColor = app.archived+ ? 'text-slate-500'+ : statusDotColors[app.overallStatus] || 'text-violet-400';++ const processCount = app.processes?.length || 0;+return (<Htmlposition={position}@@ -20,12 +40,21 @@ export default function HolographicPanel({ app, agentCount, position }) {occludestyle={{ pointerEvents: 'none' }}>- <div className={`bg-black/85 border ${colorClass} rounded px-2.5 py-1.5 whitespace-nowrap backdrop-blur-sm`}>- <div className="font-pixel text-[11px] tracking-wider truncate max-w-[140px]">{app.name}</div>- <div className="flex items-center gap-1.5 text-[9px] font-pixel tracking-wide opacity-75 mt-0.5">- <span>{app.archived ? 'ARCHIVED' : (app.overallStatus || '').toUpperCase().replace('_', ' ')}</span>- {agentCount > 0 && <span>| {agentCount} AGENT{agentCount > 1 ? 'S' : ''}</span>}+ <div className={`bg-black/90 border ${colorClass} rounded-md px-3 py-2 whitespace-nowrap backdrop-blur-sm`} style={{ boxShadow: '0 0 12px rgba(0,0,0,0.5)' }}>+ <div className="font-pixel text-[12px] tracking-wider truncate max-w-[160px] font-bold">{app.name}</div>+ <div className="flex items-center gap-2 text-[9px] font-pixel tracking-wide mt-1">+ <span className={dotColor}>+ {STATUS_ICONS[app.overallStatus] || '\u25CB'}+ </span>+ <span className="opacity-80">{app.archived ? 'ARCHIVED' : (app.overallStatus || '').toUpperCase().replace('_', ' ')}</span>+ {processCount > 0 && (+ <span className="opacity-50">| {processCount} PROC</span>+ )}+ {agentCount > 0 && (+ <span className="opacity-50">| {agentCount} AGENT{agentCount > 1 ? 'S' : ''}</span>+ )}</div>+ <div className="font-pixel text-[8px] text-cyan-500/30 tracking-widest mt-1">CLICK TO VIEW</div></div></Html>);diff --git a/client/src/components/city/cityConstants.js b/client/src/components/city/cityConstants.jsindex 6bbd2ba868..c0a4bab296 100644--- a/client/src/components/city/cityConstants.js+++ b/client/src/components/city/cityConstants.js@@ -6,12 +6,12 @@ export const CITY_COLORS = {ambient: '#0d0d2b',building: {online: '#06b6d4',- stopped: '#f59e0b',- not_started: '#6366f1',- not_found: '#6366f1',- archived: '#475569',+ stopped: '#ef4444',+ not_started: '#8b5cf6',+ not_found: '#8b5cf6',+ archived: '#64748b',},- buildingBody: '#10102a',+ buildingBody: '#0c0c24',particles: '#06b6d4',stars: '#ffffff',// Neon accent palette for building window/decoration varietydiff --git a/client/src/pages/CyberCity.jsx b/client/src/pages/CyberCity.jsxindex 1683942960..5c3afdd406 100644--- a/client/src/pages/CyberCity.jsx+++ b/client/src/pages/CyberCity.jsx@@ -31,14 +31,24 @@ function CyberCityInner() {}, []);const handleBuildingClick = useCallback((app) => {- navigate('/apps');+ if (app?.id) {+ navigate(`/apps/${app.id}`);+ } else {+ navigate('/apps');+ }}, [navigate]);if (loading) {return (- <div className="flex items-center justify-center h-full" style={{ background: '#030308' }}>- <div className="font-pixel text-cyan-400 text-sm tracking-widest animate-pulse">- INITIALIZING CYBERCITY...+ <div className="flex flex-col items-center justify-center h-full gap-4" style={{ background: '#030308' }}>+ <div className="font-pixel text-cyan-400 text-lg tracking-widest animate-pulse" style={{ textShadow: '0 0 12px rgba(6,182,212,0.5)' }}>+ INITIALIZING CYBERCITY+ </div>+ <div className="w-48 h-1 bg-gray-800 rounded-full overflow-hidden">+ <div className="h-full bg-cyan-500 rounded-full animate-pulse" style={{ width: '60%', boxShadow: '0 0 8px rgba(6,182,212,0.5)' }} />+ </div>+ <div className="font-pixel text-[10px] text-cyan-500/40 tracking-wider">+ LOADING SYSTEMS...</div></div>);