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

address review (claude): fade neon on process buildings + particles by day, rebalance dreamworld noon

[._.]/ Adam Eivyae641794729f
diff --git a/client/src/components/city/Borough.jsx b/client/src/components/city/Borough.jsx
index 1c21198ecb..711505ffc0 100644
--- a/client/src/components/city/Borough.jsx
+++ b/client/src/components/city/Borough.jsx
@@ -61,6 +61,7 @@ export default function Borough({ app, position, agentMap, onBuildingClick, play
position={[position.x + x, 0, position.z + z, rotation]}
seed={seed}
dimmed={dimmed}
+ dayMix={dayMix}
/>
))}
diff --git a/client/src/components/city/CityParticles.jsx b/client/src/components/city/CityParticles.jsx
index 5b3987b74b..251fddb803 100644
--- a/client/src/components/city/CityParticles.jsx
+++ b/client/src/components/city/CityParticles.jsx
@@ -1,8 +1,11 @@
import { Sparkles } from '@react-three/drei';
+import { cityDayMix } from './cityConstants';
export default function CityParticles({ settings }) {
const density = settings?.particleDensity ?? 1.0;
const scale = (base) => Math.max(1, Math.round(base * density));
+ // Neon atmosphere dust is a night look — fade it out in daylight.
+ const dayFade = 1 - cityDayMix(settings);
return (
<>
@@ -12,7 +15,7 @@ export default function CityParticles({ settings }) {
scale={[50, 20, 50]}
size={1.8}
speed={0.3}
- opacity={0.3}
+ opacity={0.3 * dayFade}
color="#06b6d4"
/>
{/* Pink/magenta secondary sparkles */}
@@ -21,7 +24,7 @@ export default function CityParticles({ settings }) {
scale={[40, 15, 40]}
size={1.2}
speed={0.25}
- opacity={0.2}
+ opacity={0.2 * dayFade}
color="#ec4899"
/>
{/* Purple deep sparkles */}
@@ -30,7 +33,7 @@ export default function CityParticles({ settings }) {
scale={[45, 15, 45]}
size={1}
speed={0.2}
- opacity={0.15}
+ opacity={0.15 * dayFade}
color="#8b5cf6"
/>
{/* Orange warm dust near ground */}
@@ -39,7 +42,7 @@ export default function CityParticles({ settings }) {
scale={[35, 5, 35]}
size={0.8}
speed={0.15}
- opacity={0.12}
+ opacity={0.12 * dayFade}
color="#f97316"
position={[0, 2, 0]}
/>
@@ -49,7 +52,7 @@ export default function CityParticles({ settings }) {
scale={[50, 8, 50]}
size={0.6}
speed={0.1}
- opacity={0.1}
+ opacity={0.1 * dayFade}
color="#3b82f6"
position={[0, 15, 0]}
/>
diff --git a/client/src/components/city/ProcessBuilding.jsx b/client/src/components/city/ProcessBuilding.jsx
index be35b29d34..152e4db5cb 100644
--- a/client/src/components/city/ProcessBuilding.jsx
+++ b/client/src/components/city/ProcessBuilding.jsx
@@ -2,7 +2,7 @@ import { useRef, useMemo } from 'react';
import { useFrame } from '@react-three/fiber';
import { Text } from '@react-three/drei';
import * as THREE from 'three';
-import { CITY_COLORS, PROCESS_BUILDING_PARAMS, PIXEL_FONT_URL } from './cityConstants';
+import { CITY_COLORS, PROCESS_BUILDING_PARAMS, PIXEL_FONT_URL, mixHex } from './cityConstants';
const STATUS_COLORS = {
online: '#06b6d4',
@@ -13,7 +13,7 @@ const STATUS_COLORS = {
error: '#ef4444',
};
-export default function ProcessBuilding({ process, pm2Status, position, seed, dimmed = false }) {
+export default function ProcessBuilding({ process, pm2Status, position, seed, dimmed = false, dayMix = 0 }) {
const blinkRef = useRef();
const glowRef = useRef();
@@ -21,6 +21,9 @@ export default function ProcessBuilding({ process, pm2Status, position, seed, di
const color = STATUS_COLORS[status] || STATUS_COLORS.not_found;
const { width, depth } = PROCESS_BUILDING_PARAMS;
const dimMul = dimmed ? 0.25 : 1;
+ // Match the main Building's daytime treatment — sheds neon, lightens to a lit solid.
+ const bodyColor = mixHex(CITY_COLORS.buildingBody, mixHex('#9aa0ac', color, 0.12), dayMix);
+ const neonFade = 1 - dayMix;
// Height based on status + seed variation
const height = useMemo(() => {
@@ -43,13 +46,13 @@ export default function ProcessBuilding({ process, pm2Status, position, seed, di
useFrame(({ clock }) => {
const t = clock.getElapsedTime();
if (blinkRef.current) {
- blinkRef.current.material.opacity = ((Math.sin(t * 3 + seed) > 0.3) ? 0.8 : 0.1) * dimMul;
+ blinkRef.current.material.opacity = ((Math.sin(t * 3 + seed) > 0.3) ? 0.8 : 0.1) * dimMul * neonFade;
}
if (glowRef.current) {
const base = status === 'online'
? 0.15 + Math.sin(t * 1.5 + seed) * 0.08
: 0.08;
- glowRef.current.material.opacity = base * dimMul;
+ glowRef.current.material.opacity = base * dimMul * neonFade;
}
});
@@ -59,23 +62,24 @@ export default function ProcessBuilding({ process, pm2Status, position, seed, di
<mesh position={[0, height / 2, 0]}>
<boxGeometry args={[width, height, depth]} />
<meshStandardMaterial
- color={CITY_COLORS.buildingBody}
+ color={bodyColor}
emissive={color}
- emissiveIntensity={(status === 'online' ? 0.2 : 0.08) * dimMul}
+ emissiveIntensity={(status === 'online' ? 0.2 : 0.08) * dimMul * (1 - dayMix * 0.9)}
+ roughness={dayMix > 0.5 ? 0.9 : 1}
transparent
opacity={0.9 * dimMul}
/>
</mesh>
- {/* Neon wireframe edges */}
+ {/* Neon wireframe edges (soften to a plain outline by day) */}
<lineSegments position={[0, height / 2, 0]} geometry={edgesGeom}>
- <lineBasicMaterial color={color} transparent opacity={0.8 * dimMul} />
+ <lineBasicMaterial color={dayMix > 0.5 ? mixHex('#4a4f57', color, 0.15) : color} transparent opacity={(0.8 - dayMix * 0.55) * dimMul} />
</lineSegments>
{/* Neon top cap */}
<mesh position={[0, height + 0.01, 0]} rotation={[-Math.PI / 2, 0, 0]}>
<planeGeometry args={[width + 0.05, depth + 0.05]} />
- <meshBasicMaterial color={color} transparent opacity={0.4 * dimMul} />
+ <meshBasicMaterial color={color} transparent opacity={0.4 * dimMul * (1 - dayMix * 0.6)} />
</mesh>
{/* Process name on front face */}
diff --git a/client/src/components/city/cityConstants.js b/client/src/components/city/cityConstants.js
index 4ac5a7b11c..dc0e303ece 100644
--- a/client/src/components/city/cityConstants.js
+++ b/client/src/components/city/cityConstants.js
@@ -149,24 +149,26 @@ export const CITY_COLORS = {
},
noon: {
hour: 12,
- zenith: '#4466cc',
- midSky: '#6688dd',
- horizonHigh: '#88aaee',
- horizonLow: '#aaccff',
- sunCore: '#ffffee',
- sunGlow: '#ffffcc',
- sunLight: '#ffffff',
- sunIntensity: 5.0,
+ zenith: '#4a93e0',
+ midSky: '#7fb6ec',
+ horizonHigh: '#bfe0f7',
+ horizonLow: '#e6f3fc',
+ sunCore: '#fffef2',
+ sunGlow: '#fff7d6',
+ sunLight: '#fff4e0',
+ // Rebalanced to match the default noon (lower intensities / mid ground) so
+ // a dreamworld sky in Day mode doesn't blow the scene out to white.
+ sunIntensity: 1.9,
sunScale: 0.8,
isMoon: false,
daylightFactor: 1.0,
- groundColor: '#556680',
- groundRoughness: 0.4,
- hemiSkyColor: '#99bbff',
- hemiGroundColor: '#445566',
- hemiIntensity: 1.6,
- ambientColor: '#7799cc',
- ambientIntensity: 0.5,
+ groundColor: '#8d9198',
+ groundRoughness: 0.9,
+ hemiSkyColor: '#acc6e8',
+ hemiGroundColor: '#b4b0a0',
+ hemiIntensity: 0.95,
+ ambientColor: '#c0cce0',
+ ambientIntensity: 0.35,
},
sunset: {
hour: 18,
@@ -407,7 +409,9 @@ export const deriveCityPalette = (theme) => {
// Recolor the brand surfaces in-place from a derived palette. The city page calls
// this when the theme changes and remounts the scene subtree (keyed on themeId)
-// so every component re-reads the singleton. Recomputes from ORIGINAL_BRAND.
+// so every component re-reads the singleton. Recomputes every brand surface from
+// the derived palette's accent (not from the previously-applied colors), so
+// repeated theme switches don't compound.
export const applyCityBrandColors = (palette) => {
const accent = palette?.accent || ORIGINAL_GROUND;
CITY_COLORS.ground = accent;