From fbf5bc37df61c0349647217cbbf0ad7a9d197fc5 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 17 May 2026 00:24:43 -0700 Subject: Add QuoteTable as empty-state landing page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renders watchlist tickers as a styled psm-card data table (Symbol, Sector, Last, Δ, % Day, Volume) when no ticker is selected. Falls back to the existing placeholder when the watchlist is empty. Uses the same JS hidden-input click pattern as the sidebar watchlist. Co-Authored-By: Claude Sonnet 4.6 --- app.py | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 8145d03..c9f36a7 100644 --- a/app.py +++ b/app.py @@ -587,6 +587,7 @@ pio.templates.default = "prism" from components.market_bar import render_market_bar from components.top_movers import render_top_movers from components.watchlist import render_watchlist +from components.quotetable import render_quotetable from components.overview import render_overview from components.financials import render_financials from components.valuation import render_valuation @@ -765,22 +766,26 @@ st.divider() # ── Main Content ────────────────────────────────────────────────────────────── if not ticker: - st.markdown(""" -
-
Search for a ticker to begin.
-
Enter a company name or symbol in the sidebar.
-
- """, unsafe_allow_html=True) + _watchlist = st.session_state.get("watchlist", []) + if _watchlist: + render_quotetable(_watchlist) + else: + st.markdown(""" +
+
Search for a ticker to begin.
+
Enter a company name or symbol in the sidebar.
+
+ """, unsafe_allow_html=True) st.stop() # ── Ticker Header + KPI Strip ───────────────────────────────────────────────── -- cgit v1.3-2-g0d8e