fix: sync Cosmos zones (instance+satellite colors) depuis brain prod

This commit is contained in:
2026-03-21 17:29:36 +01:00
parent 5c060dcc1c
commit 71b2be5ea9
2 changed files with 12 additions and 8 deletions

View File

@@ -2,10 +2,12 @@ import { useState } from 'react'
import type { CosmosPoint, ZoneKey } from '../../types'
const ZONE_BADGE_COLORS: Record<ZoneKey, { bg: string; text: string }> = {
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[] {

View File

@@ -3,10 +3,12 @@ import * as THREE from 'three'
import type { CosmosPoint, ZoneKey } from '../../types'
const ZONE_COLORS: Record<ZoneKey, string> = {
public: '#6366f1',
work: '#22c55e',
kernel: '#f59e0b',
unknown: '#6b7280',
public: '#6366f1',
work: '#22c55e',
kernel: '#f59e0b',
instance: '#a855f7',
satellite: '#3b82f6',
unknown: '#6b7280',
}
interface Props {