Add Macro Report Generator to Trading tab

This commit is contained in:
root
2026-02-25 10:25:58 +01:00
parent 52ea3044a4
commit 71eb6c76c4
2 changed files with 87 additions and 0 deletions
@@ -3,6 +3,7 @@
import { useState, useEffect } from 'react'
import { TradingChart } from './TradingChart'
import { TradingTools } from './TradingTools'
import { MacroReportGenerator } from './MacroReportGenerator'
type TradingTab = 'research' | 'strategies' | 'execution' | 'journal' | 'tools'
@@ -275,6 +276,7 @@ export function TradingPanel() {
{ id: 'execution', label: '⚡ Execution', count: trades.filter(t => t.status === 'open').length },
{ id: 'journal', label: '📔 Journal', count: trades.length },
{ id: 'tools', label: '🧮 Tools', count: 3 },
{ id: 'macro', label: '📊 Macro Report', count: 0 },
]
const filteredTrades = trades.filter(t => {
@@ -564,6 +566,11 @@ export function TradingPanel() {
<TradingTools />
)}
{/* Macro Report Tab */}
{activeTab === 'macro' && (
<MacroReportGenerator />
)}
{/* Full Analysis Modal */}
{showFullAnalysis && (
<div className="fixed inset-0 bg-black/80 backdrop-blur-sm z-50 flex items-center justify-center p-4">