From 1ee57d5aeb548aefd505f53fa7d08d47cc8f4db7 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Wed, 6 May 2026 14:08:02 -0700 Subject: [PATCH] refactor(ui): migrate strategy dashboard actions --- web/src/tabs/MyStrategiesTab.tsx | 87 +++++++++++++++++--------------- 1 file changed, 46 insertions(+), 41 deletions(-) diff --git a/web/src/tabs/MyStrategiesTab.tsx b/web/src/tabs/MyStrategiesTab.tsx index 12025ac..c5cb9f4 100644 --- a/web/src/tabs/MyStrategiesTab.tsx +++ b/web/src/tabs/MyStrategiesTab.tsx @@ -27,6 +27,7 @@ import { StrategyWizard } from '../components/StrategyWizard'; import { BacktestRunnerPanel } from '../backtest/components/BacktestRunnerPanel'; import { useBacktestFeatureGate } from '../backtest/useBacktestFeatureGate'; import { deleteTradeProfile, fetchTradeProfiles, setTradeProfileActive } from '../lib/profileApi'; +import { Button, IconButton } from '../components/ui/Primitives'; function getStrategyKindLabel(config: any) { if (config?.type === 'visual') return 'Visual Builder'; @@ -103,17 +104,11 @@ const ActiveStrategyCard: React.FC<{
{onBacktest && ( - + } onClick={() => onBacktest(profile)} style={{ width: '38px', height: '38px', borderRadius: '10px', background: 'rgba(255,255,255,0.03)', border: '1px solid rgba(255,255,255,0.05)', display: 'flex', alignItems: 'center', justifyContent: 'center', color: '#555', cursor: 'pointer' }} className="icon-btn-hover" /> )} - - -
+ } onClick={() => onEdit(profile)} style={{ width: '38px', height: '38px', borderRadius: '10px', background: 'rgba(255,255,255,0.03)', border: '1px solid rgba(255,255,255,0.05)', display: 'flex', alignItems: 'center', justifyContent: 'center', color: '#555', cursor: 'pointer' }} className="icon-btn-hover" /> + } onClick={() => onDelete(profile.id)} style={{ width: '38px', height: '38px', borderRadius: '10px', background: 'rgba(255,255,255,0.03)', border: '1px solid rgba(255,255,255,0.05)', display: 'flex', alignItems: 'center', justifyContent: 'center', color: '#555', cursor: 'pointer' }} className="icon-btn-hover" /> + {/* 3. Identity */} @@ -156,9 +151,11 @@ const ActiveStrategyCard: React.FC<{ {/* 5. Health Diagnostic (Education Layer) */}
- +
{/* 6. Action */}
- +