From 1300de98a9dd0f4019737975402b8520da72fe10 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Sat, 9 May 2026 01:55:28 -0700 Subject: [PATCH] refactor(ui): align wizard and overview controls --- web/src/components/StrategyWizard.tsx | 46 +++++++++++++++------------ web/src/tabs/OverviewTab.tsx | 12 ++++--- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/web/src/components/StrategyWizard.tsx b/web/src/components/StrategyWizard.tsx index 4b47d32..6ea880e 100644 --- a/web/src/components/StrategyWizard.tsx +++ b/web/src/components/StrategyWizard.tsx @@ -185,9 +185,11 @@ export const StrategyWizard: React.FC<{ const isLocked = !isFeatureAllowed(tier, 'risk_style', style.id); return (
-

{style.description}

- - - + + + {isLocked && (
Pro/Elite Only @@ -246,10 +248,12 @@ export const StrategyWizard: React.FC<{
{ASSETS.map(asset => ( - + > + {asset.label} + ))}
@@ -335,9 +339,11 @@ export const StrategyWizard: React.FC<{
{(['24/7', 'London + New York', 'Asia only'] as const).map(option => ( -
- - - ))} + + + + ))}
diff --git a/web/src/tabs/OverviewTab.tsx b/web/src/tabs/OverviewTab.tsx index 25692e9..a800f68 100644 --- a/web/src/tabs/OverviewTab.tsx +++ b/web/src/tabs/OverviewTab.tsx @@ -4,6 +4,7 @@ import { useAuth } from '../components/AuthContext'; import { aggregateCanonicalLifecycleTrades } from '../lib/orderLifecycleLedger'; import { useCanonicalLifecycle } from '../hooks/useCanonicalLifecycle'; import { fetchTradeProfiles } from '../lib/profileApi'; +import { Button } from '../components/ui/Primitives'; interface OverviewTabProps { botState: BotState; @@ -623,22 +624,23 @@ export const OverviewTab = ({ botState, previewAsCustomer = false, connected = t {WIN_RATE_WINDOW_OPTIONS.map((option) => { const active = option.key === winRateWindow; return ( - + ); })}