Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix([issue-819]): settle shimmer glow when quality dial drops and segment spire floors in one pass
[._.]/ Adam Eivyd42869ec5ca3
diff --git a/client/src/components/city/CityGoalMonuments.jsx b/client/src/components/city/CityGoalMonuments.jsxindex a56c4ef9d3..65e5ce6e17 100644--- a/client/src/components/city/CityGoalMonuments.jsx+++ b/client/src/components/city/CityGoalMonuments.jsx@@ -200,7 +200,14 @@ export default function CityGoalMonuments({ goals, settings }) {}, [useForest, forest.clusters, district.monuments]);useFrame(({ clock }) => {- if (!animate || !shimmerRef.current || !shimmer) return;+ if (!shimmerRef.current || !shimmer) return;+ if (!animate) {+ // Quality dial dropped below the pulse threshold (or the shimmer target changed):+ // settle the mesh back to its static base glow so it can't freeze mid-pulse at an+ // elevated emissive intensity.+ shimmerRef.current.material.emissiveIntensity = shimmer.intensity;+ return;+ }const pulse = (Math.sin(clock.getElapsedTime() * 1.6) + 1) / 2; // 0..1shimmerRef.current.material.emissiveIntensity = shimmer.intensity + pulse * 0.5;});diff --git a/client/src/utils/cityGoalMonuments.js b/client/src/utils/cityGoalMonuments.jsindex cc049ed2b4..e98eb77e70 100644--- a/client/src/utils/cityGoalMonuments.js+++ b/client/src/utils/cityGoalMonuments.js@@ -151,11 +151,13 @@ function compareByStatusThenId(a, b) {// `count` is how many monuments are actually placed, so the row is centered on MONUMENTS.base.// When `position` is supplied (goal-forest layout) it overrides the centered-row placement,// so the same monument view-model serves both the flat row and the hierarchy spires.-export function placeMonument(goal, index, count, now = Date.now(), position = null) {+// `heightScale` (forest spires) boosts the tower height; passing it here means milestone+// segments are computed once against the final height instead of re-segmented after.+export function placeMonument(goal, index, count, now = Date.now(), position = null, heightScale = 1) {const status = effectiveGoalStatus(goal, now);const style = STATUS_STYLES[status] || DEFAULT_STYLE;const completeness = buildCompleteness(goal, status);- const height = MONUMENTS.minHeight + completeness * (MONUMENTS.fullHeight - MONUMENTS.minHeight);+ const height = (MONUMENTS.minHeight + completeness * (MONUMENTS.fullHeight - MONUMENTS.minHeight)) * heightScale;// Center the row: slot 0 sits at the leftmost, the middle slot aligns with base.x.const offset = (index - (count - 1) / 2) * MONUMENTS.spacing;@@ -297,11 +299,10 @@ export function computeGoalForest(goals, now = Date.now()) {const clusterZ = FOREST.base[2];// Root spire — a placed monument boosted in height so it visually anchors the cluster.- // Re-segment milestones against the boosted height so floors fill the taller tower.- const spire = placeMonument(node.goal, 0, 1, now, [clusterX, 0, clusterZ]);- spire.height *= FOREST.spireBoost;+ // The spireBoost is applied inside placeMonument so milestone floors fill the taller+ // tower in one pass (no discarded re-segment).+ const spire = placeMonument(node.goal, 0, 1, now, [clusterX, 0, clusterZ], FOREST.spireBoost);spire.isSpire = true;- attachMilestones(spire, node.goal, spire.height);const childNodes = node.children.slice(0, FOREST.maxChildren);// Child overflow counts the folded-away children plus their own sub-trees, mirroring@@ -326,7 +327,8 @@ export function computeGoalForest(goals, now = Date.now()) {});// Links: from each child's apex up to the root spire's apex. Towers rise from a 0.4- // plinth, so the true top sits at 0.4 + height — match that so links join the tips.+ // plinth, so the nominal top sits at 0.4 + height — links join near the tips (segmented+ // towers leave a sub-floor gap below this from the inter-floor spacing, visually fine).const links = children.map((child) => ({from: [child.position[0], 0.4 + child.height, child.position[2]],to: [spire.position[0], 0.4 + spire.height, spire.position[2]],