From 1278b5d4ebc3ae0ecce2715edb34124d7f119b76 Mon Sep 17 00:00:00 2001 From: Deep Koluguri Date: Sat, 27 Jun 2026 15:02:34 -0400 Subject: [PATCH] style: Move StockDetailPanel directly under the search bar for better UX --- frontend/src/App.jsx | 12 +++++------- .../src/components/dashboard/MarketScreenerPanel.jsx | 12 +++++++++++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 435c20e..aec1070 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -66,13 +66,11 @@ export default function App() { - - {selectedSymbol && ( - setSelectedSymbol(null)} - /> - )} + setSelectedSymbol(null)} + /> diff --git a/frontend/src/components/dashboard/MarketScreenerPanel.jsx b/frontend/src/components/dashboard/MarketScreenerPanel.jsx index a95170c..f0161ab 100644 --- a/frontend/src/components/dashboard/MarketScreenerPanel.jsx +++ b/frontend/src/components/dashboard/MarketScreenerPanel.jsx @@ -1,5 +1,6 @@ import { useState, useEffect, useCallback, useRef } from 'react'; import MacroIndicatorsPanel from './MacroIndicatorsPanel'; +import StockDetailPanel from './StockDetailPanel'; const API_BASE = import.meta.env.VITE_API_URL || ''; @@ -203,7 +204,7 @@ function SearchBar({ onResult, onClear }) { } // ─── Main Component ─────────────────────────────────────────────────────────── -export default function MarketScreenerPanel({ onSelectSymbol }) { +export default function MarketScreenerPanel({ selectedSymbol, onSelectSymbol, onCloseSymbol }) { const [screenerData, setScreenerData] = useState(null); const [leaderboard, setLeaderboard] = useState(null); const [loading, setLoading] = useState(true); @@ -308,6 +309,15 @@ export default function MarketScreenerPanel({ onSelectSymbol }) { + {selectedSymbol && ( +
+ +
+ )} + {/* ─── Factor Grid ─────────────────────────────────────────────────── */}