diff --git a/docs/UX_THEME_NORMALIZATION_HANDOFF.md b/docs/UX_THEME_NORMALIZATION_HANDOFF.md index 9faa659..ae83ce0 100644 --- a/docs/UX_THEME_NORMALIZATION_HANDOFF.md +++ b/docs/UX_THEME_NORMALIZATION_HANDOFF.md @@ -95,8 +95,8 @@ Current public bundle: ## Phase 4: Remaining legacy component cleanup -- [ ] Normalize `web/src/components/TradeProfileManager.tsx` -- [ ] Normalize `web/src/components/StrategyWizard.tsx` +- [x] Normalize `web/src/components/TradeProfileManager.tsx` +- [x] Normalize `web/src/components/StrategyWizard.tsx` - [ ] Normalize `web/src/tabs/ReconciliationAuditPanel.tsx` - [ ] Normalize `web/src/components/GlobalConfigManager.tsx` - [ ] Normalize `web/src/components/EntryForm.tsx` diff --git a/web/src/components/StrategyWizard.tsx b/web/src/components/StrategyWizard.tsx index 90cdfb2..4b47d32 100644 --- a/web/src/components/StrategyWizard.tsx +++ b/web/src/components/StrategyWizard.tsx @@ -21,6 +21,9 @@ import { useAuth } from './AuthContext'; import { BacktestRunnerPanel } from '../backtest/components/BacktestRunnerPanel'; import { useBacktestFeatureGate } from '../backtest/useBacktestFeatureGate'; import { createTradeProfile, updateTradeProfile } from '../lib/profileApi'; +import { Button } from './ui/button'; +import { Card } from './ui/card'; +import { Input } from './ui/input'; interface WizardState { step: number; @@ -43,6 +46,13 @@ const SESSION_MAP = { 'Asia only': 'TOK,SYD' }; +const sectionTitleClass = 'mb-2 text-2xl font-bold text-[var(--foreground)]'; +const sectionDescriptionClass = 'text-sm text-[var(--muted-foreground)]'; +const labelClass = 'text-xs font-bold uppercase tracking-widest text-[var(--muted-foreground)]'; +const optionBaseClass = 'w-full rounded-2xl border-2 p-5 text-left transition-all'; +const optionSelectedClass = 'border-[var(--accent)] bg-[var(--accent-soft)]'; +const optionIdleClass = 'border-[var(--border)] bg-[var(--card)] hover:border-[var(--border-strong)]'; + const buildStrategyConfig = (state: WizardState) => ({ rules: [ { ruleId: 'RiskManagementRule', enabled: true, ruleType: 'mandatory', params: {} }, @@ -148,16 +158,16 @@ export const StrategyWizard: React.FC<{ }; return ( -
Select a pre-configured risk style. High-frequency options seek more opportunities but require more flexibility.
+Select a pre-configured risk style. High-frequency options seek more opportunities but require more flexibility.
Define what to trade and how much capital to use.
+Define what to trade and how much capital to use.
Total USD balance this bot is allowed to manage.
+ +Total USD balance this bot is allowed to manage.
When should the bot look for signals?
+When should the bot look for signals?