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
test([issue-2673]): cityEasterEggs level 0 is authoritative, not null
[._.]/ Adam Eivy613a86912f50
diff --git a/client/src/utils/cityEasterEggs.test.js b/client/src/utils/cityEasterEggs.test.jsindex 9fb5121216..5a30f563cd 100644--- a/client/src/utils/cityEasterEggs.test.js+++ b/client/src/utils/cityEasterEggs.test.js@@ -13,9 +13,12 @@ const completedGoals = (n) =>Array.from({ length: n }, (_, i) => ({ id: `g-${i}`, status: 'completed' }));describe('eggContext', () => {- it('normalizes level to floored int >= 1, else null', () => {+ it('normalizes level to a floored nonnegative int, else null', () => {expect(eggContext({ character: { level: 7.9 } }).level).toBe(7);- expect(eggContext({ character: { level: 0 } }).level).toBeNull();+ // Age level 0 (birthDate < 1yr ago) is authoritative now (#2673), not null.+ expect(eggContext({ character: { level: 0 } }).level).toBe(0);+ // Explicit null (no birthDate) and an absent character both yield null.+ expect(eggContext({ character: { level: null } }).level).toBeNull();expect(eggContext({}).level).toBeNull();});