diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx index b2eebfa..7d2b916 100644 --- a/frontend/src/pages/DashboardPage.tsx +++ b/frontend/src/pages/DashboardPage.tsx @@ -13,7 +13,6 @@ import { OpenTradesPanel } from '../components/dashboard/OpenTradesPanel'; import { SkeletonCard, SkeletonTable } from '../components/ui/Skeleton'; import { formatPrice } from '../lib/format'; import { tradePnl } from '../lib/paperTrade'; -import { recommendationActionLabel } from '../lib/recommendation'; import { qualifiesSetup, activationSummary, primaryTargetProbability } from '../lib/qualification'; import type { TradeSetup } from '../lib/types'; @@ -60,6 +59,19 @@ function DirectionTag({ direction }: { direction: string }) { ); } +function convictionLabel(action: TradeSetup['recommended_action']): string { + if (!action || action === 'NEUTRAL') return '—'; + if (action.endsWith('_HIGH')) return 'High'; + if (action.endsWith('_MODERATE')) return 'Moderate'; + return '—'; +} + +function convictionClass(action: TradeSetup['recommended_action']): string { + if (action?.endsWith('_HIGH')) return 'text-emerald-300'; + if (action?.endsWith('_MODERATE')) return 'text-amber-300'; + return 'text-gray-400'; +} + export default function DashboardPage() { const trades = useTrades(); const watchlist = useWatchlist(); @@ -200,9 +212,9 @@ export default function DashboardPage() {