From eb5b541a480224efc555ecd5b7857976298b2c4d Mon Sep 17 00:00:00 2001 From: Brian Love Date: Tue, 8 Aug 2023 14:52:58 -0400 Subject: [PATCH] Display filtered stock tickers in title Display only the filtered stock ticker subset in the title; the full list will be in the metadata table. Closes #25 --- web/gui-v2/src/components/DetailView.jsx | 4 ++-- web/gui-v2/src/components/DetailViewIntro.jsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/gui-v2/src/components/DetailView.jsx b/web/gui-v2/src/components/DetailView.jsx index f8826c30..afe652c8 100644 --- a/web/gui-v2/src/components/DetailView.jsx +++ b/web/gui-v2/src/components/DetailView.jsx @@ -118,8 +118,8 @@ const DetailView = ({ title={ <> {companyData.name} - {companyData.market_list && - <> ({companyData.market_list}) + {companyData.market_filt && companyData.market_filt.length > 0 && + <> ({companyData.market_filt.map(ticker => ticker.market_key).join(', ')}) } } diff --git a/web/gui-v2/src/components/DetailViewIntro.jsx b/web/gui-v2/src/components/DetailViewIntro.jsx index 780b0e0c..b3470b1a 100644 --- a/web/gui-v2/src/components/DetailViewIntro.jsx +++ b/web/gui-v2/src/components/DetailViewIntro.jsx @@ -35,7 +35,8 @@ const DetailViewIntro = ({ { title: "Country", data: data.country }, { title: "Region", data: data.continent }, { title: "Stage", data: data.stage }, - { title: "Groupings", data: "S&P 500" }, + // { title: "Groupings", data: "S&P 500" }, + { title: "Stock tickers", data: data.market_list }, ]; return (