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

Polish OpenWorld presentation and interactions (#4656)

[._.]/ Adam Eivybdbcbcee3a94
diff --git a/client/src/components/openworld/OpenWorldAdaptiveQuality.jsx b/client/src/components/openworld/OpenWorldAdaptiveQuality.jsx
index 536d540b90..fb5f93d77f 100644
--- a/client/src/components/openworld/OpenWorldAdaptiveQuality.jsx
+++ b/client/src/components/openworld/OpenWorldAdaptiveQuality.jsx
@@ -10,7 +10,7 @@ import {
// In-Canvas driver for Auto quality mode (issue #2592). It samples per-frame delta
// times via useFrame, feeds them to the pure render-budget state machine, and lifts
-// tier changes + (throttled) diagnostics back up to OpenWorld through callbacks.
+// tier changes back up to OpenWorld through a callback.
// It renders nothing. All impurity (timers, refs, frame loop) lives here so the
// state machine stays pure and unit-tested.
//
@@ -18,16 +18,12 @@ import {
// - `startTier`: the tier to (re)start the budget at when Auto engages.
// - `resumeToken`: bumped by OpenWorldScene when the frameloop resumes after the tab was
// hidden — re-arms the warm-up so post-resume jank doesn't drive a bogus decision.
-// - `diagnosticsEnabled`: only push diagnostics upward while the settings panel is
-// open, so the 0.5Hz readout doesn't re-render the scene when nobody's watching.
export default function OpenWorldAdaptiveQuality({
enabled,
startTier = 'high',
resumeToken = 0,
resetToken = 0,
- diagnosticsEnabled = false,
onTierChange,
- onDiagnostics,
}) {
const nowMs = () => (typeof performance !== 'undefined' ? performance.now() : 0);
const stateRef = useRef(null);
@@ -65,11 +61,6 @@ export default function OpenWorldAdaptiveQuality({
stateRef.current = recordFrame(stateRef.current, { now, dt: delta * 1000 });
const nextTier = getEffectiveTier(stateRef.current);
if (nextTier !== prevTier) onTierChange?.(nextTier);
- // Diagnostics refresh only when a window closes (~0.5Hz) and only if someone's
- // watching — keeps the hot loop from re-rendering the page.
- if (diagnosticsEnabled && stateRef.current.windowClosed) {
- onDiagnostics?.(stateRef.current.diagnostics);
- }
});
return null;
diff --git a/client/src/components/openworld/OpenWorldHud.jsx b/client/src/components/openworld/OpenWorldHud.jsx
index 7c0feba5c6..f2d56b1a0d 100644
--- a/client/src/components/openworld/OpenWorldHud.jsx
+++ b/client/src/components/openworld/OpenWorldHud.jsx
@@ -8,6 +8,7 @@ import OpenWorldFilterBar from './OpenWorldFilterBar';
import OpenWorldXpBadge from './OpenWorldXpBadge';
import OpenWorldMiniMap from './OpenWorldMiniMap';
import OpenWorldHudCompact from './OpenWorldHudCompact';
+import OpenWorldInteractionPrompt from './OpenWorldInteractionPrompt';
import { HealthBar, getHealthSentinel } from './openWorldHudBits';
import useOpenWorldViewport from '../../hooks/useOpenWorldViewport';
import { formatClockTime } from '../../utils/formatters';
@@ -42,7 +43,7 @@ function ControlsHint({ visible, isDesktop }) {
))}
</div>
<div className="font-pixel text-[8px] tracking-wide text-[rgb(var(--port-text-muted))]">
- WASD DRIVE <span className="mx-1 opacity-50">·</span> SHIFT BOOST <span className="mx-1 opacity-50">·</span> SPACE JUMP <span className="mx-1 opacity-50">·</span> M MAP
+ WASD MOVE <span className="mx-1 opacity-50">·</span> SHIFT BOOST <span className="mx-1 opacity-50">·</span> SPACE JUMP <span className="mx-1 opacity-50">·</span> M MAP
</div>
</div>
</div>
@@ -74,7 +75,7 @@ function HudAction({ icon: Icon, label, hint, active, primary = false, onClick }
);
}
-export default function OpenWorldHud({ cosStatus, cosAgents, agentMap, eventLogs, connected, apps, reviewCounts, instances, productivityData, systemHealth, notificationCounts, character, filter, onFilterChange, onJumpToFirst, matchCount, onToggleExploration, explorationMode, onSelectApp, onEnterPhotoMode, onEnterPlayback, focusedAppId, focusedApp, focusNotFound, focusAgents, onCloseFocus, onFocusInWorld, onOpenFastTravel, onOpenDestination, onAttentionItem, activeRegion }) {
+export default function OpenWorldHud({ cosStatus, cosAgents, agentMap, eventLogs, connected, apps, reviewCounts, instances, productivityData, systemHealth, notificationCounts, character, filter, onFilterChange, onJumpToFirst, matchCount, onToggleExploration, explorationMode, onSelectApp, onEnterPhotoMode, onEnterPlayback, focusedAppId, focusedApp, focusNotFound, focusAgents, onCloseFocus, onFocusInWorld, onOpenFastTravel, onOpenDestination, onAttentionItem, activeRegion, proximityTarget }) {
const isFocused = Boolean(focusedApp || focusNotFound);
const navigate = useNavigate();
const location = useLocation();
@@ -272,10 +273,12 @@ export default function OpenWorldHud({ cosStatus, cosAgents, agentMap, eventLogs
onOpenFastTravel={onOpenFastTravel}
onOpenDestination={onOpenDestination}
onAttentionItem={onAttentionItem}
+ proximityTarget={proximityTarget}
/>
)}
{explorationMode && <Crosshair />}
+ {explorationMode && isDesktop && <OpenWorldInteractionPrompt target={proximityTarget} />}
<ControlsHint visible={explorationMode} isDesktop={isDesktop} />
</div>
);
diff --git a/client/src/components/openworld/OpenWorldHudCompact.jsx b/client/src/components/openworld/OpenWorldHudCompact.jsx
index 3c4ebf76cf..58f4c16234 100644
--- a/client/src/components/openworld/OpenWorldHudCompact.jsx
+++ b/client/src/components/openworld/OpenWorldHudCompact.jsx
@@ -7,6 +7,7 @@ import OpenWorldVitalsList from './OpenWorldVitalsList';
import OpenWorldMiniMap from './OpenWorldMiniMap';
import OpenWorldFilterBar from './OpenWorldFilterBar';
import OpenWorldFocusPanel from './OpenWorldFocusPanel';
+import OpenWorldInteractionPrompt from './OpenWorldInteractionPrompt';
import { CITY_PANE_IDS, CITY_INTEL_PANE_IDS, CITY_PANE_LABELS } from './openWorldPanes';
import { birthDateCta } from '../../utils/characterXp';
import { formatClockTime } from '../../utils/formatters';
@@ -89,6 +90,7 @@ export default function OpenWorldHudCompact({
focusAgents,
onCloseFocus,
onFocusInWorld,
+ proximityTarget,
}) {
const navigate = useNavigate();
const location = useLocation();
@@ -146,6 +148,7 @@ export default function OpenWorldHudCompact({
return (
<>
+ {explorationMode && <OpenWorldInteractionPrompt target={proximityTarget} compact />}
{/* Top-left: compact clock + health → opens vitals */}
<div className="absolute top-2 left-2 pointer-events-auto">
<button
diff --git a/client/src/components/openworld/OpenWorldHudCompact.test.jsx b/client/src/components/openworld/OpenWorldHudCompact.test.jsx
index edaced39f7..051c4304af 100644
--- a/client/src/components/openworld/OpenWorldHudCompact.test.jsx
+++ b/client/src/components/openworld/OpenWorldHudCompact.test.jsx
@@ -88,6 +88,13 @@ describe('OpenWorldHudCompact', () => {
expect(onOpenFastTravel).toHaveBeenCalledTimes(1);
});
+ it('explains the nearby warp-pad action', () => {
+ renderCompact('', { explorationMode: true, proximityTarget: { type: 'warpPad', id: 'memory', label: 'Memory Quarter' } });
+ expect(screen.getByTestId('openworld-interaction-prompt')).toHaveTextContent('WARP GATE');
+ expect(screen.getByTestId('openworld-interaction-prompt')).toHaveTextContent('Memory Quarter');
+ expect(screen.getByTestId('openworld-interaction-prompt')).toHaveTextContent('ACTION');
+ });
+
it('restores the open pane from the URL on load', () => {
renderCompact('?openWorldPane=vitals');
expect(screen.getByText('SYSTEM VITALS')).toBeInTheDocument();
diff --git a/client/src/components/openworld/OpenWorldInteractionPrompt.jsx b/client/src/components/openworld/OpenWorldInteractionPrompt.jsx
new file mode 100644
index 0000000000..fdff22909d
--- /dev/null
+++ b/client/src/components/openworld/OpenWorldInteractionPrompt.jsx
@@ -0,0 +1,31 @@
+function targetCopy(target) {
+ if (!target) return null;
+ const isWarpPad = target.type === 'warpPad';
+ const label = target.label || (isWarpPad ? 'REGION' : 'BUILDING');
+ return {
+ eyebrow: isWarpPad ? 'WARP GATE' : 'NEARBY BUILDING',
+ action: isWarpPad ? 'WARP TO' : 'OPEN',
+ label,
+ };
+}
+
+export default function OpenWorldInteractionPrompt({ target, compact = false }) {
+ const copy = targetCopy(target);
+ if (!copy) return null;
+
+ return (
+ <div
+ className={`openworld-interaction-prompt ${compact ? 'openworld-interaction-prompt--compact' : ''}`}
+ role="status"
+ aria-live="polite"
+ data-testid="openworld-interaction-prompt"
+ >
+ <span className="openworld-hud-eyebrow">{copy.eyebrow}</span>
+ <span className="openworld-interaction-prompt__label">{copy.label}</span>
+ <span className="openworld-interaction-prompt__action">
+ <kbd>{compact ? 'ACTION' : 'F'}</kbd>
+ {copy.action}
+ </span>
+ </div>
+ );
+}
diff --git a/client/src/components/openworld/OpenWorldLabel.jsx b/client/src/components/openworld/OpenWorldLabel.jsx
index 8c1d66f620..f8677814f2 100644
--- a/client/src/components/openworld/OpenWorldLabel.jsx
+++ b/client/src/components/openworld/OpenWorldLabel.jsx
@@ -14,10 +14,15 @@ import { openWorldLabelColors } from './openWorldConstants';
// dim in daylight like the real thing.
const OpenWorldLabel = forwardRef(function OpenWorldLabel({ color, dayMix = 0, outlineColor, ...props }, ref) {
const themed = openWorldLabelColors(color, dayMix);
+ // Small tracking and a consistent line box keep stacked labels from collapsing into
+ // the pixel glyphs. A slight depth bias prevents facades and signs from eating the ink.
return (
<Text
ref={ref}
{...props}
+ letterSpacing={props.letterSpacing ?? 0.01}
+ lineHeight={props.lineHeight ?? 1.1}
+ depthOffset={props.depthOffset ?? -1}
color={themed.color}
outlineColor={outlineColor ?? themed.outlineColor}
outlineWidth={themed.outlineWidth}
diff --git a/client/src/components/openworld/OpenWorldLandscape.jsx b/client/src/components/openworld/OpenWorldLandscape.jsx
index 1a0e20955f..0f73e0a14b 100644
--- a/client/src/components/openworld/OpenWorldLandscape.jsx
+++ b/client/src/components/openworld/OpenWorldLandscape.jsx
@@ -7,8 +7,6 @@ import { WORLD } from '../../utils/openWorldPlan';
const TERRAIN_SIZE = 2400;
const MOUNTAIN_INNER_RADIUS = 560;
const MOUNTAIN_RADIUS_SPREAD = 190;
-const NEAR_HILL_INNER_RADIUS = 72;
-const NEAR_HILL_RADIUS_SPREAD = 28;
const TERRAIN_VERT = `
varying vec2 vUv;
@@ -148,42 +146,6 @@ function Mountain({ mountain, dayMix, surface }) {
);
}
-function NearHill({ hill, dayMix, surface, terrain }) {
- const geometry = useMemo(() => {
- const geom = new THREE.ConeGeometry(hill.radius, hill.height, hill.sides, 4);
- const position = geom.getAttribute('position');
- const colors = [];
- const base = new THREE.Color(mixHex('#304b58', terrain.ridge, dayMix));
- const lit = new THREE.Color(mixHex('#466b72', terrain.meadow, dayMix));
- const cap = new THREE.Color(mixHex('#6b7890', '#d5c49c', dayMix));
-
- for (let i = 0; i < position.count; i += 1) {
- const y = (position.getY(i) + hill.height / 2) / hill.height;
- const shoulder = smoothstepRange(0.16, 0.78, y);
- const capMix = smoothstepRange(0.72, 1, y) * hill.cap;
- const color = base.clone()
- .lerp(lit, Math.min(1, hill.light + shoulder * 0.3))
- .lerp(cap, capMix);
- colors.push(color.r, color.g, color.b);
- }
-
- geom.setAttribute('color', new THREE.Float32BufferAttribute(colors, 3));
- geom.computeVertexNormals();
- return geom;
- }, [dayMix, hill.cap, hill.height, hill.light, hill.radius, hill.sides, terrain]);
-
- useEffect(() => () => geometry.dispose(), [geometry]);
-
- return (
- <group position={hill.position} rotation={[0, hill.rotation, 0]} scale={hill.scale}>
- <mesh position={[0, hill.height / 2 - 0.08, 0]}>
- <primitive attach="geometry" object={geometry} />
- <meshStandardMaterial vertexColors roughness={0.98} metalness={0} depthWrite {...surface} />
- </mesh>
- </group>
- );
-}
-
export default function OpenWorldLandscape({ settings }) {
const { accent, terrain, surface } = useOpenWorldPalette();
const dayMix = openWorldDayMix(settings);
@@ -214,55 +176,6 @@ export default function OpenWorldLandscape({ settings }) {
return result;
}, []);
- // A second, closer ring gives the playable city a landscape silhouette. The far
- // mountain ring is intentionally distant for orbital mode, but without this nearer
- // ring the empty/offline world reads as a flat plane until live buildings arrive.
- const nearHills = useMemo(() => {
- const result = [];
- const rand = seededRand(8421);
- const count = 14;
-
- for (let i = 0; i < count; i++) {
- const angle = (i / count) * Math.PI * 2 + (rand() - 0.5) * 0.22;
- const radius = NEAR_HILL_INNER_RADIUS + rand() * NEAR_HILL_RADIUS_SPREAD;
- const x = Math.cos(angle) * radius;
- const z = Math.sin(angle) * radius;
- if (z < WORLD.shorelineZ + 6) continue;
- result.push({
- id: `near-hill-${i}`,
- position: [x, 0, z],
- rotation: -angle + Math.PI / 2,
- height: 6 + rand() * 12,
- radius: 8 + rand() * 10,
- sides: rand() > 0.45 ? 5 : 6,
- light: 0.22 + rand() * 0.32,
- cap: rand() > 0.7 ? 0.55 : 0.12,
- scale: [1.1 + rand() * 1.4, 0.72 + rand() * 0.28, 0.7 + rand() * 0.9],
- });
- }
-
- return result;
- }, []);
-
- const roadsideRocks = useMemo(() => {
- const rand = seededRand(6112);
- return Array.from({ length: 10 }, (_, i) => {
- const side = i % 2 === 0 ? -1 : 1;
- const row = Math.floor(i / 2);
- return {
- id: `roadside-rock-${i}`,
- position: [side * (6 + rand() * 2.2), 0, 38 + row * 7 + rand() * 2.2],
- rotation: rand() * Math.PI * 2,
- height: 0.9 + rand() * 1.2,
- radius: 0.8 + rand() * 0.7,
- sides: 5,
- light: 0.18 + rand() * 0.26,
- cap: 0,
- scale: [1.05 + rand() * 0.45, 0.7 + rand() * 0.2, 0.85 + rand() * 0.35],
- };
- });
- }, []);
-
return (
<group>
<TerrainPlane dayMix={dayMix} accent={accent} terrain={terrain} />
@@ -271,16 +184,6 @@ export default function OpenWorldLandscape({ settings }) {
<Mountain key={mountain.id} mountain={mountain} dayMix={dayMix} surface={surface} />
))}
</group>
- <group>
- {nearHills.map((hill) => (
- <NearHill key={hill.id} hill={hill} dayMix={dayMix} surface={surface} terrain={terrain} />
- ))}
- </group>
- <group>
- {roadsideRocks.map((rock) => (
- <NearHill key={rock.id} hill={rock} dayMix={dayMix} surface={surface} terrain={terrain} />
- ))}
- </group>
</group>
);
}
diff --git a/client/src/components/openworld/OpenWorldNature.jsx b/client/src/components/openworld/OpenWorldNature.jsx
new file mode 100644
index 0000000000..30f3ef8fd9
--- /dev/null
+++ b/client/src/components/openworld/OpenWorldNature.jsx
@@ -0,0 +1,125 @@
+import { mixHex, openWorldDayMix, openWorldShowDetail } from './openWorldConstants';
+import { useOpenWorldPalette } from './OpenWorldPaletteContext';
+
+// The playable city uses plants as wayfinding language: arrival gardens sit beside the
+// southern entry road, district greens soften the outer parcels, and warp-pad planters frame
+// an interaction surface. These are grounded, broad silhouettes rather than floating ornaments.
+export const NATURE_PATCHES = [
+ { id: 'arrival-west', position: [-10, 0, 48], scale: 1.15, variant: 0 },
+ { id: 'arrival-east', position: [10, 0, 48], scale: 1.15, variant: 1 },
+ { id: 'plaza-southwest', position: [-14, 0, 18], scale: 0.9, variant: 1 },
+ { id: 'plaza-southeast', position: [14, 0, 18], scale: 0.9, variant: 0 },
+ { id: 'productivity-greenway', position: [-43, 0, 20], scale: 1.1, variant: 2 },
+ { id: 'wellness-greenway', position: [43, 0, 20], scale: 1.1, variant: 1 },
+ { id: 'memory-garden', position: [-39, 0, -19], scale: 1.05, variant: 2 },
+ { id: 'goals-garden', position: [29, 0, -29], scale: 1.05, variant: 0 },
+ { id: 'archive-garden', position: [-14, 0, 46], scale: 0.85, variant: 2 },
+ { id: 'quiet-garden', position: [-48, 0, 38], scale: 1.15, variant: 0 },
+];
+
+const LEAF_LAYOUTS = [
+ [
+ { position: [0, 0.96, 0], scale: [0.54, 0.68, 0.54] },
+ { position: [-0.34, 0.72, 0.14], scale: [0.38, 0.42, 0.38] },
+ { position: [0.35, 0.78, -0.1], scale: [0.42, 0.5, 0.42] },
+ ],
+ [
+ { position: [0, 1.04, 0], scale: [0.48, 0.72, 0.48] },
+ { position: [-0.28, 0.74, -0.16], scale: [0.42, 0.5, 0.42] },
+ { position: [0.3, 0.69, 0.16], scale: [0.36, 0.45, 0.36] },
+ ],
+ [
+ { position: [0, 0.9, 0], scale: [0.62, 0.5, 0.62] },
+ { position: [-0.42, 0.76, 0.08], scale: [0.4, 0.55, 0.4] },
+ { position: [0.38, 0.8, -0.08], scale: [0.4, 0.5, 0.4] },
+ ],
+];
+
+const FLOWER_LAYOUT = [
+ { position: [0.22, 1.45, 0.16], scale: 1 },
+ { position: [-0.3, 1.23, -0.18], scale: 0.82 },
+ { position: [0.38, 1.25, -0.08], scale: 0.76 },
+];
+
+function Plant({ position, scale = 1, variant = 0, flowerColor, foliageColor, foliageDark, cyber }) {
+ const leaves = LEAF_LAYOUTS[variant % LEAF_LAYOUTS.length];
+ const stemColor = mixHex(foliageDark, '#b29368', cyber ? 0.08 : 0.28);
+ const leafGlow = mixHex(foliageColor, '#173b25', cyber ? 0.1 : 0.56);
+
+ return (
+ <group position={position} scale={scale}>
+ <mesh position={[0, 0.42, 0]}>
+ <cylinderGeometry args={[0.045, 0.08, 0.82, 6]} />
+ {cyber ? (
+ <meshBasicMaterial color={foliageColor} transparent opacity={0.8} wireframe />
+ ) : (
+ <meshStandardMaterial color={stemColor} roughness={0.95} metalness={0} />
+ )}
+ </mesh>
+ {leaves.map((leaf, index) => (
+ <mesh key={`leaf-${index}`} position={leaf.position} scale={leaf.scale} rotation={[0, index * 0.9, index * 0.15]}>
+ <icosahedronGeometry args={[1, 1]} />
+ {cyber ? (
+ <meshBasicMaterial color={foliageColor} transparent opacity={0.34} wireframe toneMapped={false} />
+ ) : (
+ <meshStandardMaterial
+ color={index === 0 ? foliageColor : foliageDark}
+ emissive={leafGlow}
+ emissiveIntensity={0.18}
+ roughness={0.98}
+ metalness={0}
+ />
+ )}
+ </mesh>
+ ))}
+ {FLOWER_LAYOUT.map((flower, index) => (
+ <mesh key={`flower-${index}`} position={flower.position} scale={flower.scale}>
+ <sphereGeometry args={[0.16, 8, 6]} />
+ <meshBasicMaterial color={flowerColor} transparent opacity={cyber ? 0.9 : 0.88} toneMapped={false} />
+ </mesh>
+ ))}
+ </group>
+ );
+}
+
+export function PlantCluster({ position = [0, 0, 0], scale = 1, variant = 0, container = false, dayMix = 0 }) {
+ const { accent, lowPoly, tintStructure } = useOpenWorldPalette();
+ const cyber = !lowPoly;
+ const foliageColor = mixHex(lowPoly ? '#5f9b6d' : '#20b7a5', accent, lowPoly ? 0.14 : 0.56);
+ const foliageDark = mixHex(foliageColor, lowPoly ? '#214934' : '#071c25', lowPoly ? 0.42 : 0.7);
+ const flowerColor = mixHex(mixHex(accent, '#ffd166', lowPoly ? 0.45 : 0.18), '#fff3c4', dayMix * 0.2);
+
+ return (
+ <group position={position} scale={scale}>
+ {container && (
+ <>
+ <mesh position={[0, 0.15, 0]}>
+ <cylinderGeometry args={[0.78, 0.88, 0.3, 8]} />
+ <meshStandardMaterial color={tintStructure('#263938')} roughness={0.9} metalness={cyber ? 0.35 : 0} />
+ </mesh>
+ <mesh position={[0, 0.31, 0]}>
+ <cylinderGeometry args={[0.64, 0.68, 0.05, 8]} />
+ <meshStandardMaterial color={mixHex(foliageDark, '#111c1b', 0.35)} roughness={1} metalness={0} />
+ </mesh>
+ </>
+ )}
+ <Plant position={[-0.36, container ? 0.28 : 0, 0]} scale={0.82} variant={variant} flowerColor={flowerColor} foliageColor={foliageColor} foliageDark={foliageDark} cyber={cyber} />
+ <Plant position={[0.34, container ? 0.28 : 0, 0.08]} scale={0.68} variant={variant + 1} flowerColor={flowerColor} foliageColor={foliageColor} foliageDark={foliageDark} cyber={cyber} />
+ <Plant position={[0, container ? 0.28 : 0, -0.28]} scale={0.72} variant={variant + 2} flowerColor={flowerColor} foliageColor={foliageColor} foliageDark={foliageDark} cyber={cyber} />
+ </group>
+ );
+}
+
+export default function OpenWorldNature({ settings }) {
+ const dayMix = openWorldDayMix(settings);
+ const detailed = openWorldShowDetail(settings);
+ const patches = detailed ? NATURE_PATCHES : NATURE_PATCHES.slice(0, 4);
+
+ return (
+ <group>
+ {patches.map((patch) => (
+ <PlantCluster key={patch.id} position={patch.position} scale={patch.scale * (detailed ? 1 : 0.86)} variant={patch.variant} dayMix={dayMix} />
+ ))}
+ </group>
+ );
+}
diff --git a/client/src/components/openworld/OpenWorldScanlines.jsx b/client/src/components/openworld/OpenWorldScanlines.jsx
deleted file mode 100644
index 238a34437d..0000000000
--- a/client/src/components/openworld/OpenWorldScanlines.jsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import { useState, useEffect } from 'react';
-
-// CSS CRT overlay (scanlines + neon edge-glow + vignette) for the city scene.
-// Each piece is opted in per theme via the `crt` profile (see deriveCrtProfile in
-// openWorldConstants) — scanlines and neon glow are cyber/terminal affectations, not
-// universal, so clean themes (e.g. glass) get little or nothing. Glow color comes
-// from the live --port-accent var so it tracks the active theme. All layers sit
-// at z-10, below the HUD (z-20), so they only treat the 3D scene, not the panels.
-export default function OpenWorldScanlines({ settings, crt }) {
- const profile = crt || { scanlines: true, glow: true, vignette: true };
- // The user toggle can only switch scanlines OFF for a theme that supports them;
- // it can't force them onto a non-terminal theme (they'd be off-style there).
- const scanlines = profile.scanlines && (settings?.scanlineOverlay ?? true);
-
- // Random subtle brightness flicker like a CRT monitor (only while scanlines on)
- const [flicker, setFlicker] = useState(1);
- useEffect(() => {
- if (!scanlines) return;
- const interval = setInterval(() => {
- setFlicker(0.97 + Math.random() * 0.03);
- }, 150);
- return () => clearInterval(interval);
- }, [scanlines]);
-
- return (
- <>
- {scanlines && (
- <div
- className="absolute inset-0 pointer-events-none z-10"
- style={{
- backgroundImage: 'repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 3px)',
- backgroundSize: '100% 3px',
- mixBlendMode: 'multiply',
- opacity: flicker,
- }}
- />
- )}
-
- {profile.vignette && (
- <div
- className="absolute inset-0 pointer-events-none z-10"
- style={{
- background: 'radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%)',
- }}
- />
- )}
-
- {profile.glow && (
- <>
- {/* Chromatic-aberration-style edge glow, tinted to the theme accent */}
- <div
- className="absolute inset-0 pointer-events-none z-10 opacity-[0.025]"
- style={{
- boxShadow: 'inset 0 0 120px 30px rgb(var(--port-accent) / 0.4), inset 0 0 60px 12px rgb(var(--port-accent) / 0.2)',
- }}
- />
- {/* Top + bottom neon strips */}
- <div
- className="absolute top-0 left-0 right-0 h-px pointer-events-none z-10"
- style={{
- background: 'linear-gradient(90deg, transparent, rgb(var(--port-accent) / 0.15) 30%, rgb(var(--port-accent) / 0.3) 50%, rgb(var(--port-accent) / 0.15) 70%, transparent)',
- }}
- />
- <div
- className="absolute bottom-0 left-0 right-0 h-px pointer-events-none z-10"
- style={{
- background: 'linear-gradient(90deg, transparent, rgb(var(--port-accent) / 0.1) 30%, rgb(var(--port-accent) / 0.22) 50%, rgb(var(--port-accent) / 0.1) 70%, transparent)',
- }}
- />
- </>
- )}
- </>
- );
-}
diff --git a/client/src/components/openworld/OpenWorldScene.jsx b/client/src/components/openworld/OpenWorldScene.jsx
index 3c1112b09b..7cd6838610 100644
--- a/client/src/components/openworld/OpenWorldScene.jsx
+++ b/client/src/components/openworld/OpenWorldScene.jsx
@@ -24,7 +24,6 @@ import OpenWorldActivityHeatmap from './OpenWorldActivityHeatmap';
import OpenWorldTaskFlowRiver from './OpenWorldTaskFlowRiver';
import OpenWorldGoalMonuments from './OpenWorldGoalMonuments';
import OpenWorldArtifacts from './OpenWorldArtifacts';
-import OpenWorldSeasonalDecor from './OpenWorldSeasonalDecor';
import OpenWorldEasterEggs from './OpenWorldEasterEggs';
import OpenWorldVoiceMarker from './OpenWorldVoiceMarker';
import OpenWorldMemoryDistrict from './OpenWorldMemoryDistrict';
@@ -38,6 +37,7 @@ import OpenWorldSignalBeacons from './OpenWorldSignalBeacons';
import OpenWorldSky from './OpenWorldSky';
import OpenWorldGalaxySky from './OpenWorldGalaxySky';
import OpenWorldLandscape from './OpenWorldLandscape';
+import OpenWorldNature from './OpenWorldNature';
import OpenWorldWater from './OpenWorldWater';
import OpenWorldStreets from './OpenWorldStreets';
import OpenWorldStreetProps from './OpenWorldStreetProps';
@@ -59,9 +59,10 @@ import { useVisibilityEvent } from '../../hooks/useVisibilityEvent';
const STARTUP_PARTICLE_DENSITY = 0.49;
-export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onToggleCameraView, cosStatus, reviewCounts, instances, backupStatus, cosTasks, healthMetrics, voiceState, aiActivity, productivityData, activityCalendar, goals, character, chronotype, memoryGraph, inboxDepth, jiraTickets, introspection, playback = false, photoMode, photoPresetId, photoDof, onPhotoCaptureReady, settings, playSfx, keysRef, mobileInputRef, playerActionRef, dimmedAppIds, focusedAppId, focusedRegion, playerTeleport, hudSafe, background, palette, onTravelToRegion, autoQuality = false, autoStartTier = 'high', autoResetToken = 0, diagnosticsEnabled = false, onAutoTierChange, onAutoDiagnostics }) {
+export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onToggleCameraView, cosStatus, reviewCounts, instances, backupStatus, cosTasks, healthMetrics, voiceState, aiActivity, productivityData, activityCalendar, goals, character, chronotype, memoryGraph, inboxDepth, jiraTickets, introspection, playback = false, photoMode, photoPresetId, photoDof, onPhotoCaptureReady, settings, playSfx, keysRef, mobileInputRef, playerActionRef, dimmedAppIds, focusedAppId, focusedRegion, playerTeleport, hudSafe, background, palette, onTravelToRegion, onProximityChange, autoQuality = false, autoStartTier = 'high', autoResetToken = 0, onAutoTierChange }) {
const [positions, setPositions] = useState(null);
const [proximityApp, setProximityApp] = useState(null);
+ const [proximityWarpPad, setProximityWarpPad] = useState(null);
const [transitioning, setTransitioning] = useState(false);
const [webglLost, setWebglLost] = useState(false);
const [canvasRevision, setCanvasRevision] = useState(0);
@@ -125,7 +126,6 @@ export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onTogg
return {
...settings,
effectiveTier: 'low',
- reflectionsEnabled: false,
particleDensity: Math.min(settings?.particleDensity ?? 1, contextRecoveryMode ? 0.25 : STARTUP_PARTICLE_DENSITY),
dpr: [1, 1],
};
@@ -176,6 +176,28 @@ export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onTogg
setProximityApp(app);
}, []);
+ const handleWarpPadProximity = useCallback((region) => {
+ setProximityWarpPad(region);
+ }, []);
+
+ useEffect(() => {
+ if (explorationMode) return;
+ setProximityApp(null);
+ setProximityWarpPad(null);
+ }, [explorationMode]);
+
+ useEffect(() => {
+ if (!explorationMode) {
+ onProximityChange?.(null);
+ return;
+ }
+ if (proximityWarpPad) {
+ onProximityChange?.({ type: 'warpPad', id: proximityWarpPad.id, label: proximityWarpPad.label });
+ return;
+ }
+ onProximityChange?.(proximityApp ? { type: 'building', id: proximityApp.id, label: proximityApp.name } : null);
+ }, [explorationMode, onProximityChange, proximityApp, proximityWarpPad]);
+
const handleTransitionComplete = useCallback(() => {
setTransitioning(false);
}, []);
@@ -297,6 +319,7 @@ export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onTogg
would recompile every lit material 1.2s into each load. */}
<OpenWorldLights settings={renderSettings} lightingTier={settings?.effectiveTier} />
<OpenWorldLandscape settings={renderSettings} />
+ <OpenWorldNature settings={renderSettings} />
<OpenWorldWater settings={renderSettings} />
<OpenWorldEnergyOverlay chronotype={chronotype} settings={renderSettings} />
{neonLayers && <OpenWorldStarfield settings={renderSettings} />}
@@ -312,7 +335,6 @@ export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onTogg
<OpenWorldTaskFlowRiver cosTasks={cosTasks} productivityData={productivityData} calendarData={activityCalendar} settings={renderSettings} />
<OpenWorldGoalMonuments goals={goals} settings={renderSettings} />
<OpenWorldArtifacts character={character} goals={goals} productivityData={productivityData} settings={renderSettings} />
- <OpenWorldSeasonalDecor settings={renderSettings} />
<OpenWorldEasterEggs character={character} goals={goals} productivityData={productivityData} settings={renderSettings} />
<OpenWorldVoiceMarker voiceState={voiceState} settings={renderSettings} />
<OpenWorldMemoryDistrict memoryGraph={memoryGraph} inboxDepth={inboxDepth} settings={renderSettings} />
@@ -365,6 +387,7 @@ export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onTogg
keysRef={keysRef}
positions={positions}
onBuildingProximity={handleBuildingProximity}
+ onWarpPadProximity={handleWarpPadProximity}
onBuildingClick={onBuildingClick}
onToggleCameraView={onToggleCameraView}
apps={apps}
@@ -410,9 +433,7 @@ export default function OpenWorldScene({ apps, agentMap, onBuildingClick, onTogg
startTier={autoStartTier}
resumeToken={budgetRearmToken}
resetToken={autoResetToken}
- diagnosticsEnabled={diagnosticsEnabled}
onTierChange={onAutoTierChange}
- onDiagnostics={onAutoDiagnostics}
/>
)}
<CameraTransition
diff --git a/client/src/components/openworld/OpenWorldSeasonalDecor.jsx b/client/src/components/openworld/OpenWorldSeasonalDecor.jsx
deleted file mode 100644
index 09c981c627..0000000000
--- a/client/src/components/openworld/OpenWorldSeasonalDecor.jsx
+++ /dev/null
@@ -1,79 +0,0 @@
-import { useMemo, useRef } from 'react';
-import { useFrame } from '@react-three/fiber';
-import { useTimeTick } from '../../hooks/useTimeTick';
-import { PIXEL_FONT_URL, openWorldDayMix } from './openWorldConstants';
-import OpenWorldLabel from './OpenWorldLabel';
-import { computeSeasonalDecor, SEASONAL_DECOR } from '../../utils/openWorldSeasonalDecor';
-
-// OpenWorld's seasonal decorations (roadmap 3.5 follow-up, #824): date-driven city dressing
-// that layers the active season's (or holiday's) palette onto a loose ring of glowing accent
-// props around the city's edge. The theme is resolved from a date — a holiday window
-// (New Year, Halloween, …) overrides the broad season. Props bob/shimmer (each on its own
-// phase offset) gated on the quality dial (mirrors OpenWorldArtifacts / OpenWorldGoalMonuments).
-function Decoration({ decoration, color, accent, animate }) {
- const { position, phase } = decoration;
- const s = SEASONAL_DECOR.propSize;
- const ref = useRef();
-
- // Per-decoration bob, offset by the descriptor's stable phase so the ring doesn't pulse in
- // lockstep. Gated on the quality dial; the static glow remains when animation is off.
- useFrame(({ clock }) => {
- if (!animate || !ref.current) return;
- const pulse = (Math.sin(clock.getElapsedTime() * 1.1 + phase * Math.PI * 2) + 1) / 2; // 0..1
- ref.current.scale.setScalar(1 + pulse * 0.06);
- ref.current.position.y = pulse * 0.6;
- });
-
- return (
- <group position={position}>
- <group ref={ref}>
- {/* A faceted, glowing prop — abstract enough to read for any season/holiday. */}
- <mesh position={[0, s * 0.6, 0]} rotation={[0, Math.PI / 5, 0]}>
- <coneGeometry args={[s * 0.5, s * 1.4, 5]} />
- <meshStandardMaterial color={color} emissive={color} emissiveIntensity={0.55} metalness={0.4} roughness={0.3} toneMapped={false} />
- </mesh>
-
- {/* An accent orb crowns the prop — the holiday/season's secondary color. */}
- <mesh position={[0, s * 1.5, 0]}>
- <sphereGeometry args={[s * 0.28, 10, 10]} />
- <meshStandardMaterial color={accent} emissive={accent} emissiveIntensity={0.8} toneMapped={false} />
- </mesh>
-
- <pointLight position={[0, s * 1.2, 0]} color={accent} intensity={0.7} distance={9} />
- </group>
- </group>
- );
-}
-
-export default function OpenWorldSeasonalDecor({ date, settings }) {
- // Re-resolve the theme as real time advances so the dressing turns over at midnight / a holiday
- // boundary while OpenWorld stays open — an hourly tick is plenty for a calendar-day theme and is
- // battery-friendly (shared singleton timer, paused while the tab is hidden). An explicit `date`
- // prop still wins for callers/tests; the pure helper is what the unit tests exercise directly.
- const tick = useTimeTick(3600000);
- const decor = useMemo(
- () => computeSeasonalDecor(date ?? new Date(tick)),
- [date, tick],
- );
-
- // Honor the quality dial: drop the bob/shimmer on the lowest preset, keep the static glow.
- const animate = (settings?.particleDensity ?? 1) >= 0.5;
- const dayMix = openWorldDayMix(settings);
-
- if (!decor.hasData) return null;
-
- const { decorations, color, accent, label, base } = decor;
-
- return (
- <group>
- {decorations.map((decoration) => (
- <Decoration key={decoration.id} decoration={decoration} color={color} accent={accent} animate={animate} />
- ))}
-
- {/* Season/holiday banner high above the city center so it reads as ambient context. */}
- <OpenWorldLabel position={[base[0], 34, base[2]]} fontSize={1.6} color={color} dayMix={dayMix} anchorX="center" anchorY="middle" font={PIXEL_FONT_URL} maxWidth={40}>
- {label}
- </OpenWorldLabel>
- </group>
- );
-}
diff --git a/client/src/components/openworld/OpenWorldSettingsDrawer.jsx b/client/src/components/openworld/OpenWorldSettingsDrawer.jsx
index 160d7b4a7f..3e2eb4d725 100644
--- a/client/src/components/openworld/OpenWorldSettingsDrawer.jsx
+++ b/client/src/components/openworld/OpenWorldSettingsDrawer.jsx
@@ -1,15 +1,14 @@
import Drawer from '../Drawer';
import useDrawerTab from '../../hooks/useDrawerTab';
import { useOpenWorldSettingsContext } from './OpenWorldSettingsContext';
-import { QUALITY_PRESETS } from '../../hooks/useOpenWorldSettings';
import { SOUNDSCAPE_MOODS, isSoundscapeMood } from '../../utils/openWorldSoundscape';
import { WORLD_STYLE_DEFS, WORLD_STYLES, resolveWorldStyle } from './openWorldConstants';
// Derived from the style table, so registering a style makes it pickable — no second list.
const WORLD_STYLE_OPTIONS = WORLD_STYLES.map((key) => ({ key, label: WORLD_STYLE_DEFS[key].label }));
-// The soundscape override's "no override" option. A `<select>` can't carry `null`, so the
-// auto choice rides as the empty string and the change handler maps it back to the `null`
+// The soundscape override's "no override" option. A <select> cannot carry null, so the
+// auto choice rides as the empty string and the change handler maps it back to the null
// sentinel — keeping "following live state" distinct from "pinned to a mood".
const SOUNDSCAPE_AUTO = '';
const SOUNDSCAPE_OPTIONS = [
@@ -17,17 +16,15 @@ const SOUNDSCAPE_OPTIONS = [
...SOUNDSCAPE_MOODS.map(mood => ({ value: mood, label: mood.toUpperCase() })),
];
-// OpenWorld settings migrated onto the shared tabbed <Drawer> (issue #2591) — replaces
-// the old bespoke bottom-right 19rem page-length scroller. Grouped into
-// Performance / Audio / Visual / Explore so no single tab is a long scroll, with the
-// active tab deep-linked through the `openWorldTab` URL param (useDrawerTab). All mutable
-// state lives in OpenWorldSettingsContext ABOVE this remounting body, so switching tabs
-// (which remounts the body) never drops an edit.
+// OpenWorld settings stay on the shared Drawer, but the surface is intentionally small:
+// world style, sound, and controls are player choices. Render quality, scanlines, reflections,
+// and brightness sliders were implementation leftovers from earlier versions of the world and
+// are now resolved by the scene's art direction and adaptive renderer.
function SettingToggle({ id, label, value, onChange, description, disabled = false }) {
return (
<div className={`flex items-center justify-between py-2 group ${disabled ? 'opacity-40' : ''}`} title={description}>
- <label htmlFor={id} className={`font-pixel text-[11px] text-gray-300 tracking-wide ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`}>
+ <label htmlFor={id} className={`font-sans text-[12px] text-gray-300 tracking-wide ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`}>
{label}
</label>
<button
@@ -53,8 +50,8 @@ function SettingSlider({ id, label, value, onChange, min = 0, max = 1, step = 0.
return (
<div className={`py-2 ${disabled ? 'opacity-40' : ''}`} title={description}>
<div className="flex items-center justify-between mb-1.5">
- <label htmlFor={id} className="font-pixel text-[11px] text-gray-300 tracking-wide">{label}</label>
- <span className="font-pixel text-[10px] text-cyan-400/70">{displayValue}</span>
+ <label htmlFor={id} className="font-sans text-[12px] text-gray-300 tracking-wide">{label}</label>
+ <span className="font-mono text-[11px] text-cyan-400/70">{displayValue}</span>
</div>
<input
id={id}
@@ -80,18 +77,18 @@ function SettingSlider({ id, label, value, onChange, min = 0, max = 1, step = 0.
function SettingSelect({ id, label, value, onChange, options, hint, description }) {
return (
<div className="py-2" title={description}>
- <label htmlFor={id} className="block font-pixel text-[11px] text-gray-300 tracking-wide mb-1.5">{label}</label>
+ <label htmlFor={id} className="block font-sans text-[12px] text-gray-300 tracking-wide mb-1.5">{label}</label>
<select
id={id}
value={value}
onChange={(e) => onChange(e.target.value)}
- className="w-full font-pixel text-[10px] min-h-[44px] px-2 rounded border border-gray-700/40 bg-gray-800/40 text-gray-300 tracking-wide focus:border-cyan-500/50 focus:outline-none"
+ className="w-full font-sans text-[12px] min-h-[44px] px-2 rounded border border-gray-700/40 bg-gray-800/40 text-gray-300 tracking-wide focus:border-cyan-500/50 focus:outline-none"
>
{options.map(({ value: optionValue, label: optionLabel }) => (
<option key={optionValue} value={optionValue}>{optionLabel}</option>
))}
</select>
- {hint && <div className="font-pixel text-[8px] text-gray-500 tracking-wide mt-1.5">{hint}</div>}
+ {hint && <div className="font-mono text-[10px] text-gray-500 tracking-wide mt-1.5">{hint}</div>}
</div>
);
}
@@ -102,7 +99,7 @@ function SettingSegment({ label, options, value, onChange, hint, isActive }) {
const activeFor = isActive ?? ((key) => value === key);
return (
<div className="py-2">
- {label && <div className="font-pixel text-[11px] text-gray-300 tracking-wide mb-2">{label}</div>}
+ {label && <div className="font-sans text-[12px] text-gray-300 tracking-wide mb-2">{label}</div>}
<div className={`grid gap-1.5 ${options.length === 2 ? 'grid-cols-2' : 'grid-cols-3'}`} role="group" aria-label={label}>
{options.map(({ key, label: optionLabel }) => (
<button
@@ -110,7 +107,7 @@ function SettingSegment({ label, options, value, onChange, hint, isActive }) {
type="button"
aria-pressed={activeFor(key)}
onClick={() => onChange(key)}
- className={`font-pixel text-[10px] min-h-[44px] rounded border transition-all tracking-wide ${
+ className={`font-sans text-[11px] min-h-[44px] rounded border transition-all tracking-wide ${
activeFor(key)
? '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-400 hover:border-gray-600 hover:text-gray-300'
@@ -120,7 +117,7 @@ function SettingSegment({ label, options, value, onChange, hint, isActive }) {
</button>
))}
</div>
- {hint && <div className="font-pixel text-[8px] text-gray-500 tracking-wide mt-1.5">{hint}</div>}
+ {hint && <div className="font-mono text-[10px] text-gray-500 tracking-wide mt-1.5">{hint}</div>}
</div>
);
}
@@ -128,43 +125,51 @@ function SettingSegment({ label, options, value, onChange, hint, isActive }) {
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-500 tracking-wide mt-0.5">{subtitle}</div>}
+ <div className="font-mono text-[10px] font-semibold text-cyan-500/70 tracking-[0.14em]">{title}</div>
+ {subtitle && <div className="font-sans text-[11px] text-gray-500 tracking-wide mt-0.5">{subtitle}</div>}
+ </div>
+ );
+}
+
+function KeyCaps({ keys }) {
+ return (
+ <span className="flex shrink-0 items-center gap-1" aria-label={keys.join(' / ')}>
+ {keys.map(key => (
+ <kbd key={key} className="inline-flex min-w-[28px] min-h-[26px] items-center justify-center rounded-md border border-cyan-500/25 bg-cyan-500/[0.08] px-1.5 font-mono text-[10px] font-semibold text-cyan-300">
+ {key}
+ </kbd>
+ ))}
+ </span>
+ );
+}
+
+function ControlRow({ keys, label, hint }) {
+ return (
+ <div className="flex items-center justify-between gap-3 border-b border-gray-700/30 py-2.5 last:border-b-0">
+ <div className="min-w-0">
+ <div className="font-sans text-[12px] text-gray-200">{label}</div>
+ {hint && <div className="font-sans text-[10px] text-gray-500 mt-0.5">{hint}</div>}
+ </div>
+ <KeyCaps keys={keys} />
</div>
);
}
export const CITY_SETTINGS_TABS = [
- { id: 'performance', label: 'Performance' },
{ id: 'audio', label: 'Audio' },
{ id: 'visual', label: 'Visual' },
- { id: 'explore', label: 'Explore' },
+ { id: 'controls', label: 'Controls' },
];
const TAB_IDS = CITY_SETTINGS_TABS.map(t => t.id);
-// Format a diagnostics number, guarding the not-yet-measured (null) case.
-function fmt(value, digits = 0) {
- return typeof value === 'number' && Number.isFinite(value) ? value.toFixed(digits) : '—';
-}
-
-export default function OpenWorldSettingsDrawer({ open, onClose, qualityMode = 'manual', effectiveTier = 'high', diagnostics = null }) {
+export default function OpenWorldSettingsDrawer({ open, onClose }) {
const { settings, updateSetting, resetSettings } = useOpenWorldSettingsContext();
- const [activeTab, setActiveTab] = useDrawerTab('openWorldTab', 'performance', TAB_IDS);
+ const [activeTab, setActiveTab] = useDrawerTab('openWorldTab', 'audio', TAB_IDS);
if (!open || !settings) return null;
- // Auto quality mode (#2592). 'auto' engages the adaptive render budget; picking a named
- // preset pins Manual (handled in useOpenWorldSettings). In Auto the scene derives reflections +
- // particle density from the effective tier, so those (disabled) controls display the
- // effective preset's values and follow live tier changes rather than a stale manual value.
- const isAuto = qualityMode === 'auto';
- const effectivePreset = isAuto ? (QUALITY_PRESETS[effectiveTier] || QUALITY_PRESETS.high) : null;
- const reflectionsValue = effectivePreset ? effectivePreset.reflectionsEnabled : settings.reflectionsEnabled;
- const particleValue = effectivePreset ? effectivePreset.particleDensity : settings.particleDensity;
- const setQuality = (key) => {
- if (key === 'auto') updateSetting('qualityMode', 'auto');
- else updateSetting('qualityPreset', key);
- };
+ const worldStyle = resolveWorldStyle(settings.worldStyle);
+ const isCyberCity = worldStyle === 'cyber';
return (
<Drawer
@@ -176,72 +181,10 @@ export default function OpenWorldSettingsDrawer({ open, onClose, qualityMode = '
activeTab={activeTab}
onTabChange={setActiveTab}
closeLabel="Close city settings"
- // Drawer portals to <body>, which leaves the page's `.openworld-themed`
- // root behind — and the OpenWorld HUD palette remap in index.css is written as
- // `.openworld-themed <utility>` descendant selectors. Re-apply the class
- // inside the portal so the panel keeps its themed ink/surfaces.
- portalClassName="openworld-themed"
+ // Drawer portals to <body>, so re-apply the page scope for the themed panel and its
+ // typography. The extra hook is useful for drawer-only spacing without touching all HUD.
+ portalClassName="openworld-themed openworld-settings-portal"
>
- {activeTab === 'performance' && (
- <div className="space-y-5">
- <div>
- <SectionHeader
- title="QUALITY"
- subtitle={isAuto ? `AUTO · ${String(effectiveTier).toUpperCase()}` : `MANUAL · ${String(settings.qualityPreset || 'high').toUpperCase()}`}
- />
- {/* AUTO adapts the effective tier to sustained frame pressure (#2592). */}
- <button
- type="button"
- aria-pressed={isAuto}
- onClick={() => setQuality('auto')}
- className={`w-full font-pixel text-[10px] min-h-[44px] mb-1.5 rounded border transition-all tracking-wide ${
- isAuto
- ? '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-400 hover:border-gray-600 hover:text-gray-300'
- }`}
- >
- AUTO {isAuto ? `· ${String(effectiveTier).toUpperCase()}` : ''}
- </button>
- <div className="grid grid-cols-4 gap-1.5" role="group" aria-label="Quality preset">
- {Object.keys(QUALITY_PRESETS).map(preset => (
- <button
- key={preset}
- type="button"
- aria-pressed={!isAuto && settings.qualityPreset === preset}
- onClick={() => setQuality(preset)}
- className={`font-pixel text-[10px] min-h-[44px] rounded border transition-all tracking-wide ${
- !isAuto && 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-400 hover:border-gray-600 hover:text-gray-300'
- }`}
- >
- {preset.toUpperCase()}
- </button>
- ))}
- </div>
- {/* Local-only diagnostics — never persisted or transmitted (#2592). */}
- {isAuto && (
- <div className="mt-2 px-2 py-1.5 rounded bg-black/40 border border-cyan-500/10 font-pixel text-[9px] text-gray-400 tracking-wide flex items-center justify-between">
- <span>TIER <span className="text-cyan-400/70">{String(effectiveTier).toUpperCase()}</span></span>
- <span>{fmt(diagnostics?.fps)} FPS</span>
- <span>P75 {fmt(diagnostics?.p75, 1)}ms</span>
- </div>
- )}
- </div>
- <SettingSlider
- id="city-particle-density"
- label="PARTICLE DENSITY"
- value={particleValue}
- onChange={(v) => updateSetting('particleDensity', v)}
- min={0.25}
- max={2}
- step={0.25}
- description={isAuto ? 'Set automatically by Auto quality' : 'Amount of floating particles in the scene'}
- disabled={isAuto}
- />
- </div>
- )}
-
{activeTab === 'audio' && (
<div className="space-y-5">
<div>
@@ -262,8 +205,6 @@ export default function OpenWorldSettingsDrawer({ open, onClose, qualityMode = '
onChange={(v) => updateSetting('musicVolume', v)}
description="Music playback volume"
/>
- {/* Manual mood override (#3395). AUTO is the empty-string option, mapped back to
- the `null` sentinel — distinct from a pinned mood, never conflated with one. */}
<SettingSelect
id="city-soundscape-override"
label="SOUNDSCAPE"
@@ -301,76 +242,50 @@ export default function OpenWorldSettingsDrawer({ open, onClose, qualityMode = '
{activeTab === 'visual' && (
<div className="space-y-5">
<div>
- <SectionHeader title="VISUAL FX" subtitle="Reflections and atmosphere" />
- <SettingToggle
- id="city-reflections"
- label="REFLECTIONS"
- value={reflectionsValue}
- onChange={(v) => updateSetting('reflectionsEnabled', v)}
- description={isAuto ? 'Set automatically by Auto quality' : 'Wet street reflections and puddles'}
- disabled={isAuto}
- />
- <SettingToggle
- id="city-scanlines"
- label="SCANLINES"
- value={settings.scanlineOverlay}
- onChange={(v) => updateSetting('scanlineOverlay', v)}
- description="CRT monitor scanline overlay"
- />
- </div>
- <div>
- <SectionHeader title="SCENE LIGHTING" subtitle="Brightness and time of day" />
- <SettingSlider
- id="city-ambient-brightness"
- label="AMBIENT BRIGHTNESS"
- value={settings.ambientBrightness}
- onChange={(v) => updateSetting('ambientBrightness', v)}
- min={0.5}
- max={2.5}
- step={0.1}
- format={(v) => `${v.toFixed(1)}x`}
- description="Overall scene ambient light level"
- />
- <SettingSlider
- id="city-neon-brightness"
- label="NEON BRIGHTNESS"
- value={settings.neonBrightness}
- onChange={(v) => updateSetting('neonBrightness', v)}
- min={0.5}
- max={2.5}
- step={0.1}
- format={(v) => `${v.toFixed(1)}x`}
- description="Brightness of neon lights and building glow"
- />
+ <SectionHeader title="WORLD" subtitle="Choose the world’s art direction" />
<SettingSegment
label="WORLD STYLE"
options={WORLD_STYLE_OPTIONS}
- value={resolveWorldStyle(settings.worldStyle)}
+ value={worldStyle}
onChange={(key) => updateSetting('worldStyle', key)}
- hint="OPEN WORLD IS THE BRIGHT LOW-POLY LOOK; CYBER CITY IS THE NEON NIGHT"
- />
- <SettingSegment
- label="TIME OF DAY"
- options={[
- { key: 'auto', label: 'AUTO' },
- { key: 'day', label: 'DAY' },
- { key: 'night', label: 'NIGHT' },
- ]}
- value={settings.timeOfDay}
- onChange={(key) => updateSetting('timeOfDay', key)}
- hint="AUTO FOLLOWS YOUR THEME (DAY / NIGHT)"
- isActive={(key) => (settings.timeOfDay === 'day' || settings.timeOfDay === 'night')
- ? settings.timeOfDay === key
- : key === 'auto'}
+ hint="OPEN WORLD IS BRIGHT AND LOW-POLY; CYBER CITY IS NEON AFTER DARK"
/>
</div>
+ <div>
+ <SectionHeader title="TIME" subtitle={isCyberCity ? 'Cyber City keeps its nocturnal identity' : 'Open World can follow your PortOS theme'} />
+ {isCyberCity ? (
+ <div className="rounded-xl border border-cyan-500/20 bg-cyan-500/[0.06] px-3 py-3">
+ <div className="font-mono text-[10px] font-semibold tracking-[0.14em] text-cyan-300">ALWAYS NIGHT</div>
+ <p className="mt-1 font-sans text-[11px] leading-5 text-gray-400">Neon materials and the moonlit sky are designed as one scene, so daylight is not offered in this style.</p>
+ </div>
+ ) : (
+ <SettingSegment
+ label="TIME OF DAY"
+ options={[
+ { key: 'auto', label: 'AUTO' },
+ { key: 'day', label: 'DAY' },
+ { key: 'night', label: 'NIGHT' },
+ ]}
+ value={settings.timeOfDay}
+ onChange={(key) => updateSetting('timeOfDay', key)}
+ hint="AUTO FOLLOWS YOUR PORTOS THEME"
+ isActive={(key) => (settings.timeOfDay === 'day' || settings.timeOfDay === 'night')
+ ? settings.timeOfDay === key
+ : key === 'auto'}
+ />
+ )}
+ </div>
+ <div className="rounded-xl border border-gray-700/35 bg-black/10 px-3 py-3">
+ <div className="font-sans text-[12px] text-gray-200">A focused visual language</div>
+ <p className="mt-1 font-sans text-[11px] leading-5 text-gray-500">The renderer now adapts detail automatically. The scene keeps its lighting, ground, and atmosphere coherent on every tier.</p>
+ </div>
</div>
)}
- {activeTab === 'explore' && (
+ {activeTab === 'controls' && (
<div className="space-y-5">
<div>
- <SectionHeader title="EXPLORATION" subtitle="Street-level rover mode" />
+ <SectionHeader title="PLAY MODE" subtitle="Switch between the map and street level" />
<SettingToggle
id="city-exploration-mode"
label="DROP IN MODE"
@@ -379,19 +294,35 @@ export default function OpenWorldSettingsDrawer({ open, onClose, qualityMode = '
description="Toggle street-level exploration (Tab)"
/>
<SettingSegment
+ label="CAMERA"
options={[
{ key: 'third', label: 'ROVER' },
{ key: 'first', label: 'FIRST PERSON' },
]}
value={settings.cameraView ?? 'third'}
onChange={(key) => updateSetting('cameraView', key)}
- hint="CAMERA WHILE DRIVING (V SWAPS IN-WORLD)"
+ hint="V SWITCHES CAMERA WHILE EXPLORING"
/>
</div>
+ <div>
+ <SectionHeader title="MOVEMENT" subtitle="Keyboard and mouse controls" />
+ <div className="rounded-xl border border-gray-700/35 bg-black/10 px-3">
+ <ControlRow keys={['W', 'A', 'S', 'D']} label="Move" hint="Arrow keys also work" />
+ <ControlRow keys={['SHIFT']} label="Boost" />
+ <ControlRow keys={['SPACE']} label="Jump" />
+ <ControlRow keys={['E', 'Q']} label="Fly up / down" hint="Free-fly vertical movement" />
+ <ControlRow keys={['F']} label="Interact" hint="Buildings and warp pads" />
+ <ControlRow keys={['R']} label="Respawn" hint="Return to your drop-in point" />
+ <ControlRow keys={['V']} label="Switch camera" />
+ <ControlRow keys={['TAB']} label="Drop in / fly out" />
+ <ControlRow keys={['M']} label="World map" />
+ <ControlRow keys={['DRAG']} label="Look around" hint="Click the scene to capture the mouse" />
+ </div>
+ </div>
<button
type="button"
onClick={resetSettings}
- className="w-full font-pixel text-[10px] min-h-[44px] rounded border border-port-error/30 text-port-error/70 hover:bg-port-error/10 hover:text-port-error transition-all tracking-wider"
+ className="w-full font-sans text-[12px] min-h-[44px] rounded border border-port-error/30 text-port-error/70 hover:bg-port-error/10 hover:text-port-error transition-all tracking-wider"
>
RESET DEFAULTS
</button>
diff --git a/client/src/components/openworld/OpenWorldSettingsDrawer.test.jsx b/client/src/components/openworld/OpenWorldSettingsDrawer.test.jsx
index 9849d924b3..22c0455d2c 100644
--- a/client/src/components/openworld/OpenWorldSettingsDrawer.test.jsx
+++ b/client/src/components/openworld/OpenWorldSettingsDrawer.test.jsx
@@ -20,49 +20,36 @@ const renderDrawer = (search = '', onClose = () => {}) =>
);
describe('OpenWorldSettingsDrawer', () => {
- it('renders the shared Drawer with the four grouped tabs', () => {
+ it('renders the shared Drawer with focused player-choice tabs', () => {
renderDrawer();
expect(screen.getByRole('dialog', { name: 'OpenWorld Settings' })).toBeInTheDocument();
- ['Performance', 'Audio', 'Visual', 'Explore'].forEach(label => {
+ ['Audio', 'Visual', 'Controls'].forEach(label => {
expect(screen.getByRole('tab', { name: label })).toBeInTheDocument();
});
// Default tab content.
- expect(screen.getByText('QUALITY')).toBeInTheDocument();
+ expect(screen.getByText('MUSIC')).toBeInTheDocument();
});
it('switches tabs and persists the active tab in the URL', () => {
renderDrawer();
- fireEvent.click(screen.getByRole('tab', { name: 'Audio' }));
- expect(screen.getByText('MUSIC')).toBeInTheDocument();
- expect(screen.queryByText('QUALITY')).not.toBeInTheDocument();
- expect(screen.getByTestId('loc').textContent).toContain('openWorldTab=audio');
+ fireEvent.click(screen.getByRole('tab', { name: 'Controls' }));
+ expect(screen.getByText('MOVEMENT')).toBeInTheDocument();
+ expect(screen.queryByText('MUSIC')).not.toBeInTheDocument();
+ expect(screen.getByTestId('loc').textContent).toContain('openWorldTab=controls');
});
- it('shows the Auto effective-tier label and local diagnostics when in Auto mode', () => {
- render(
- <MemoryRouter initialEntries={['/openworld/settings']}>
- <OpenWorldSettingsProvider>
- <OpenWorldSettingsDrawer
- open
- onClose={() => {}}
- qualityMode="auto"
- effectiveTier="medium"
- diagnostics={{ fps: 58, p75: 16.2 }}
- />
- </OpenWorldSettingsProvider>
- </MemoryRouter>,
- );
- // AUTO button reflects the effective tier, and the local diagnostics readout renders.
- expect(screen.getByRole('button', { name: /AUTO · MEDIUM/ })).toHaveAttribute('aria-pressed', 'true');
- expect(screen.getByText('58 FPS')).toBeInTheDocument();
- expect(screen.getByText('P75 16.2ms')).toBeInTheDocument();
- // The Auto-controlled particle-density slider is disabled.
- expect(screen.getByLabelText('PARTICLE DENSITY')).toBeDisabled();
+ it('shows the actual exploration controls without legacy renderer knobs', () => {
+ renderDrawer('?openWorldTab=controls');
+ expect(screen.getByText('MOVEMENT')).toBeInTheDocument();
+ expect(screen.getByText('Drop in / fly out')).toBeInTheDocument();
+ expect(screen.getByText('SPACE')).toBeInTheDocument();
+ expect(screen.queryByText('QUALITY')).not.toBeInTheDocument();
+ expect(screen.queryByText('PARTICLE DENSITY')).not.toBeInTheDocument();
});
it('deep-links the active tab from the URL param', () => {
renderDrawer('?openWorldTab=visual');
- expect(screen.getByText('VISUAL FX')).toBeInTheDocument();
+ expect(screen.getByText('WORLD')).toBeInTheDocument();
expect(screen.getByRole('tab', { name: 'Visual', selected: true })).toBeInTheDocument();
});
diff --git a/client/src/components/openworld/OpenWorldSignalBeacons.jsx b/client/src/components/openworld/OpenWorldSignalBeacons.jsx
index 2fa328b666..231d711feb 100644
--- a/client/src/components/openworld/OpenWorldSignalBeacons.jsx
+++ b/client/src/components/openworld/OpenWorldSignalBeacons.jsx
@@ -6,6 +6,7 @@ import { listRegions, regionWarpPadPosition } from '../../utils/openWorldRegions
import { PIXEL_FONT_URL, openWorldDayMix, openWorldShowDetail, mixHex } from './openWorldConstants';
import { useOpenWorldPalette } from './OpenWorldPaletteContext';
import OpenWorldLabel from './OpenWorldLabel';
+import { PlantCluster } from './OpenWorldNature';
function SignalBeacon({ position, color, label, sublabel, intensity = 1, dayMix = 0 }) {
const { tintStructure } = useOpenWorldPalette();
@@ -88,6 +89,7 @@ function WarpPad({ region, active, detailed, dayMix, onTravel }) {
const color = active ? '#fff4d6' : accent;
const padRadius = active ? 1.8 : 1.55;
const ringRadius = active ? 1.2 : 1.02;
+ const gardenScale = detailed ? 0.66 : 0.38;
const position = regionWarpPadPosition(region);
useFrame(({ clock }) => {
@@ -144,6 +146,27 @@ function WarpPad({ region, active, detailed, dayMix, onTravel }) {
<meshBasicMaterial color={color} transparent opacity={0.1} blending={THREE.AdditiveBlending} depthWrite={false} side={THREE.DoubleSide} />
</mesh>
)}
+ {/* These small planting beds frame the warp pad so the destination reads as a
+ place to use, not a random glowing disc dropped onto the lawn. They are detail-tier
+ dressing; the pad and label remain available on the low tier as the wayfinding cue. */}
+ {detailed && (
+ <group>
+ <PlantCluster
+ position={[padRadius + 0.9, 0, 0.18]}
+ scale={gardenScale}
+ variant={region.id.length % 3}
+ dayMix={dayMix}
+ container
+ />
+ <PlantCluster
+ position={[-padRadius - 0.9, 0, 0.18]}
+ scale={gardenScale}
+ variant={(region.id.length + 1) % 3}
+ dayMix={dayMix}
+ container
+ />
+ </group>
+ )}
<OpenWorldLabel
position={[0, detailed ? 6.45 : 2, 0]}
fontSize={detailed ? 0.3 : 0.22}
diff --git a/client/src/components/openworld/OpenWorldStreetProps.jsx b/client/src/components/openworld/OpenWorldStreetProps.jsx
index b5bb2252b4..6821acb504 100644
--- a/client/src/components/openworld/OpenWorldStreetProps.jsx
+++ b/client/src/components/openworld/OpenWorldStreetProps.jsx
@@ -5,10 +5,11 @@ import { useOpenWorldPalette } from './OpenWorldPaletteContext';
import { computeStreets, computeStreetProps } from '../../utils/openWorldPlan';
// Street furniture from the master plan: lamp posts pooling light along every street and
-// holo-trees ringing the AI Core plaza. Everything is instanced — five draw calls cover
+// planting trees ringing the AI Core plaza. Everything is instanced — five draw calls cover
// the whole town regardless of lamp count. Lamp light pools are faked with emissive heads
// + additive ground discs (the city's established no-real-point-lights pattern).
-// Quality-gated: the low preset renders streets only (this component returns null).
+// Adaptive-quality gated: lamps and their light pools are detail-only, while the plaza grove
+// remains at every tier because it is part of the city's navigation and sense of place.
const dummy = new THREE.Object3D();
@@ -18,7 +19,8 @@ const POLE_POS = [0, 1.7, 0];
const HEAD_POS = [0, 3.45, 0];
const POOL_POS = [0, 0.035, 0];
const TRUNK_POS = [0, 0.55, 0];
-const CANOPY_POS = [0, 1.9, 0];
+const CANOPY_POS = [0, 1.55, 0];
+const CANOPY_TOP_POS = [0, 2.12, 0, 0.72];
// One instanced mesh whose matrices are written once from `placements`. `flat` lays the
// geometry into the ground plane (used by the light-pool discs).
@@ -26,10 +28,11 @@ function Instances({ placements, geometry, geometryArgs, position, flat = false,
const ref = useRef();
useLayoutEffect(() => {
if (!ref.current) return;
+ const scaleMultiplier = position[3] ?? 1;
placements.forEach((p, i) => {
dummy.position.set(p.x + position[0], position[1], p.z + position[2]);
dummy.rotation.set(flat ? -Math.PI / 2 : 0, !flat && p.seed != null ? (p.seed * 1.7) % (Math.PI * 2) : 0, 0);
- dummy.scale.setScalar(p.scale ?? 1);
+ dummy.scale.setScalar((p.scale ?? 1) * scaleMultiplier);
dummy.updateMatrix();
ref.current.setMatrixAt(i, dummy.matrix);
});
@@ -57,8 +60,10 @@ export default function OpenWorldStreetProps({ settings }) {
return computeStreetProps(streets, density);
}, [density]);
- // Low preset: streets only, no furniture.
- if (!openWorldShowDetail(settings) || (props.lamps.length === 0 && props.trees.length === 0)) return null;
+ // Keep the plaza grove even on the low tier: it is cheap, anchors the center of the map,
+ // and gives the bright world a sense of scale. Lamps and their additive pools remain detail-only.
+ const showLamps = openWorldShowDetail(settings);
+ if (!showLamps && props.trees.length === 0) return null;
const lampGlow = mixHex(accent, '#ffe2a6', 0.58);
const headOpacity = 0.95 * (1 - dayMix) + 0.4 * dayMix; // lamps rest by day
@@ -70,35 +75,47 @@ export default function OpenWorldStreetProps({ settings }) {
return (
<group>
- {/* Lamp poles */}
- <Instances placements={props.lamps} geometry="cylinder" geometryArgs={[0.05, 0.08, 3.4, 6]} position={POLE_POS}>
- <meshStandardMaterial {...surface} color={structureColor} roughness={0.7} metalness={lowPoly ? 0 : 0.45} />
- </Instances>
- {/* Lamp heads — emissive spheres standing in for point lights */}
- <Instances placements={props.lamps} geometry="sphere" geometryArgs={[0.16, 10, 10]} position={HEAD_POS}>
- <meshBasicMaterial color={lampGlow} transparent opacity={headOpacity} toneMapped={false} />
- </Instances>
- {/* Faked light pools on the pavement */}
- {poolOpacity > 0.005 && (
- <Instances placements={props.lamps} geometry="circle" geometryArgs={[1.7, 16]} position={POOL_POS} flat>
- <meshBasicMaterial
- color={lampGlow}
- transparent
- opacity={poolOpacity}
- blending={THREE.AdditiveBlending}
- depthWrite={false}
- />
- </Instances>
+ {showLamps && (
+ <>
+ {/* Lamp poles */}
+ <Instances placements={props.lamps} geometry="cylinder" geometryArgs={[0.05, 0.08, 3.4, 6]} position={POLE_POS}>
+ <meshStandardMaterial {...surface} color={structureColor} roughness={0.7} metalness={lowPoly ? 0 : 0.45} />
+ </Instances>
+ {/* Lamp heads — emissive spheres standing in for point lights */}
+ <Instances placements={props.lamps} geometry="sphere" geometryArgs={[0.16, 10, 10]} position={HEAD_POS}>
+ <meshBasicMaterial color={lampGlow} transparent opacity={headOpacity} toneMapped={false} />
+ </Instances>
+ {/* Faked light pools on the pavement */}
+ {poolOpacity > 0.005 && (
+ <Instances placements={props.lamps} geometry="circle" geometryArgs={[1.7, 16]} position={POOL_POS} flat>
+ <meshBasicMaterial
+ color={lampGlow}
+ transparent
+ opacity={poolOpacity}
+ blending={THREE.AdditiveBlending}
+ depthWrite={false}
+ />
+ </Instances>
+ )}
+ </>
)}
- {/* Holo-tree trunks around the plaza */}
+ {/* Tree trunks around the plaza */}
<Instances placements={props.trees} geometry="cylinder" geometryArgs={[0.07, 0.1, 1.1, 5]} position={TRUNK_POS}>
<meshStandardMaterial {...surface} color={structureColor} roughness={0.8} />
</Instances>
- {/* Vibes uses solid faceted foliage; cyber keeps the established wireframe holo-trees. */}
- <Instances placements={props.trees} geometry="icosahedron" geometryArgs={[0.8, 1]} position={CANOPY_POS}>
- {lowPoly ? (
- <meshStandardMaterial {...surface} color={foliageColor} roughness={0.98} transparent opacity={0.94} />
- ) : (
+ {/* Vibes uses two broad faceted leaf layers so the grove reads as trees rather than
+ floating gems; Cyber keeps the established wireframe treatment. */}
+ {lowPoly ? (
+ <>
+ <Instances placements={props.trees} geometry="sphere" geometryArgs={[0.9, 8, 5]} position={CANOPY_POS}>
+ <meshStandardMaterial {...surface} color={foliageColor} roughness={0.98} />
+ </Instances>
+ <Instances placements={props.trees} geometry="sphere" geometryArgs={[0.68, 8, 5]} position={CANOPY_TOP_POS}>
+ <meshStandardMaterial {...surface} color={mixHex(foliageColor, '#d5e7a4', 0.28)} roughness={0.98} />
+ </Instances>
+ </>
+ ) : (
+ <Instances placements={props.trees} geometry="icosahedron" geometryArgs={[0.8, 1]} position={CANOPY_POS}>
<meshBasicMaterial
color={mixHex(accent, '#22c55e', 0.45)}
wireframe
@@ -106,8 +123,8 @@ export default function OpenWorldStreetProps({ settings }) {
opacity={0.5 * (1 - dayMix) + 0.3 * dayMix}
toneMapped={false}
/>
- )}
- </Instances>
+ </Instances>
+ )}
</group>
);
}
diff --git a/client/src/components/openworld/PlayerController.jsx b/client/src/components/openworld/PlayerController.jsx
index 1a36502b89..2d10b369ab 100644
--- a/client/src/components/openworld/PlayerController.jsx
+++ b/client/src/components/openworld/PlayerController.jsx
@@ -54,6 +54,7 @@ export default function PlayerController({
teleport = null,
warpPads = [],
onWarpPadInteract,
+ onWarpPadProximity,
mobileInputRef = null,
playerActionRef = null,
}) {
@@ -414,7 +415,10 @@ export default function PlayerController({
nearestWarpPad = region;
}
}
- proximityWarpPadRef.current = nearestWarpPad;
+ if (nearestWarpPad !== proximityWarpPadRef.current) {
+ proximityWarpPadRef.current = nearestWarpPad;
+ onWarpPadProximity?.(nearestWarpPad);
+ }
// Camera application. While CameraTransition flies the camera (exploration toggle),
// it is the sole camera writer — explicit gate instead of relying on mount order.
diff --git a/client/src/components/openworld/WorldGround.jsx b/client/src/components/openworld/WorldGround.jsx
index e9a3058633..74a6298f6b 100644
--- a/client/src/components/openworld/WorldGround.jsx
+++ b/client/src/components/openworld/WorldGround.jsx
@@ -66,7 +66,12 @@ function RollingFog({ dayMix = 0 }) {
export default function WorldGround({ settings }) {
const { ground, neonAccents, lowPoly } = useOpenWorldPalette();
- const reflectionsEnabled = settings?.reflectionsEnabled ?? true;
+ // Wet-night dressing is now an art-direction/performance decision, not a user-facing
+ // toggle. The ground itself must always render: the old REFLECTIONS setting accidentally
+ // removed the base plane on low quality, leaving only the debug-like grid underneath the
+ // player. Vibes stays clean and matte; Cyber City keeps a small wet-night layer above the
+ // always-present pavement.
+ const wetEffectsEnabled = !lowPoly && settings?.effectiveTier !== 'low';
const groundMatRef = useRef();
const timeOfDay = settings?.timeOfDay ?? 'sunset';
@@ -105,7 +110,7 @@ export default function WorldGround({ settings }) {
const result = [];
const rand = seededRand(137);
const colors = neonAccents;
- const count = reflectionsEnabled ? 40 : 20;
+ const count = wetEffectsEnabled ? 40 : 0;
for (let i = 0; i < count; i++) {
result.push({
@@ -116,23 +121,22 @@ export default function WorldGround({ settings }) {
});
}
return result;
- }, [reflectionsEnabled, neonAccents]);
+ }, [wetEffectsEnabled, neonAccents]);
return (
<group>
- {/* Reflective dark ground plane */}
- {reflectionsEnabled && (
- <mesh rotation={[-Math.PI / 2, 0, 0]} position={[0, WORLD.groundY, GROUND_CENTER_Z]}>
- <planeGeometry args={[GROUND_HALF * 2, GROUND_DEPTH]} />
- <meshStandardMaterial
- ref={groundMatRef}
- color={preset.groundColor ?? '#0a0a20'}
- metalness={targetMetalness}
- roughness={0.7}
- side={THREE.DoubleSide}
- />
- </mesh>
- )}
+ {/* Always-present ground plane. Surface finish follows the active world style and
+ preset; it is never removed by a quality choice. */}
+ <mesh rotation={[-Math.PI / 2, 0, 0]} position={[0, WORLD.groundY, GROUND_CENTER_Z]}>
+ <planeGeometry args={[GROUND_HALF * 2, GROUND_DEPTH]} />
+ <meshStandardMaterial
+ ref={groundMatRef}
+ color={preset.groundColor ?? '#0a0a20'}
+ metalness={targetMetalness}
+ roughness={0.7}
+ side={THREE.DoubleSide}
+ />
+ </mesh>
<Grid
args={[GROUND_HALF * 2, GROUND_DEPTH]}
@@ -167,7 +171,7 @@ export default function WorldGround({ settings }) {
)}
{/* Rolling fog layer at street level */}
- {reflectionsEnabled && <RollingFog dayMix={dayMix} />}
+ {wetEffectsEnabled && <RollingFog dayMix={dayMix} />}
</group>
);
}
diff --git a/client/src/components/openworld/openWorldConstants.js b/client/src/components/openworld/openWorldConstants.js
index 460883fa54..e8a82a2d8c 100644
--- a/client/src/components/openworld/openWorldConstants.js
+++ b/client/src/components/openworld/openWorldConstants.js
@@ -268,8 +268,8 @@ export const openWorldDayMix = (settings) => {
};
// Explicit tier rank for the detail gates below. `settings.effectiveTier` is the
-// runtime tier (Auto mode's adaptive tier, or the Manual preset) — a first-class
-// signal that replaces the old `particleDensity`-as-quality-proxy (issue #2592).
+// runtime tier selected by the adaptive render budget — a first-class signal that
+// replaces the old `particleDensity`-as-quality-proxy (issue #2592).
// When it's absent (older payloads, tests, or code that never set it) we fall back
// to the legacy particleDensity thresholds so behavior is unchanged.
const DETAIL_TIER_RANK = { low: 0, medium: 1, high: 2, ultra: 3 };
@@ -293,8 +293,8 @@ export const openWorldShowInteriorWindows = (settings) => (
);
// Drei <Text> props for an informational in-world label that stays legible in both
-// the night-neon scene AND the bright daytime scene. At night (dayMix→0) the label
-// keeps its neon fill with no outline, so the established look is untouched. As day
+// the night-neon scene AND the bright daytime scene. At night (dayMix→0) the label keeps
+// its neon fill with a hairline dark keyline so it survives the bright grid and props. As day
// ramps up (dayMix→1) the fill lerps toward a dark ink — readable against the bright
// sky and sunlit mid-tone facades where a glowing neon fill just washes out — and a
// light outline halo fades in to lift the glyphs off whatever's behind them. The ink
@@ -307,11 +307,11 @@ export const openWorldLabelColors = (neonColor, dayMix = 0) => {
const darkInk = mixHex('#0d1422', neonColor, 0.22);
return {
color: mixHex(neonColor, darkInk, d),
- outlineColor: '#eef4ff',
- // Percentage strings are relative to fontSize, so the halo scales with each label.
- // At night d=0 → "0.00%", which drei treats as a zero-width (i.e. no) outline.
- outlineWidth: `${(d * 9).toFixed(2)}%`,
- outlineOpacity: d * 0.85,
+ outlineColor: d > 0 ? '#eef4ff' : '#020817',
+ // Percentage strings are relative to fontSize, so the keyline scales with each label.
+ // The tiny night keyline is intentionally subdued; daylight gets the stronger halo.
+ outlineWidth: `${(0.9 + d * 10.1).toFixed(2)}%`,
+ outlineOpacity: 0.45 + d * 0.37,
};
};
@@ -430,9 +430,6 @@ export const seededRand = (seed) => {
// stars, data rain, embers, volumetric light cones, neon signage) mount at
// all. Over a sunlit low-poly landscape they read as haze and grain, so they
// are gated out rather than faded per-frame.
-// - themeCrt whether the CRT overlay is opted in per theme family (deriveCrtProfile) or
-// simply off — a scanline multiply over a sunlit landscape reads as a dirty
-// screen, whatever the theme.
// - accents the decorative spread for windows/props. The lead slot is always replaced
// by the live theme accent, so the world follows the UI in either style.
// - buildingBody the structural body color, re-tinted toward the theme accent.
@@ -447,7 +444,6 @@ export const WORLD_STYLE_DEFS = {
presets: { day: 'vibesDay', night: 'vibesDusk' },
lowPoly: true,
neonLayers: false,
- themeCrt: false,
// Warm sand / coral / teal / sage / amber instead of the cyberpunk neon set, so the
// bright low-poly world doesn't wear night-club colors.
accents: ['#63f2db', '#f07f6d', '#d7b98c', '#9873b9', '#f3b562', '#57c9c0', '#8c7169', '#dde4df'],
@@ -462,7 +458,6 @@ export const WORLD_STYLE_DEFS = {
presets: { day: 'noon', night: 'sunset' },
lowPoly: false,
neonLayers: true,
- themeCrt: true,
accents: CITY_COLORS.neonAccents,
buildingBody: ORIGINAL_BUILDING_BODY,
terrain: { inner: '#686d68', meadow: '#6f8758', ridge: '#8d937f' },
@@ -484,29 +479,22 @@ export const getWorldStyle = (style) => WORLD_STYLE_DEFS[resolveWorldStyle(style
// OpenWorld renders just two times of day — day and night — and follows the active
// theme's mode by default ('auto'). The user can still force 'day'/'night'. Legacy
// stored values (sunrise/noon/sunset/midnight) are treated as 'auto' so existing
-// installs pick up theme coupling without a migration. Returns the daytime flag plus
-// the concrete preset key the sky/lights/ground consume, taken from the world style's
-// own pair — so picking 'cyber' restores the established noon/moonlit-night look exactly.
+// installs pick up theme coupling without a migration. Open World uses its selected
+// preset pair; Cyber City is intentionally locked to its moonlit-night preset because
+// its neon materials are authored for darkness.
export const resolveOpenWorldTimeOfDay = (setting, themeIsDay, worldStyle) => {
+ const style = getWorldStyle(worldStyle);
+ // Cyber City is an explicitly nocturnal art direction. Keeping that invariant here means
+ // a theme switch, an old stored time-of-day value, and the settings drawer can never put
+ // its neon materials under a daylight preset.
+ if (style.id === 'cyber') return { daytime: false, presetKey: style.presets.night };
+
const daytime = setting === 'day' ? true
: setting === 'night' ? false
: !!themeIsDay;
- const { presets } = getWorldStyle(worldStyle);
- return { daytime, presetKey: daytime ? presets.day : presets.night };
+ return { daytime, presetKey: daytime ? style.presets.day : style.presets.night };
};
-// The CRT overlay (scanlines / neon edge-glow / vignette in OpenWorldScanlines) is a
-// cyber-terminal affectation, not a universal effect — so each piece is opted in
-// per theme family. Scanlines are the most style-specific (terminal only); the
-// neon edge glow suits the cyber-leaning families (terminal + the classic
-// cyberpunk default); the cinematic vignette applies everywhere except the clean
-// "glass" family. Glow color itself is themed via the live --port-accent var.
-const deriveCrtProfile = (family) => ({
- scanlines: family === 'terminal',
- glow: family === 'terminal' || family === 'classic',
- vignette: family !== 'glass',
-});
-
// Derive the OpenWorld palette from a PortOS theme object (a THEMES entry) and the
// active world style. Pure. The style swaps the decorative/structural brand surfaces
// (nothing semantic): status colors stay semantic in both worlds.
@@ -564,9 +552,6 @@ export const deriveOpenWorldPalette = (theme, worldStyle) => {
dayBackground,
// Default surround by theme mode — used for the loading screen before settings resolve.
background: isDay ? dayBackground : nightBackground,
- crt: style.themeCrt
- ? deriveCrtProfile(theme?.family)
- : { scanlines: false, glow: false, vignette: false },
// Brand surfaces the 3D scene reads via useOpenWorldPalette() instead of the old
// mutated singleton. `ground`/`particles` are the accent; `building`/`buildingBody`/
// `neonAccents` carry the themed maps.
diff --git a/client/src/components/openworld/openWorldTheme.test.js b/client/src/components/openworld/openWorldTheme.test.js
index dfa72ef934..44f3e2c72b 100644
--- a/client/src/components/openworld/openWorldTheme.test.js
+++ b/client/src/components/openworld/openWorldTheme.test.js
@@ -46,17 +46,18 @@ describe('deriveOpenWorldPalette', () => {
expect(p.background).toBe('#011215'); // night theme default -> #06b6d4 * 0.1
});
- it('resolves time of day, following theme mode for auto/legacy and honoring explicit overrides', () => {
- // auto follows the theme mode
- expect(resolveOpenWorldTimeOfDay('auto', true, 'cyber')).toEqual({ daytime: true, presetKey: 'noon' });
- expect(resolveOpenWorldTimeOfDay('auto', false, 'cyber')).toEqual({ daytime: false, presetKey: 'sunset' });
- expect(resolveOpenWorldTimeOfDay(undefined, true, 'cyber')).toEqual({ daytime: true, presetKey: 'noon' });
- // legacy stored presets are treated as auto (follow the theme)
- expect(resolveOpenWorldTimeOfDay('sunset', true, 'cyber')).toEqual({ daytime: true, presetKey: 'noon' });
- expect(resolveOpenWorldTimeOfDay('midnight', true, 'cyber')).toEqual({ daytime: true, presetKey: 'noon' });
- // explicit overrides win regardless of theme mode
- expect(resolveOpenWorldTimeOfDay('day', false, 'cyber')).toEqual({ daytime: true, presetKey: 'noon' });
- expect(resolveOpenWorldTimeOfDay('night', true, 'cyber')).toEqual({ daytime: false, presetKey: 'sunset' });
+ it('keeps Cyber City nocturnal regardless of theme or legacy time settings', () => {
+ for (const setting of ['auto', undefined, 'sunrise', 'noon', 'sunset', 'midnight', 'day', 'night']) {
+ expect(resolveOpenWorldTimeOfDay(setting, true, 'cyber')).toEqual({ daytime: false, presetKey: 'sunset' });
+ expect(resolveOpenWorldTimeOfDay(setting, false, 'cyber')).toEqual({ daytime: false, presetKey: 'sunset' });
+ }
+ });
+
+ it('follows the selected day/night mode for Open World', () => {
+ expect(resolveOpenWorldTimeOfDay('auto', true, 'vibes')).toEqual({ daytime: true, presetKey: 'vibesDay' });
+ expect(resolveOpenWorldTimeOfDay('auto', false, 'vibes')).toEqual({ daytime: false, presetKey: 'vibesDusk' });
+ expect(resolveOpenWorldTimeOfDay('day', false, 'vibes')).toEqual({ daytime: true, presetKey: 'vibesDay' });
+ expect(resolveOpenWorldTimeOfDay('night', true, 'vibes')).toEqual({ daytime: false, presetKey: 'vibesDusk' });
});
it('picks the Vibes preset pair by default, and for any unrecognized style', () => {
@@ -103,29 +104,6 @@ describe('deriveOpenWorldPalette', () => {
}
});
- it('opts CRT effects in per theme family under the cyber style', () => {
- // terminal (Phosphor) — full CRT
- expect(deriveOpenWorldPalette(getTheme('black-ice-terminal-day'), 'cyber').crt)
- .toEqual({ scanlines: true, glow: true, vignette: true });
- // classic — cyber glow + vignette, but no scanlines
- expect(deriveOpenWorldPalette(getTheme('classic-midnight'), 'cyber').crt)
- .toEqual({ scanlines: false, glow: true, vignette: true });
- // blueprint — vignette only
- expect(deriveOpenWorldPalette(getTheme('blueprint-ops'), 'cyber').crt)
- .toEqual({ scanlines: false, glow: false, vignette: true });
- // glass — fully clean, no CRT
- expect(deriveOpenWorldPalette(getTheme('lumen-glass'), 'cyber').crt)
- .toEqual({ scanlines: false, glow: false, vignette: false });
- });
-
- it('turns the CRT overlay off entirely in the Vibes world, whatever the theme family', () => {
- // Scanlines/glow/vignette are cyber-terminal affectations; over a sunlit low-poly
- // landscape they read as a dirty screen, so no theme family opts them back in.
- for (const id of ['black-ice-terminal-day', 'classic-midnight', 'blueprint-ops', 'lumen-glass']) {
- expect(deriveOpenWorldPalette(getTheme(id), 'vibes').crt)
- .toEqual({ scanlines: false, glow: false, vignette: false });
- }
- });
});
describe('city sky visibility', () => {
@@ -149,11 +127,12 @@ describe('city sky visibility', () => {
});
describe('openWorldLabelColors', () => {
- it('keeps the neon fill and adds no outline at night (dayMix 0)', () => {
+ it('keeps the neon fill with a hairline keyline at night (dayMix 0)', () => {
const c = openWorldLabelColors('#06b6d4', 0);
expect(c.color).toBe('#06b6d4'); // untouched neon
- expect(c.outlineWidth).toBe('0.00%'); // drei reads a 0% outline as none
- expect(c.outlineOpacity).toBe(0);
+ expect(c.outlineColor).toBe('#020817');
+ expect(c.outlineWidth).toBe('0.90%');
+ expect(c.outlineOpacity).toBeCloseTo(0.45);
});
it('darkens the fill toward ink and fades in a light outline by day (dayMix 1)', () => {
@@ -164,13 +143,13 @@ describe('openWorldLabelColors', () => {
const lum = parseInt(c.color.slice(1, 3), 16) + parseInt(c.color.slice(3, 5), 16) + parseInt(c.color.slice(5, 7), 16);
expect(lum).toBeLessThan(180); // dark ink (~140), far below the neon's ~400
expect(c.outlineColor).toBe('#eef4ff');
- expect(c.outlineWidth).toBe('9.00%');
- expect(c.outlineOpacity).toBeCloseTo(0.85);
+ expect(c.outlineWidth).toBe('11.00%');
+ expect(c.outlineOpacity).toBeCloseTo(0.82);
});
it('clamps out-of-range / missing dayMix', () => {
- expect(openWorldLabelColors('#06b6d4', 2).outlineOpacity).toBeCloseTo(0.85);
- expect(openWorldLabelColors('#06b6d4', -1).outlineWidth).toBe('0.00%');
+ expect(openWorldLabelColors('#06b6d4', 2).outlineOpacity).toBeCloseTo(0.82);
+ expect(openWorldLabelColors('#06b6d4', -1).outlineWidth).toBe('0.90%');
expect(openWorldLabelColors('#06b6d4').color).toBe('#06b6d4'); // undefined → night
});
});
@@ -373,9 +352,9 @@ describe('openWorldDayMix', () => {
});
});
-describe('quality-preset gates', () => {
- // Preset densities: low 0.5, medium 0.75, high 1.0, ultra 1.5.
- it('openWorldShowDetail turns on above the low preset', () => {
+describe('adaptive render-tier gates', () => {
+ // Internal tier densities: low 0.5, medium 0.75, high 1.0, ultra 1.5.
+ it('openWorldShowDetail turns on above the low tier', () => {
expect(openWorldShowDetail({ particleDensity: 0.5 })).toBe(false);
expect(openWorldShowDetail({ particleDensity: 0.75 })).toBe(true);
expect(openWorldShowDetail(undefined)).toBe(true); // defaults to 1
@@ -440,7 +419,6 @@ describe('resolveWorldStyle / getWorldStyle', () => {
expect(CITY_COLORS.timeOfDay[def.presets.night]).toBeDefined();
expect(typeof def.lowPoly).toBe('boolean');
expect(typeof def.neonLayers).toBe('boolean');
- expect(typeof def.themeCrt).toBe('boolean');
expect(def.accents.length).toBeGreaterThan(1);
expect(def.buildingBody).toMatch(/^#[0-9a-f]{6}$/i);
for (const band of ['inner', 'meadow', 'ridge']) {
diff --git a/client/src/hooks/useOpenWorldSettings.js b/client/src/hooks/useOpenWorldSettings.js
index 36df08dc0b..925fdeea53 100644
--- a/client/src/hooks/useOpenWorldSettings.js
+++ b/client/src/hooks/useOpenWorldSettings.js
@@ -6,37 +6,6 @@ import { safeReadStorage, safeWriteStorage, safeRemoveStorage } from '../lib/saf
export const STORAGE_KEY = 'portos-city-settings';
export const TIME_OF_DAY_AUTO_EVENT = 'portos-city-timeofday-auto';
-const QUALITY_PRESETS = {
- low: {
- reflectionsEnabled: false,
- particleDensity: 0.5, scanlineOverlay: false,
- ambientBrightness: 1.0,
- neonBrightness: 1.0,
- dpr: [1, 1],
- },
- medium: {
- reflectionsEnabled: true,
- particleDensity: 0.75, scanlineOverlay: true,
- ambientBrightness: 1.0,
- neonBrightness: 1.0,
- dpr: [1, 1.25],
- },
- high: {
- reflectionsEnabled: true,
- particleDensity: 1.0, scanlineOverlay: true,
- ambientBrightness: 1.2,
- neonBrightness: 1.2,
- dpr: [1, 1.25],
- },
- ultra: {
- reflectionsEnabled: true,
- particleDensity: 1.5, scanlineOverlay: true,
- ambientBrightness: 1.5,
- neonBrightness: 1.5,
- dpr: [1, 1.5],
- },
-};
-
const DEFAULT_SETTINGS = {
musicEnabled: false,
musicVolume: 0.3,
@@ -45,10 +14,6 @@ const DEFAULT_SETTINGS = {
// Manual soundscape override (issue #3395). `null` is the explicit "auto" sentinel: the music's
// mood follows live system state. A mood name from SOUNDSCAPE_MOODS pins it instead.
soundscapeOverride: null,
- // Auto quality (issue #2592): new installs adapt at runtime, always beginning at High
- // (see OpenWorld's autoStartTier). `qualityPreset` names the *Manual* preset only.
- qualityMode: 'auto', // 'auto' = adaptive render budget; 'manual' = fixed preset
- qualityPreset: 'high',
timeOfDay: 'auto', // 'auto' follows the active theme's day/night mode; 'day'/'night' force it
// Art direction: 'vibes' is the low-poly bright open world (default); 'cyber' restores
// the original neon-night OpenWorld look. Existing installs have no stored value and so
@@ -59,9 +24,21 @@ const DEFAULT_SETTINGS = {
// HUD control) to pull back to the planning view, while V / settings can switch to first person.
explorationMode: true,
cameraView: 'third', // the rover is the default actor; first person remains an explicit option
- ...QUALITY_PRESETS.high,
};
+// Old releases persisted renderer controls alongside player choices. They are intentionally
+// ignored on read so a saved payload cannot resurrect removed settings in the live state.
+const LEGACY_RENDER_KEYS = new Set([
+ 'qualityMode',
+ 'qualityPreset',
+ 'reflectionsEnabled',
+ 'particleDensity',
+ 'scanlineOverlay',
+ 'ambientBrightness',
+ 'neonBrightness',
+ 'dpr',
+]);
+
const loadSettings = () => {
const saved = safeReadStorage(STORAGE_KEY);
if (!saved) return DEFAULT_SETTINGS;
@@ -72,24 +49,17 @@ const loadSettings = () => {
return DEFAULT_SETTINGS; // Corrupt stored JSON — fall back to defaults.
}
if (!parsed || typeof parsed !== 'object') return DEFAULT_SETTINGS;
- const merged = { ...DEFAULT_SETTINGS, ...parsed };
- // Migration: an existing payload predating Auto mode has no `qualityMode` key.
- // Such installs keep their chosen fixed preset — Manual — rather than being
- // silently opted into adaptation. Presence of the key (even 'auto') is honored;
- // this is the "absent vs. present" distinction, so a stored 'auto' survives.
- if (!Object.hasOwn(parsed, 'qualityMode')) {
- merged.qualityMode = 'manual';
- }
- return merged;
+ const persistedChoices = Object.fromEntries(
+ Object.entries(parsed).filter(([key]) => !LEGACY_RENDER_KEYS.has(key)),
+ );
+ return { ...DEFAULT_SETTINGS, ...persistedChoices };
};
-export { QUALITY_PRESETS };
-
export default function useOpenWorldSettings() {
const [settings, setSettings] = useState(loadSettings);
// Monotonic counter bumped on every reset. The runtime render budget (Auto mode) lives
- // outside `settings`, so a "RESET DEFAULTS" that leaves qualityMode/preset unchanged
- // would otherwise not re-arm it — consumers watch this token to reset the budget too.
+ // outside `settings`, so RESET DEFAULTS must still re-arm it even though renderer tiers
+ // are no longer persisted — consumers watch this token to reset the budget too.
const [resetNonce, setResetNonce] = useState(0);
useEffect(() => {
@@ -107,13 +77,6 @@ export default function useOpenWorldSettings() {
const updateSetting = useCallback((key, value) => {
setSettings(prev => {
- // If changing quality preset, apply bulk changes. Explicitly picking a preset
- // also pins Manual mode — the user has chosen a fixed tier over adaptation.
- if (key === 'qualityPreset' && QUALITY_PRESETS[value]) {
- const next = { ...prev, qualityPreset: value, qualityMode: 'manual', ...QUALITY_PRESETS[value] };
- safeWriteStorage(STORAGE_KEY, JSON.stringify(next));
- return next;
- }
const next = { ...prev, [key]: value };
safeWriteStorage(STORAGE_KEY, JSON.stringify(next));
return next;
diff --git a/client/src/hooks/useOpenWorldSettings.test.jsx b/client/src/hooks/useOpenWorldSettings.test.jsx
index 2bb3893b43..00b683ada0 100644
--- a/client/src/hooks/useOpenWorldSettings.test.jsx
+++ b/client/src/hooks/useOpenWorldSettings.test.jsx
@@ -22,14 +22,14 @@ describe('useOpenWorldSettings localStorage resilience', () => {
const [settings] = result.current;
expect(settings.timeOfDay).toBe('auto');
- expect(settings.qualityPreset).toBe('high');
+ expect(settings.worldStyle).toBe('vibes');
});
it('initializes to defaults when stored JSON is corrupt', () => {
window.localStorage.setItem(STORAGE_KEY, '{ not valid json');
const { result } = renderHook(() => useOpenWorldSettings());
const [settings] = result.current;
- expect(settings.qualityPreset).toBe('high');
+ expect(settings.worldStyle).toBe('vibes');
});
it('keeps in-memory setting updates working when writes throw', () => {
@@ -50,41 +50,36 @@ describe('useOpenWorldSettings localStorage resilience', () => {
expect(settings.timeOfDay).toBe('night');
});
- it('defaults a fresh install to Auto quality beginning at High', () => {
+ it('defaults a fresh install to player-facing world settings', () => {
const { result } = renderHook(() => useOpenWorldSettings());
const [settings] = result.current;
- expect(settings.qualityMode).toBe('auto');
- expect(settings.qualityPreset).toBe('high');
expect(settings.explorationMode).toBe(true);
expect(settings.cameraView).toBe('third');
+ expect(settings.worldStyle).toBe('vibes');
+ expect(settings.qualityMode).toBeUndefined();
+ expect(settings.qualityPreset).toBeUndefined();
+ expect(settings.reflectionsEnabled).toBeUndefined();
+ expect(settings.scanlineOverlay).toBeUndefined();
});
- it('loads an existing pre-Auto payload as Manual, keeping its preset', () => {
- // A stored payload from before Auto mode has no `qualityMode` key.
- window.localStorage.setItem(STORAGE_KEY, JSON.stringify({ qualityPreset: 'ultra' }));
+ it('drops legacy renderer controls when loading an existing payload', () => {
+ window.localStorage.setItem(STORAGE_KEY, JSON.stringify({
+ worldStyle: 'cyber',
+ qualityMode: 'manual',
+ qualityPreset: 'ultra',
+ reflectionsEnabled: true,
+ scanlineOverlay: true,
+ ambientBrightness: 2,
+ neonBrightness: 2,
+ particleDensity: 2,
+ dpr: [1, 2],
+ }));
const { result } = renderHook(() => useOpenWorldSettings());
const [settings] = result.current;
- expect(settings.qualityMode).toBe('manual');
- expect(settings.qualityPreset).toBe('ultra');
- });
-
- it('preserves a stored qualityMode of auto (present-but-set, not absent)', () => {
- window.localStorage.setItem(STORAGE_KEY, JSON.stringify({ qualityMode: 'auto', qualityPreset: 'medium' }));
- const { result } = renderHook(() => useOpenWorldSettings());
- const [settings] = result.current;
- expect(settings.qualityMode).toBe('auto');
- });
-
- it('picking a manual preset pins Manual mode', () => {
- const { result } = renderHook(() => useOpenWorldSettings());
- act(() => {
- const [, updateSetting] = result.current;
- updateSetting('qualityPreset', 'low');
- });
- const [settings] = result.current;
- expect(settings.qualityMode).toBe('manual');
- expect(settings.qualityPreset).toBe('low');
- expect(settings.reflectionsEnabled).toBe(false); // low preset bulk-applied
+ expect(settings.worldStyle).toBe('cyber');
+ for (const key of ['qualityMode', 'qualityPreset', 'reflectionsEnabled', 'scanlineOverlay', 'ambientBrightness', 'neonBrightness', 'particleDensity', 'dpr']) {
+ expect(settings[key]).toBeUndefined();
+ }
});
it('bumps resetNonce on reset so the runtime budget can re-arm', () => {
@@ -96,7 +91,6 @@ describe('useOpenWorldSettings localStorage resilience', () => {
});
expect(result.current[3]).toBe(before + 1);
const [settings] = result.current;
- expect(settings.qualityMode).toBe('auto'); // reset restores Auto default
expect(settings.explorationMode).toBe(true);
expect(settings.cameraView).toBe('third');
});
diff --git a/client/src/index.css b/client/src/index.css
index 531b3b3775..3f5196f324 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -1110,6 +1110,41 @@ html[data-port-theme] .openworld-themed [class~="hover:bg-cyan-500/5"]:hover { b
--ow-accent: rgb(var(--port-accent));
--ow-line: rgb(var(--port-accent) / 0.28);
--ow-soft: rgb(var(--port-accent) / 0.1);
+ --ow-ui-font: var(--port-font-ui);
+ --ow-micro-font: var(--port-font-mono);
+ font-family: var(--ow-ui-font);
+}
+
+/* The pixel face is useful for a title or a deliberately diegetic sign, but it made
+ OpenWorld's live controls and status copy hard to scan. Keep the game UI in the same
+ readable face as the reference's control panel; reserve the mono face for small labels. */
+.openworld-themed .font-pixel,
+.openworld-themed .font-pixel-grid {
+ font-family: var(--ow-ui-font);
+ letter-spacing: 0.01em;
+}
+
+.openworld-themed .openworld-hud-eyebrow,
+.openworld-themed .openworld-hud-action-hint,
+.openworld-themed .openworld-mobile-look-hint {
+ font-family: var(--ow-micro-font);
+}
+
+/* Existing HUD components use compact utility sizes. Nudge only the smallest game-facing
+ copy upward so it remains legible without changing the global typography scale. */
+.openworld-hud-shell [class~="text-[8px]"],
+.openworld-settings-portal [class~="text-[8px]"] {
+ font-size: 0.68rem;
+ line-height: 1.35;
+}
+
+.openworld-settings-portal [class~="text-[9px]"] {
+ font-size: 0.72rem;
+ line-height: 1.4;
+}
+
+.openworld-settings-portal .font-mono {
+ letter-spacing: 0.08em;
}
.openworld-hud-shell {
@@ -1260,6 +1295,68 @@ html[data-port-theme] .openworld-themed [class~="hover:bg-cyan-500/5"]:hover { b
border-left: 1px solid rgb(var(--port-accent) / 0.72);
}
+.openworld-interaction-prompt {
+ position: absolute;
+ left: 50%;
+ bottom: 5.6rem;
+ z-index: 2;
+ display: flex;
+ align-items: center;
+ gap: 0.7rem;
+ padding: 0.48rem 0.7rem;
+ border: 1px solid rgb(var(--port-accent) / 0.34);
+ border-radius: 12px;
+ background: var(--ow-panel-soft);
+ box-shadow: 0 12px 28px rgb(0 0 0 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.07);
+ backdrop-filter: blur(16px) saturate(1.08);
+ color: var(--ow-ink);
+ font-family: var(--font-pixel, monospace);
+ font-size: 0.56rem;
+ letter-spacing: 0.08em;
+ pointer-events: none;
+ transform: translateX(-50%);
+ white-space: nowrap;
+}
+
+.openworld-interaction-prompt__label {
+ max-width: min(18rem, 36vw);
+ overflow: hidden;
+ color: var(--ow-ink);
+ text-overflow: ellipsis;
+ text-transform: uppercase;
+}
+
+.openworld-interaction-prompt__action {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ color: var(--ow-accent);
+}
+
+.openworld-interaction-prompt kbd {
+ min-width: 1.35rem;
+ padding: 0.2rem 0.28rem;
+ border: 1px solid rgb(var(--port-accent) / 0.4);
+ border-radius: 5px;
+ background: rgb(var(--port-accent) / 0.12);
+ color: var(--ow-ink);
+ font: inherit;
+ font-size: 0.5rem;
+ text-align: center;
+}
+
+.openworld-interaction-prompt--compact {
+ bottom: calc(13.35rem + env(safe-area-inset-bottom));
+ max-width: calc(100vw - 2rem);
+ gap: 0.45rem;
+ padding: 0.42rem 0.58rem;
+ font-size: 0.5rem;
+}
+
+.openworld-interaction-prompt--compact .openworld-interaction-prompt__label {
+ max-width: 34vw;
+}
+
.openworld-intel-surface {
border-radius: 20px;
background: linear-gradient(160deg, var(--ow-panel), rgb(var(--port-bg) / 0.9));
diff --git a/client/src/pages/OpenWorld.fastTravel.test.jsx b/client/src/pages/OpenWorld.fastTravel.test.jsx
index c7f07c28ac..8dde5f79ce 100644
--- a/client/src/pages/OpenWorld.fastTravel.test.jsx
+++ b/client/src/pages/OpenWorld.fastTravel.test.jsx
@@ -23,7 +23,6 @@ vi.mock('../components/openworld/OpenWorldHud', () => ({
</div>
),
}));
-vi.mock('../components/openworld/OpenWorldScanlines', () => ({ default: () => null }));
vi.mock('../components/openworld/OpenWorldPhotoOverlay', () => ({ default: () => null }));
vi.mock('../components/openworld/OpenWorldPlaybackOverlay', () => ({ default: () => null }));
vi.mock('../components/openworld/OpenWorldSettingsDrawer', () => ({ default: () => null }));
@@ -132,7 +131,7 @@ describe('OpenWorld — fast travel wiring', () => {
localStorage.setItem('portos-city-settings', JSON.stringify({ worldStyle: 'cyber' }));
renderAt('/openworld');
expect(sceneProps.current.settings.worldStyle).toBe('cyber');
- expect(['noon', 'sunset']).toContain(sceneProps.current.settings.timeOfDay);
+ expect(sceneProps.current.settings.timeOfDay).toBe('sunset');
expect(sceneProps.current.palette.lowPoly).toBe(false);
});
diff --git a/client/src/pages/OpenWorld.jsx b/client/src/pages/OpenWorld.jsx
index ad5dda5ad1..3cb7e1f18d 100644
--- a/client/src/pages/OpenWorld.jsx
+++ b/client/src/pages/OpenWorld.jsx
@@ -11,11 +11,9 @@ import * as api from '../services/api';
import OpenWorldScene from '../components/openworld/OpenWorldScene';
import OpenWorldHud from '../components/openworld/OpenWorldHud';
import OpenWorldMobileControls from '../components/openworld/OpenWorldMobileControls';
-import OpenWorldScanlines from '../components/openworld/OpenWorldScanlines';
import OpenWorldPhotoOverlay from '../components/openworld/OpenWorldPhotoOverlay';
import OpenWorldPlaybackOverlay from '../components/openworld/OpenWorldPlaybackOverlay';
import { OpenWorldSettingsProvider, useOpenWorldSettingsContext } from '../components/openworld/OpenWorldSettingsContext';
-import { QUALITY_PRESETS } from '../hooks/useOpenWorldSettings';
import OpenWorldSettingsDrawer from '../components/openworld/OpenWorldSettingsDrawer';
import { computeFilterResult } from '../utils/openWorldFilter';
import { resolveOpenWorldFocus } from '../utils/openWorldFocusState';
@@ -28,6 +26,16 @@ import { getRegion, regionArrivalPoint, regionPath } from '../utils/openWorldReg
import { OpenWorldPaletteProvider } from '../components/openworld/OpenWorldPaletteContext';
import { useThemeContext } from '../components/ThemeContext';
+// Internal render budgets only. These tiers are selected from sustained frame time and are
+// deliberately not persisted or exposed as player settings; art direction stays coherent while
+// the renderer sheds work on slower hardware.
+const RENDER_TIERS = {
+ low: { particleDensity: 0.5, dpr: [1, 1] },
+ medium: { particleDensity: 0.75, dpr: [1, 1.25] },
+ high: { particleDensity: 1, dpr: [1, 1.25] },
+ ultra: { particleDensity: 1.5, dpr: [1, 1.5] },
+};
+
function OpenWorldInner() {
const { apps, cosAgents, cosStatus, eventLogs, agentMap, reviewCounts, instances, systemHealth, notificationCounts, backupStatus, cosTasks, healthMetrics, voiceState, character, aiActivity, loading, connected } = useOpenWorldData();
const { settings, updateSetting, resetNonce } = useOpenWorldSettingsContext();
@@ -81,8 +89,8 @@ function OpenWorldInner() {
// bridge context). No more during-render mutation of a shared singleton.
const openWorldPalette = useMemo(() => deriveOpenWorldPalette(openWorldTheme, worldStyle), [openWorldTheme, worldStyle]);
- // The world renders day or night, following the theme mode by default (see
- // resolveOpenWorldTimeOfDay). The resolved preset key is handed to the scene via a
+ // Open World renders day or night, following the theme mode by default; Cyber City is
+ // always night (see resolveOpenWorldTimeOfDay). The resolved preset key is handed to the scene via a
// settings override (OpenWorldSky/OpenWorldLights/OpenWorldGround read settings.timeOfDay), and the
// backdrop takes the matching preset's mid-sky band so the DOM surround behind the
// canvas agrees with the sky the scene actually paints, in either art direction.
@@ -91,35 +99,28 @@ function OpenWorldInner() {
? getTimeOfDayPreset(openWorldTimeOfDay.presetKey).midSky
: openWorldPalette.nightBackground;
- // Auto quality mode (issue #2592). In Auto, an adaptive render budget picks the
- // effective tier at runtime (starting at High); in Manual, the effective tier is the
- // saved preset. The runtime tier is deliberately separate from persisted settings —
- // adaptation never rewrites localStorage. `autoDiagnostics` is a local-only readout
- // (never persisted or transmitted). Auto always *starts* at High per the spec, even
- // if the user last had a different manual preset.
- const qualityMode = settings?.qualityMode === 'auto' ? 'auto' : 'manual';
+ // Rendering adapts silently. The player gets a stable art direction and the renderer
+ // chooses its detail tier from sustained frame time; low/medium/high/ultra are internal
+ // budgets, not design settings. This keeps the settings drawer focused on choices a player
+ // can actually feel (world style, audio, and controls).
const [autoTier, setAutoTier] = useState('high');
- const [autoDiagnostics, setAutoDiagnostics] = useState(null);
- const effectiveTier = qualityMode === 'auto' ? autoTier : (settings?.qualityPreset ?? 'high');
-
- // Clear the stale local diagnostics readout whenever the budget re-arms: a RESET DEFAULTS
- // (resetNonce) or a quality-mode transition (Manual↔Auto). The adaptive budget itself
- // re-arms via OpenWorldScene and re-reports tier + fresh samples on the next window.
- useEffect(() => { setAutoDiagnostics(null); }, [resetNonce, qualityMode]);
+ const effectiveTier = autoTier;
const sceneSettings = useMemo(() => {
- const base = { ...settings, effectiveTier, skyTheme: 'cyberpunk', timeOfDay: openWorldTimeOfDay.presetKey };
- if (qualityMode !== 'auto') return base;
- // Derive the render-affecting fields (reflections, particle density, DPR) from the
- // adaptive tier; leave user-tuned lighting/scanline toggles untouched.
- const tierCfg = QUALITY_PRESETS[effectiveTier] || QUALITY_PRESETS.high;
+ // Derive render-affecting fields from the adaptive tier. The settings store contains
+ // player choices only, so old renderer knobs cannot override the coherent world look.
+ const tierCfg = RENDER_TIERS[effectiveTier] || RENDER_TIERS.high;
return {
- ...base,
- reflectionsEnabled: tierCfg.reflectionsEnabled,
+ ...settings,
+ effectiveTier,
+ skyTheme: 'cyberpunk',
+ timeOfDay: openWorldTimeOfDay.presetKey,
particleDensity: tierCfg.particleDensity,
dpr: tierCfg.dpr,
+ ambientBrightness: 1,
+ neonBrightness: worldStyle === 'cyber' ? 1.1 : 1,
};
- }, [settings, effectiveTier, qualityMode, openWorldTimeOfDay.presetKey]);
+ }, [settings, effectiveTier, openWorldTimeOfDay.presetKey, worldStyle]);
const [filter, setFilter] = useState(() => {
// try/catch is necessary because sessionStorage values are external state
@@ -185,6 +186,7 @@ function OpenWorldInner() {
jump: false,
});
const playerActionRef = useRef(null);
+ const [proximityTarget, setProximityTarget] = useState(null);
// --- World map / fast travel ----------------------------------------------
// Warping stays under `/openworld/region/:regionId`; the route param drives the orbital
@@ -541,17 +543,16 @@ function OpenWorldInner() {
mobileInputRef={mobileInputRef}
playerActionRef={playerActionRef}
dimmedAppIds={filterResult.dimmed}
- autoQuality={qualityMode === 'auto'}
+ autoQuality
autoStartTier="high"
autoResetToken={resetNonce}
- diagnosticsEnabled={showSettings}
onAutoTierChange={setAutoTier}
- onAutoDiagnostics={setAutoDiagnostics}
focusedAppId={appId || null}
focusedRegion={focusedRegion}
playerTeleport={playerTeleport}
hudSafe={focusHudSafe}
onTravelToRegion={handleTravelToRegion}
+ onProximityChange={setProximityTarget}
/>
{/* The full HUD hides in photo + playback mode so the view is clean; each
mode's overlay replaces it. */}
@@ -588,6 +589,7 @@ function OpenWorldInner() {
onOpenDestination={handleTravelToRegionId}
onAttentionItem={handleAttentionItem}
activeRegion={focusedRegion}
+ proximityTarget={proximityTarget}
/>
)}
{!photoMode && !playback.active && !isDesktop && settings?.explorationMode && !showSettings && !fastTravelOpen && (
@@ -634,16 +636,12 @@ function OpenWorldInner() {
activeRegionId={focusedRegion?.id || null}
onLeaveRegion={() => navigate('/openworld')}
/>
- <OpenWorldScanlines settings={settings} crt={openWorldPalette.crt} />
- {/* Settings on the shared Drawer (issue #2591). Closing preserves other query
- params (e.g. an open openWorldPane) so the disclosure state survives. The Auto-quality
- props (#2592) drive the Performance tab's effective-tier label + local diagnostics. */}
+ {/* Settings on the shared Drawer. Closing preserves other query params (e.g. an open
+ openWorldPane) so the disclosure state survives. Rendering quality is automatic and
+ intentionally absent from this player-facing surface. */}
<OpenWorldSettingsDrawer
open={showSettings}
onClose={() => navigate(`/openworld${location.search}`)}
- qualityMode={qualityMode}
- effectiveTier={effectiveTier}
- diagnostics={qualityMode === 'auto' ? autoDiagnostics : null}
/>
</div>
</OpenWorldPaletteProvider>
diff --git a/client/src/utils/README.md b/client/src/utils/README.md
index 5fd2869881..f9b3e68dab 100644
--- a/client/src/utils/README.md
+++ b/client/src/utils/README.md
@@ -98,7 +98,6 @@ its tunable constants and placement helpers.
| `openWorldRenderBudget` | Pure Auto-quality render-budget state machine: p75 frame-time windows, hysteresis, cooldown, warm-up/gap rejection (`createRenderBudget`, `recordFrame`, `restartWarmup`, `resetRenderBudget`, `getEffectiveTier`, `QUALITY_TIERS`, `DEFAULT_RENDER_BUDGET_CONFIG`). |
| `openWorldRooftops` | Deterministic rooftop fixture kits (antenna/tank/AC/dish) per app name (`computeRooftopKit`). |
| `openWorldProductivity` | Productivity monument from streak/velocity tiers (`computeProductivityMonument`). |
-| `openWorldSeasonalDecor` | Season/holiday resolution → seasonal decoration placements (`computeSeasonalDecor`). |
| `openWorldSoundscape` | Ambient soundscape: mood/energy classification, chord selection (`computeSoundscape`), and the manual mood override (`applyMoodOverride`). |
| `openWorldTaskFlowRiver` | Task-flow river width/speed from backlog & throughput (`computeTaskFlowRiver`). |
| `openWorldTaskQueue` | Task-queue state/color from status counts (`computeTaskQueue`). |
diff --git a/client/src/utils/index.js b/client/src/utils/index.js
index 13d2bf182b..d5480c3413 100644
--- a/client/src/utils/index.js
+++ b/client/src/utils/index.js
@@ -66,7 +66,6 @@ export * from './openWorldPlayerRig.js';
export * from './openWorldRenderBudget.js';
export * from './openWorldRooftops.js';
export * from './openWorldProductivity.js';
-export * from './openWorldSeasonalDecor.js';
export * from './openWorldSoundscape.js';
export * from './openWorldTaskFlowRiver.js';
export * from './openWorldTaskQueue.js';
diff --git a/client/src/utils/openWorldPlan.js b/client/src/utils/openWorldPlan.js
index 2f1711f2b2..2f8d5a32f3 100644
--- a/client/src/utils/openWorldPlan.js
+++ b/client/src/utils/openWorldPlan.js
@@ -190,7 +190,7 @@ export function computeStreets() {
}
// ---------------------------------------------------------------------------
-// Street props: lamp posts along every street, holo-trees ringing the plaza.
+// Street props: lamp posts along every street, planting trees ringing the plaza.
// ---------------------------------------------------------------------------
const LAMP_SPACING = 11; // world units between lamp pairs along a street
@@ -221,8 +221,9 @@ export function computeStreetProps(streets, density = 1) {
}
}
- // Holo-trees around the plaza sidewalk, skipping the avenue mouth (north) so the
- // walkway to the harbor stays open.
+ // Trees around the plaza sidewalk, skipping the avenue mouth (north) so the walkway
+ // to the harbor stays open. The stable scale variation keeps the grove from reading
+ // as a repeated ring of identical icons.
const treeCount = Math.round(10 * Math.min(1.5, density));
const treeRadius = (streets.plazaRing.inner + streets.plazaRing.outer) / 2 + 0.6;
for (let i = 0; i < treeCount; i++) {
@@ -230,7 +231,7 @@ export function computeStreetProps(streets, density = 1) {
const x = Math.cos(a) * treeRadius;
const z = Math.sin(a) * treeRadius;
if (z < -treeRadius * 0.86) continue; // the avenue mouth
- trees.push({ x, z, seed: i });
+ trees.push({ x, z, seed: i, scale: 0.86 + ((i * 7) % 5) * 0.07 });
}
return { lamps, trees };
diff --git a/client/src/utils/openWorldSeasonalDecor.js b/client/src/utils/openWorldSeasonalDecor.js
deleted file mode 100644
index 87048026ec..0000000000
--- a/client/src/utils/openWorldSeasonalDecor.js
+++ /dev/null
@@ -1,177 +0,0 @@
-// Pure, deterministic helpers for OpenWorld's "seasonal decorations" (roadmap 3.5 follow-up,
-// #824): date-driven city dressing that layers a holiday/seasonal theme onto the existing
-// districts. The active theme is DERIVED from a date passed in by the caller — nothing here
-// calls `new Date()` so the resolver is fully unit-testable for specific days (mirrors the
-// "inject the input" rule the rest of the city helpers follow). No three.js / React imports.
-//
-// A "season" is the broad quarter (winter/spring/summer/autumn); a "holiday" is a tighter
-// date window (e.g. the winter-holidays week, Halloween) that overrides the season's palette
-// and adds a few extra accent decorations. When no holiday matches, the broad season still
-// dresses the city with a subtle ambient palette + scattered decorations. There is always a
-// theme — the city is never undressed — but each theme is intentionally low-key so it reads
-// as seasonal flavor rather than clutter.
-
-import { hashString } from './hashString';
-
-// Decoration placement: a loose ring of accent props around the city center, well clear of the
-// building cluster and the achievement/goal districts. Deterministic seeded scatter so the
-// dressing doesn't reshuffle across refetches.
-export const SEASONAL_DECOR = {
- base: [0, 0, 0], // ring is centered on the city origin; banner anchors here
- ringRadius: 70, // distance from origin — outside the active districts
- ringY: 0.5, // resting height of a ground decoration
- count: 8, // decorations placed around the ring per theme
- propSize: 2.2,
-};
-
-// Broad seasons keyed by an integer 0..3 the resolver computes from the month. Northern-
-// hemisphere mapping (the install's locale is its own concern; this is a flavor layer, not a
-// calendar API). Colors reuse PortOS Tailwind design tokens / the city's neon palette.
-export const SEASONS = {
- winter: { id: 'winter', label: 'WINTER', color: '#3b82f6', accent: '#93c5fd', prop: 'crystal' }, // port-accent / icy
- spring: { id: 'spring', label: 'SPRING', color: '#22c55e', accent: '#86efac', prop: 'bloom' }, // port-success / green
- summer: { id: 'summer', label: 'SUMMER', color: '#f59e0b', accent: '#fcd34d', prop: 'beam' }, // port-warning / gold
- autumn: { id: 'autumn', label: 'AUTUMN', color: '#f97316', accent: '#fdba74', prop: 'leaf' }, // orange
-};
-
-// Holiday windows — tighter date ranges that override the season palette and bump the glow.
-// Each entry is an inclusive [month, day] start .. [month, day] end window (1-based month).
-// `wrapsYear` marks a window that straddles Dec→Jan (e.g. New Year). Kept deliberately small and
-// culture-light; this is ambient dressing, not a comprehensive holiday calendar.
-export const HOLIDAYS = [
- {
- id: 'new-year',
- label: 'NEW YEAR',
- color: '#fcd34d',
- accent: '#fde68a',
- prop: 'firework',
- start: [12, 31],
- end: [1, 1],
- wrapsYear: true,
- },
- {
- id: 'winter-holidays',
- label: 'WINTER HOLIDAYS',
- color: '#ef4444',
- accent: '#22c55e',
- prop: 'lights',
- start: [12, 20],
- end: [12, 30],
- },
- {
- id: 'spring-bloom',
- label: 'SPRING BLOOM',
- color: '#ec4899',
- accent: '#f9a8d4',
- prop: 'bloom',
- start: [3, 20],
- end: [3, 27],
- },
- {
- id: 'midsummer',
- label: 'MIDSUMMER',
- color: '#f59e0b',
- accent: '#fde68a',
- prop: 'beam',
- start: [6, 19],
- end: [6, 25],
- },
- {
- id: 'halloween',
- label: 'HALLOWEEN',
- color: '#f97316',
- accent: '#a855f7',
- prop: 'pumpkin',
- start: [10, 25],
- end: [10, 31],
- },
-];
-
-// Map a 1-based month to a broad season id. Dec/Jan/Feb → winter, etc.
-function seasonForMonth(month) {
- if (month === 12 || month === 1 || month === 2) return 'winter';
- if (month >= 3 && month <= 5) return 'spring';
- if (month >= 6 && month <= 8) return 'summer';
- return 'autumn';
-}
-
-// True when (month, day) falls inside a holiday window. Handles a window that wraps the year
-// boundary (start month/day later than end month/day).
-function inHolidayWindow(month, day, holiday) {
- const [sm, sd] = holiday.start;
- const [em, ed] = holiday.end;
- const afterStart = month > sm || (month === sm && day >= sd);
- const beforeEnd = month < em || (month === em && day <= ed);
- // A non-wrapping window is a simple AND; a year-wrapping window is an OR (after-start OR
- // before-end), since the valid range spans the Dec→Jan seam.
- return holiday.wrapsYear ? afterStart || beforeEnd : afterStart && beforeEnd;
-}
-
-// Resolve the active holiday for a date, or null. First match wins (HOLIDAYS is ordered most-
-// specific first so New Year beats the broader winter-holidays week on Dec 31). Accepts any
-// value with `.getMonth()` / `.getDate()`; a non-Date returns null (no holiday).
-export function resolveHoliday(date) {
- if (!date || typeof date.getMonth !== 'function' || typeof date.getDate !== 'function') {
- return null;
- }
- const month = date.getMonth() + 1; // getMonth() is 0-based
- const day = date.getDate();
- for (const h of HOLIDAYS) {
- if (inHolidayWindow(month, day, h)) return h;
- }
- return null;
-}
-
-// Resolve the active broad season for a date. Returns the winter season as a safe default for a
-// non-Date input so the city always has a theme.
-export function resolveSeason(date) {
- if (!date || typeof date.getMonth !== 'function') return SEASONS.winter;
- return SEASONS[seasonForMonth(date.getMonth() + 1)];
-}
-
-// Place `count` decorations around the city ring, seeded by the theme id so the scatter is
-// stable per-theme but differs between themes. Decorations alternate slightly in radius so the
-// ring doesn't read as a perfect circle.
-export function placeDecorations(themeId, count = SEASONAL_DECOR.count) {
- const decorations = [];
- for (let i = 0; i < count; i += 1) {
- const seed = hashString(`${themeId}-${i}`);
- const angle = (i / count) * Math.PI * 2 + (seed % 30) / 100; // even spread + small jitter
- const radius = SEASONAL_DECOR.ringRadius + ((seed >> 3) % 12) - 6; // ±6 radial jitter
- const x = Math.cos(angle) * radius;
- const z = Math.sin(angle) * radius;
- decorations.push({
- id: `${themeId}-decor-${i}`,
- position: [Number(x.toFixed(3)), SEASONAL_DECOR.ringY, Number(z.toFixed(3))],
- // Per-decoration phase so a shared shimmer driver can offset each one.
- phase: (seed % 100) / 100,
- });
- }
- return decorations;
-}
-
-// Full derived view-model for the seasonal-decor component. Inject the date so the season is
-// deterministic in tests. A holiday (when matched) supersedes the broad season for palette +
-// prop + label, but the season id is always carried so the component can still reason about the
-// time of year. There is always a theme → `hasData` is always true (the city is never undressed).
-export function computeSeasonalDecor(date) {
- const season = resolveSeason(date);
- const holiday = resolveHoliday(date);
- const theme = holiday || season;
- const decorations = placeDecorations(theme.id);
-
- return {
- base: SEASONAL_DECOR.base,
- season: season.id,
- seasonLabel: season.label,
- isHoliday: !!holiday,
- themeId: theme.id,
- label: theme.label,
- color: theme.color,
- accent: theme.accent,
- prop: theme.prop,
- decorations,
- total: decorations.length,
- hasData: true,
- };
-}
diff --git a/client/src/utils/openWorldSeasonalDecor.test.js b/client/src/utils/openWorldSeasonalDecor.test.js
deleted file mode 100644
index 6a2dc38efd..0000000000
--- a/client/src/utils/openWorldSeasonalDecor.test.js
+++ /dev/null
@@ -1,131 +0,0 @@
-import { describe, it, expect } from 'vitest';
-import {
- SEASONAL_DECOR,
- SEASONS,
- HOLIDAYS,
- resolveSeason,
- resolveHoliday,
- placeDecorations,
- computeSeasonalDecor,
-} from './openWorldSeasonalDecor';
-
-// Build a Date for a fixed (month, day) — month is 1-based here for readability.
-const on = (month, day) => new Date(2025, month - 1, day, 12, 0, 0);
-
-describe('resolveSeason', () => {
- it('maps months to the northern-hemisphere season', () => {
- expect(resolveSeason(on(1, 15)).id).toBe('winter');
- expect(resolveSeason(on(2, 15)).id).toBe('winter');
- expect(resolveSeason(on(4, 15)).id).toBe('spring');
- expect(resolveSeason(on(7, 15)).id).toBe('summer');
- expect(resolveSeason(on(10, 15)).id).toBe('autumn');
- expect(resolveSeason(on(12, 15)).id).toBe('winter');
- });
-
- it('defaults to winter for a non-Date input (city is never undressed)', () => {
- expect(resolveSeason(null).id).toBe('winter');
- expect(resolveSeason(undefined).id).toBe('winter');
- expect(resolveSeason('nope').id).toBe('winter');
- });
-});
-
-describe('resolveHoliday', () => {
- it('matches a non-wrapping window inclusively', () => {
- expect(resolveHoliday(on(10, 25))?.id).toBe('halloween');
- expect(resolveHoliday(on(10, 31))?.id).toBe('halloween');
- expect(resolveHoliday(on(10, 24))).toBeNull(); // day before the window
- expect(resolveHoliday(on(11, 1))).toBeNull(); // day after
- });
-
- it('matches a year-wrapping window across the Dec→Jan seam', () => {
- expect(resolveHoliday(on(12, 31))?.id).toBe('new-year');
- expect(resolveHoliday(on(1, 1))?.id).toBe('new-year');
- expect(resolveHoliday(on(1, 2))).toBeNull(); // out of the New Year window
- });
-
- it('lets a more-specific window win (New Year over winter-holidays on Dec 31)', () => {
- // Dec 31 is inside the winter-holidays season feel, but New Year is listed first.
- expect(resolveHoliday(on(12, 31))?.id).toBe('new-year');
- // Dec 25 is only inside winter-holidays.
- expect(resolveHoliday(on(12, 25))?.id).toBe('winter-holidays');
- });
-
- it('returns null when no holiday is active or input is not a Date', () => {
- expect(resolveHoliday(on(2, 14))).toBeNull();
- expect(resolveHoliday(null)).toBeNull();
- expect(resolveHoliday('nope')).toBeNull();
- });
-
- it('every holiday entry has well-formed window tuples + palette fields', () => {
- for (const h of HOLIDAYS) {
- expect(typeof h.color).toBe('string');
- expect(typeof h.accent).toBe('string');
- expect(typeof h.label).toBe('string');
- expect(typeof h.prop).toBe('string');
- for (const tuple of [h.start, h.end]) {
- expect(tuple).toHaveLength(2);
- const [month, day] = tuple;
- expect(month).toBeGreaterThanOrEqual(1);
- expect(month).toBeLessThanOrEqual(12);
- expect(day).toBeGreaterThanOrEqual(1);
- expect(day).toBeLessThanOrEqual(31);
- }
- }
- });
-});
-
-describe('placeDecorations', () => {
- it('places the configured count by default', () => {
- expect(placeDecorations('winter')).toHaveLength(SEASONAL_DECOR.count);
- });
-
- it('is deterministic for a given theme id (stable across calls)', () => {
- expect(placeDecorations('summer')).toEqual(placeDecorations('summer'));
- });
-
- it('differs between theme ids', () => {
- const a = placeDecorations('winter');
- const b = placeDecorations('halloween');
- expect(a[0].position).not.toEqual(b[0].position);
- });
-
- it('each decoration carries an id, a 3-tuple position, and a 0..1 phase', () => {
- for (const d of placeDecorations('autumn')) {
- expect(typeof d.id).toBe('string');
- expect(d.position).toHaveLength(3);
- expect(d.phase).toBeGreaterThanOrEqual(0);
- expect(d.phase).toBeLessThanOrEqual(1);
- }
- });
-});
-
-describe('computeSeasonalDecor', () => {
- it('always returns a theme (hasData is always true — the city is never undressed)', () => {
- expect(computeSeasonalDecor(on(2, 14)).hasData).toBe(true);
- expect(computeSeasonalDecor(null).hasData).toBe(true);
- });
-
- it('uses the season when no holiday is active', () => {
- const vm = computeSeasonalDecor(on(7, 15)); // summer, no holiday
- expect(vm.isHoliday).toBe(false);
- expect(vm.themeId).toBe('summer');
- expect(vm.label).toBe(SEASONS.summer.label);
- expect(vm.season).toBe('summer');
- });
-
- it('overrides the season palette with a holiday when one is active', () => {
- const vm = computeSeasonalDecor(on(10, 31)); // Halloween, season autumn
- expect(vm.isHoliday).toBe(true);
- expect(vm.themeId).toBe('halloween');
- expect(vm.season).toBe('autumn'); // season still carried
- expect(vm.color).toBe(HOLIDAYS.find((h) => h.id === 'halloween').color);
- });
-
- it('places one decoration per configured slot and carries the ring base', () => {
- const vm = computeSeasonalDecor(on(4, 15));
- expect(vm.total).toBe(SEASONAL_DECOR.count);
- expect(vm.decorations).toHaveLength(SEASONAL_DECOR.count);
- expect(vm.base).toEqual(SEASONAL_DECOR.base);
- });
-});
-// @vitest-environment node
diff --git a/docs/features/openworld.md b/docs/features/openworld.md
index 8cd135b112..ae572fe595 100644
--- a/docs/features/openworld.md
+++ b/docs/features/openworld.md
@@ -4,8 +4,7 @@
> **OpenWorld** at `/openworld`; the whole `/city` prefix (including `/city/settings`
> and `/city/apps/:appId`) redirects, so old bookmarks, pinned sidebar rows, stored ⌘K
> history, and peers' deep links keep working. The nav-command **ids** are deliberately
-> unchanged (`nav.cybercity`) — they're opaque and persisted in palette history — and the
-> module/file prefix is still `city*` pending a separate mechanical sweep (#4571).
+> unchanged (`nav.cybercity`) — they're opaque and persisted in palette history.
## Intent
@@ -19,10 +18,10 @@ It does three jobs:
where is review pressure piling up, what needs your attention right now.
2. **Provide a fast spatial front-end to PortOS** — search any app, jump into
any detail page, take action on any building.
-3. **Be a memorable, distinctive aesthetic layer** — a cyberpunk city you
- actually enjoy spending time in, with personality that grows over use.
+3. **Be a memorable, distinctive aesthetic layer** — a bright low-poly OpenWorld
+ or a neon-night Cyber City that feels good to spend time in.
-## Current State (as of 2026-04-29)
+## Current State (as of 2026-08-19)
Strong rendering shell already exists: 3D scene with apps as buildings (PM2-driven),
boroughs, archive district, weather, traffic, particles, neon signs, billboards,
@@ -33,25 +32,22 @@ Tech: React Three Fiber + Three.js (no postprocessing _library_ — bloom is cus
emissive/additive materials, not a composer pass). The one composited effect is
photo mode's depth-of-field, which mounts an `EffectComposer` + `BokehPass` from
three's bundled addons (no extra npm dependency) only while photo mode is active —
-see `CityDepthOfField.jsx`.
-
-What it lacks:
-
-- **Per-building real-time signal** — buildings show only binary online/stopped;
- CPU/memory/error rate are invisible.
-- **Findability** — no search, no filter, scrolling through ~50 buildings is
- the only way to locate one.
-- **Drill-down / actionability** — buildings click straight to `/apps/{id}`;
- HUD stats are not interactive; no hover preview, no quick actions.
-- **Holistic coverage** — AI runs, CoS task queue depth, federation peers,
- backups, voice agent state, notifications all invisible.
-- **Mobile** — desktop-only despite project mandate; no touch controls.
-- **Mutation surface** — the city is read-only today, but it is the natural
- place to restart a stopped app or kick off a deploy without leaving the view.
+see `OpenWorldDepthOfField.jsx`.
+
+Current gaps:
+
+- **Per-building real-time signal** — the world maps app status and process presence,
+ but CPU/memory/error-rate telemetry is not yet shown on each building.
+- **Mutation surface** — the city remains read-only; explicit restart, deploy, and log
+ actions still belong to the canonical app surfaces.
+- **Geometry breadth** — the shared app-building grammar still carries much of the live
+ city; district-specific assets can continue replacing generic filler as the world grows.
+- **High-frequency update budget** — noisy socket bursts should eventually be coalesced
+ before they trigger scene-wide reconciliation.
## Design Rules
-CyberCity is an **interactive systems map**.
+OpenWorld is an **interactive systems map**.
Allowed:
@@ -131,20 +127,20 @@ what's healthy, what's not, find a specific app, and take action.
| ID | Item | Effort |
|----|------|--------|
| **1.1** | **Per-building health glyph** — vertical CPU/MEM/ERR strip on every building façade, cyan→amber→red mapped from `/api/system/health/details` + PM2 metrics. The single highest-leverage change: every building tells you what it's doing right now. | M |
-| **1.2** | **Stress smoke / sparks** — reuse `CityEmbers` per-building. Persistent CPU spike = smoke trail; recent crash = sparks. Brings global weather vocabulary down to the per-building level. | S |
+| **1.2** | **Stress smoke / sparks** — reuse `OpenWorldEmbers` per-building. Persistent CPU spike = smoke trail; recent crash = sparks. Brings global weather vocabulary down to the per-building level. | S |
| **1.3** | **Health card replaces cryptic weather glyph** — HUD shows plain `CPU 34% / MEM 71% / DISK 88%` with a sentinel dot. Atmospheric weather effect stays. | XS |
| **1.4** | **System Health as City Atmosphere** — pipe `/api/system/health/details` into existing weather/fog/ground texture so the sky reflects real state. | S |
-| **1.5** | **Notification beacons** — extend `CitySignalBeacons` with notification backlog from `/api/notifications/counts`; brightness = unread count, color = type, click = navigate. | S |
+| **1.5** | **Notification beacons** — extend `OpenWorldSignalBeacons` with notification backlog from `/api/notifications/counts`; brightness = unread count, color = type, click = navigate. | S |
| **1.6** | **Brain inbox pulse** — central spire glow tracks `/api/brain/inbox` depth; new captures pulse the spire. | S |
| **1.7** | **"Needs attention" pane** — replace the right-side `cos:log` stream with a structured list ranked by urgency: stopped/errored apps, high CPU/mem, pending reviews, stale backups, failed agent runs, federation sync failures, unread notifications. Every item clickable. Live log demoted to a tab. | S |
-| **1.8** | **Building search overlay** — press `/` to filter buildings by name/tag/status; non-matches dim, matches stay lit, Enter focuses camera. Local substring match against name/id/tags in `client/src/utils/cityFilter.js`. | S |
+| **1.8** | **Building search overlay** — press `/` to filter buildings by name/tag/status; non-matches dim, matches stay lit, Enter focuses camera. Local substring match against name/id/tags in `client/src/utils/openWorldFilter.js`. | S |
| **1.9** | **Status filter chips in HUD** — All / Online / Stopped / Errored / Has-Agent / Has-Pending-Review pill row above legend. Persists per-session. | S |
| **1.10** | **Hover preview card with quick actions** — show status / uptime / CPU / MEM / err / recent log line, with **Logs / Restart / Deploy / Open** buttons. Restart and Deploy POST to existing endpoints with explicit confirmation. | M |
| **1.11** | **Clickable HUD stats** — every count routes somewhere: PENDING REVIEWS → `/review`, AGENTS → `/cos`, NODES → `/instances`, etc. | XS |
| **1.12** | **Richer billboards** — rotate today's briefing headline, productivity streak, top actionable insight, recent agent completion summary, goal progress. | S |
| **1.13** | **Agent → building tether** — visible light from `AgentEntity` to its assigned building; color = agent state. Plus window-pulse animation on the building. | M |
| **1.14** | **Mobile / touch support** — `pointer: coarse` detection, single-finger orbit, two-finger pinch zoom, tap-to-select. Below 640px collapse HUD into a bottom sheet with search + filters + needs-attention. WASD exploration disables. CLAUDE.md mandate. | M |
-| **1.15** | **Quality auto-detection** — default low/medium for mobile or weak hardware; settings panel still allows override. | XS |
+| **1.15** | **Adaptive render budget** — the scene selects an internal detail tier from sustained frame time; player settings do not expose renderer knobs. | XS |
### Phase 2 — Holistic Coverage
@@ -174,7 +170,7 @@ Goal: the city feels alive, distinctive, and earned.
| **3.2** | **Memory / knowledge district** — categories as crystal clusters, graph edges as light bridges, brain inbox as a glowing well. Driven by `/api/memory/graph`. | L |
| **3.3** | **Photo mode / cinematic camera** — pause animations, cinematic presets, depth-of-field, vignette, high-res screenshots, "city postcard" with stats overlay. | M |
| **3.4** | **Ambient soundscape tied to data** — base key/tempo follows system health; agent activity adds rhythmic voices; completed tasks chime. Extends existing synth music. | L |
-| **3.5** | **Earned artifacts & achievements** — milestone statues, streak trophies, seasonal decorations, easter eggs. | M |
+| **3.5** | **Earned artifacts & achievements** — milestone statues, streak trophies, easter eggs. | M |
| **3.6** | **Historical timeline scrubber** — scrub back to past city states; buildings appear/disappear via construction animations. Requires snapshot data. | L |
| **3.7** | **JIRA sprint district** — current sprint tickets as crates / under-construction / completed structures. | M |
| **3.8** | **Throttle expensive socket-driven repaints** — coalesce noisy event bursts into a 100ms tick. Becomes load-bearing once Phase 2's beams/vehicles ship. | S |
@@ -184,8 +180,9 @@ Goal: the city feels alive, distinctive, and earned.
- Default to lower quality on `pointer: coarse` and `hardwareConcurrency < 8`
- Coalesce socket events into a render tick to avoid bursty repaints
- Lazy-load heavy effects (volumetric lights, postprocessing, particle storms)
- on the basis of the active quality preset
-- All new components must respect the existing settings panel quality dial
+ on the basis of the internally selected render tier
+- Keep player-facing settings focused on world style, time, sound, and controls;
+ renderer detail adapts without a quality dial
## Fast travel (regions)
@@ -195,7 +192,7 @@ visualizes — Memory Quarter → `/brain/inbox`, Sprint Yard → `/devtools/jir
→ `/data`, and so on.
- **Registry:** `client/src/utils/openWorldRegions.js`. Geography is *not* re-declared —
- each region names a parcel in `cityPlan.js` and reads its anchor/footprint from there, so
+ each region names a parcel in `openWorldPlan.js` and reads its anchor/footprint from there, so
moving a district on the plan moves its warp marker with it.
- **Route:** `/openworld/region/:regionId`. The URL is the single source of truth for
"where you warped to" — same contract as building focus — so a warp is shareable,
@@ -216,16 +213,17 @@ settings and switchable from the Visual tab of the settings drawer.
| Style | Look | Time-of-day presets |
|-------|------|---------------------|
| `vibes` (default) | Bright low-poly open world — teal-to-warm sky, meadow ground, flat-shaded facades, warm sun | `vibesDay` / `vibesDusk` |
-| `cyber` | The original neon-night CyberCity | `noon` / `sunset` |
+| `cyber` | The original neon-night Cyber City | `sunset` only |
-The style is a single lever with three effects, all in `cityConstants.js`:
+The style is a single lever with three effects, all in `openWorldConstants.js`:
-1. `resolveCityTimeOfDay` picks the preset pair, which feeds `CitySky`, `CityLights`, and
- `CityGround` — and, through `daylightFactor` → `cityDayMix`, every surface that already
+1. `resolveOpenWorldTimeOfDay` picks the preset pair. Open World follows the selected
+ day/night setting; Cyber City is always nocturnal. The result feeds `OpenWorldSky`,
+ `OpenWorldLights`, and `WorldGround` — and, through `daylightFactor`, every surface that already
lerps between its night and day form.
-2. `deriveCityPalette` swaps the *decorative and structural* surfaces (accent spread,
- building body, both surrounds, the CRT profile). Status colors stay semantic in both.
-3. `isCyberStyle` gates the neon-only scene layers — galaxy spheremap, starfield, shooting
+2. `deriveOpenWorldPalette` swaps the *decorative and structural* surfaces (accent spread,
+ building body, and surrounds). Status colors stay semantic in both.
+3. `palette.neonLayers` gates the neon-only scene layers — galaxy spheremap, starfield, shooting
stars, data rain, embers, volumetric light cones, neon signage — so they don't mount at
all under `vibes` rather than being faded out per frame. `palette.lowPoly` turns on flat
shading for facades and terrain.
@@ -233,27 +231,27 @@ The style is a single lever with three effects, all in `cityConstants.js`:
Keeping `cyber` as a real option isn't only nostalgia: it keeps the whole neon layer
exercised by the suite instead of bit-rotting behind a default nobody selects.
-What the style change does NOT do is replace the world's *geometry* — buildings are still
-the cyber-era extruded slabs, and only three meshes so far spread the palette's `surface`.
-The low-poly asset pass is #4572; diegetic in-world warp pads are #4573; a touch-sized
-fast-travel map for phones is #4574.
+The style change keeps the operational geometry and live data mappings stable while changing
+their material language. The Vibes pass now adds grounded nature patches, a varied plaza grove,
+and planter-framed warp pads; the shared app-building grammar remains intentionally recognizable
+across both styles so a status means the same thing in either world.
## Critical Files
- `client/src/pages/OpenWorld.jsx` — page wrapper
- `client/src/utils/openWorldRegions.js` — fast-travel region registry (also the nav-guard source)
-- `client/src/components/city/OpenWorldFastTravel.jsx` — the warp panel (M)
-- `client/src/utils/cityFocusCamera.js` — framing math for a borough (`computeFocusCamera`) and a region (`computeRegionCamera`)
-- `client/src/components/city/cityConstants.js` — world styles, time-of-day presets, palette derivation
-- `client/src/components/city/CityScene.jsx` — Canvas, 3D containers, controls
-- `client/src/components/city/CityHud.jsx` — overlay HUD (most Phase 1 UX changes)
-- `client/src/components/city/Building.jsx`, `Borough.jsx` — façade work (1.1, 1.2, 1.13)
-- `client/src/components/city/AgentEntity.jsx` — tether (1.13)
-- `client/src/components/city/CityTraffic.jsx`, `CityDataStreams.jsx` — meaningful traffic (2.10)
-- `client/src/components/city/CitySignalBeacons.jsx` — extend for notifications (1.5) + landmarks (2.x)
-- `client/src/components/city/CityBillboards.jsx` — richer content (1.12)
-- `client/src/hooks/useCityData.js` — data layer; extend with new endpoints
-- `client/src/utils/cityFilter.js` — pure status/search filter logic (1.8, 1.9)
+- `client/src/components/openworld/OpenWorldFastTravel.jsx` — the warp panel (M)
+- `client/src/utils/openWorldFocusCamera.js` — framing math for a borough (`computeFocusCamera`) and a region (`computeRegionCamera`)
+- `client/src/components/openworld/openWorldConstants.js` — world styles, time-of-day presets, palette derivation
+- `client/src/components/openworld/OpenWorldScene.jsx` — Canvas, 3D containers, controls
+- `client/src/components/openworld/OpenWorldHud.jsx` — overlay HUD (most Phase 1 UX changes)
+- `client/src/components/openworld/Building.jsx`, `Borough.jsx` — façade work (1.1, 1.2, 1.13)
+- `client/src/components/openworld/AgentEntity.jsx` — tether (1.13)
+- `client/src/components/openworld/OpenWorldTraffic.jsx`, `OpenWorldDataStreams.jsx` — meaningful traffic (2.10)
+- `client/src/components/openworld/OpenWorldSignalBeacons.jsx` — landmarks and warp pads
+- `client/src/components/openworld/OpenWorldBillboards.jsx` — richer content (1.12)
+- `client/src/hooks/useOpenWorldData.js` — data layer; extend with new endpoints
+- `client/src/utils/openWorldFilter.js` — pure status/search filter logic (1.8, 1.9)
- `client/src/utils/formatters.js` — reuse formatters; do not duplicate
## Endpoints used / to use