From 63a0a351e76bceea64912209d5d3cbe264326f38 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Thu, 7 May 2026 13:36:41 -0700 Subject: [PATCH] refactor(ui): polish right rail empty states --- web/src/components/layout/RightPanel.tsx | 35 ++++++++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/web/src/components/layout/RightPanel.tsx b/web/src/components/layout/RightPanel.tsx index ad62dd5..9deeacb 100644 --- a/web/src/components/layout/RightPanel.tsx +++ b/web/src/components/layout/RightPanel.tsx @@ -3,7 +3,7 @@ import { ArrowRight } from 'lucide-react'; import { useAppContext } from '../../context/AppContext'; import { fetchNews, type NewsArticle as MarketNewsArticle } from '../../lib/marketApi'; import { SkeletonBlock, SkeletonText } from '../Skeleton'; -import { Button } from '../ui/button'; +import { Button } from '../ui/Primitives'; // ─── Portfolio Summary ──────────────────────────────────────────────────────── @@ -61,8 +61,18 @@ function PortfolioSummary() { {/* Rows */} {positions.length === 0 ? ( -
- No open positions +
+
No open positions
+
+ Filled Trade Plans and manual entries will appear here. +
) : (
@@ -73,7 +83,7 @@ function PortfolioSummary() {
@@ -214,8 +224,21 @@ function NewsFeed() { )} {!loading && !error && news.length === 0 && ( -
- {activeSymbol ? `No news found for ${activeSymbol}` : 'Search a ticker to see news'} +
+
+ {activeSymbol ? `No news for ${activeSymbol}` : 'No symbol selected'} +
+
+ {activeSymbol ? 'Try another ticker or check back after the next market update.' : 'Search a ticker to load market news.'} +
)}