vn6295337 Claude Opus 4.5 commited on
Commit
486ac42
·
1 Parent(s): a5c7991

Frontend: Reduce MCP server gaps except fundamentals-valuation

Browse files

- Keep 48px gap between Fundamentals and Valuation
- Reduce other MCP server gaps from 48px to 40px

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

frontend/src/components/ProcessFlow.tsx CHANGED
@@ -73,14 +73,15 @@ const NODES = {
73
  }
74
 
75
  const MCP_START_X = NODES.researcher.x + NODE_SIZE / 2 + 40
76
- const MCP_GAP = 48
 
77
  const MCP_SERVERS = [
78
  { id: 'fundamentals', label: 'Fundamentals', icon: DollarSign, x: MCP_START_X },
79
- { id: 'valuation', label: 'Valuation', icon: TrendingUp, x: MCP_START_X + MCP_GAP },
80
- { id: 'volatility', label: 'Volatility', icon: Activity, x: MCP_START_X + MCP_GAP * 2 },
81
- { id: 'macro', label: 'Macro (US)', icon: Globe, x: MCP_START_X + MCP_GAP * 3 },
82
- { id: 'news', label: 'News', icon: Newspaper, x: MCP_START_X + MCP_GAP * 4 },
83
- { id: 'sentiment', label: 'Sentiment', icon: MessageSquare, x: MCP_START_X + MCP_GAP * 5 },
84
  ]
85
 
86
  const AGENTS_CENTER_X = (NODES.analyzer.x + NODES.critic.x) / 2 // Now between Analyzer and Critic only
 
73
  }
74
 
75
  const MCP_START_X = NODES.researcher.x + NODE_SIZE / 2 + 40
76
+ const MCP_GAP_LARGE = 48 // Gap between fundamentals and valuation
77
+ const MCP_GAP_SMALL = 40 // Reduced gap for other servers
78
  const MCP_SERVERS = [
79
  { id: 'fundamentals', label: 'Fundamentals', icon: DollarSign, x: MCP_START_X },
80
+ { id: 'valuation', label: 'Valuation', icon: TrendingUp, x: MCP_START_X + MCP_GAP_LARGE },
81
+ { id: 'volatility', label: 'Volatility', icon: Activity, x: MCP_START_X + MCP_GAP_LARGE + MCP_GAP_SMALL },
82
+ { id: 'macro', label: 'Macro (US)', icon: Globe, x: MCP_START_X + MCP_GAP_LARGE + MCP_GAP_SMALL * 2 },
83
+ { id: 'news', label: 'News', icon: Newspaper, x: MCP_START_X + MCP_GAP_LARGE + MCP_GAP_SMALL * 3 },
84
+ { id: 'sentiment', label: 'Sentiment', icon: MessageSquare, x: MCP_START_X + MCP_GAP_LARGE + MCP_GAP_SMALL * 4 },
85
  ]
86
 
87
  const AGENTS_CENTER_X = (NODES.analyzer.x + NODES.critic.x) / 2 // Now between Analyzer and Critic only