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
fix(city): address second round of PR review feedback
Ilya Eivy583c9a91bbe4
diff --git a/client/src/components/city/CityEffects.jsx b/client/src/components/city/CityEffects.jsxindex 34e51a047a..9b960c556c 100644--- a/client/src/components/city/CityEffects.jsx+++ b/client/src/components/city/CityEffects.jsx@@ -198,6 +198,7 @@ export default function CityEffects({ settings }) {return () => {composer.dispose();};+ // eslint-disable-next-line react-hooks/exhaustive-deps -- sceneExposure intentionally omitted; updated via exposurePassRef in useFrame to avoid recreating the composer on slider drag}, [gl, scene, camera, size.width, size.height, bloomEnabled, bloomStrength, chromaticAberration, filmGrain, colorGrading]);useFrame(({ clock }) => {diff --git a/client/src/components/city/CityLights.jsx b/client/src/components/city/CityLights.jsxindex 3fbb29d586..284a756505 100644--- a/client/src/components/city/CityLights.jsx+++ b/client/src/components/city/CityLights.jsx@@ -1,7 +1,7 @@import { useRef } from 'react';import { useFrame } from '@react-three/fiber';import * as THREE from 'three';-import { CITY_COLORS, getTimeOfDayPreset } from './cityConstants';+import { getTimeOfDayPreset } from './cityConstants';// Animated accent light that slowly shifts color, with reactive brightnessfunction AnimatedLight({ position, baseColor, baseIntensity, distance, shiftRange = 0.1, speed = 0.5, brightnessRef, neonScaleRef }) {diff --git a/client/src/components/city/CitySky.jsx b/client/src/components/city/CitySky.jsxindex 56f3931a8c..58072e4cdf 100644--- a/client/src/components/city/CitySky.jsx+++ b/client/src/components/city/CitySky.jsx@@ -1,7 +1,7 @@import { useRef, useMemo } from 'react';import { useFrame } from '@react-three/fiber';import * as THREE from 'three';-import { CITY_COLORS, getTimeOfDayPreset } from './cityConstants';+import { getTimeOfDayPreset } from './cityConstants';const SUN_RADIUS = 100;diff --git a/client/src/components/city/cityConstants.js b/client/src/components/city/cityConstants.jsindex 0715dfab58..b771967e2b 100644--- a/client/src/components/city/cityConstants.js+++ b/client/src/components/city/cityConstants.js@@ -265,9 +265,22 @@ export const getBuildingHeight = (app) => {// Resolve the time-of-day preset for a given sky theme// Returns theme-specific overrides if available, otherwise default timeOfDay presetexport const getTimeOfDayPreset = (timeOfDay, skyTheme) => {- const themeOverrides = CITY_COLORS.skyThemes[skyTheme];- if (themeOverrides && themeOverrides[timeOfDay]) return themeOverrides[timeOfDay];- return CITY_COLORS.timeOfDay[timeOfDay] ?? CITY_COLORS.timeOfDay.sunset;+ const hasOwn = Object.prototype.hasOwnProperty;+ const skyThemes = CITY_COLORS.skyThemes;+ const timeOfDayPresets = CITY_COLORS.timeOfDay;++ if (skyThemes && hasOwn.call(skyThemes, skyTheme)) {+ const themeOverrides = skyThemes[skyTheme];+ if (themeOverrides && hasOwn.call(themeOverrides, timeOfDay)) {+ return themeOverrides[timeOfDay];+ }+ }++ if (timeOfDayPresets && hasOwn.call(timeOfDayPresets, timeOfDay)) {+ return timeOfDayPresets[timeOfDay];+ }++ return timeOfDayPresets.sunset;};// Get a deterministic neon accent color per app (for windows/decorations)