From 71b2be5ea9b11deef5661ab0bfd585c8eb86dc0d Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Sat, 21 Mar 2026 17:29:36 +0100 Subject: [PATCH] fix: sync Cosmos zones (instance+satellite colors) depuis brain prod --- brain-ui/src/components/cosmos/CosmosInfoPanel.tsx | 10 ++++++---- brain-ui/src/components/workspace/CosmosBackground.tsx | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/brain-ui/src/components/cosmos/CosmosInfoPanel.tsx b/brain-ui/src/components/cosmos/CosmosInfoPanel.tsx index 691fe6e..138166d 100644 --- a/brain-ui/src/components/cosmos/CosmosInfoPanel.tsx +++ b/brain-ui/src/components/cosmos/CosmosInfoPanel.tsx @@ -2,10 +2,12 @@ import { useState } from 'react' import type { CosmosPoint, ZoneKey } from '../../types' const ZONE_BADGE_COLORS: Record = { - public: { bg: 'rgba(229,231,235,0.1)', text: '#e5e7eb' }, - work: { bg: 'rgba(99,102,241,0.15)', text: '#6366f1' }, - kernel: { bg: 'rgba(239,68,68,0.15)', text: '#ef4444' }, - unknown: { bg: 'rgba(75,85,99,0.2)', text: '#6b7280' }, + public: { bg: 'rgba(229,231,235,0.1)', text: '#e5e7eb' }, + work: { bg: 'rgba(99,102,241,0.15)', text: '#6366f1' }, + kernel: { bg: 'rgba(239,68,68,0.15)', text: '#ef4444' }, + instance: { bg: 'rgba(168,85,247,0.15)', text: '#a855f7' }, + satellite: { bg: 'rgba(34,197,94,0.15)', text: '#22c55e' }, + unknown: { bg: 'rgba(75,85,99,0.2)', text: '#6b7280' }, } function getNearestNeighbors(target: CosmosPoint, all: CosmosPoint[], n = 10): CosmosPoint[] { diff --git a/brain-ui/src/components/workspace/CosmosBackground.tsx b/brain-ui/src/components/workspace/CosmosBackground.tsx index b93a456..d414bf3 100644 --- a/brain-ui/src/components/workspace/CosmosBackground.tsx +++ b/brain-ui/src/components/workspace/CosmosBackground.tsx @@ -3,10 +3,12 @@ import * as THREE from 'three' import type { CosmosPoint, ZoneKey } from '../../types' const ZONE_COLORS: Record = { - public: '#6366f1', - work: '#22c55e', - kernel: '#f59e0b', - unknown: '#6b7280', + public: '#6366f1', + work: '#22c55e', + kernel: '#f59e0b', + instance: '#a855f7', + satellite: '#3b82f6', + unknown: '#6b7280', } interface Props {