From 5371a1511bc4eff4ac03e80c906b1d0992706f18 Mon Sep 17 00:00:00 2001 From: Anjal Dev Date: Thu, 23 Jul 2026 15:22:25 +0530 Subject: [PATCH] feat:FRO-6/stock search and ui change --- .gitignore | 5 + index.html | 5 +- src/components/PortfolioView.tsx | 2 +- src/components/Sidebar.tsx | 314 ++++-------- src/components/StockSearchBar.tsx | 155 ++++++ src/features/globe/GlobeView.tsx | 1 - src/features/globe/useGlobe.ts | 2 +- src/index.css | 11 +- src/pages/LiveMarketDashboard.tsx | 540 ++++++++++----------- src/services/market.service.ts | 19 + src/styles/components/auth-layout.css | 288 ++++++----- src/styles/components/dashboard.css | 53 +- src/styles/components/live-market.css | 424 +++++++++++----- src/styles/components/portfolio.css | 174 +++---- src/styles/components/sidebar.css | 221 +++++++++ src/styles/components/stock-search-bar.css | 196 ++++++++ src/styles/tokens.css | 75 +-- 17 files changed, 1596 insertions(+), 889 deletions(-) create mode 100644 src/components/StockSearchBar.tsx create mode 100644 src/services/market.service.ts create mode 100644 src/styles/components/sidebar.css create mode 100644 src/styles/components/stock-search-bar.css diff --git a/.gitignore b/.gitignore index 6ec3233..fa342d2 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,8 @@ dist-ssr # Test coverage coverage + +# Local Agent Skills +.agents/ +skills-lock.json + diff --git a/index.html b/index.html index 7a9b15e..4108fb7 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,10 @@ AI Trading Copilot โ€” Discipline-Driven Market Intelligence - + + + + diff --git a/src/components/PortfolioView.tsx b/src/components/PortfolioView.tsx index 90469ef..8ce6679 100644 --- a/src/components/PortfolioView.tsx +++ b/src/components/PortfolioView.tsx @@ -178,7 +178,7 @@ export const PortfolioView: React.FC = () => { {isFull && ( -

+

๐Ÿ’ก Your portfolio capacity is full (5/5 symbols limit). Remove an existing stock to add a new one.

diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index a9959ab..89f7e43 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,7 +1,19 @@ import React from 'react'; import { useNavigate, useLocation } from 'react-router-dom'; +import { + Zap, + Search, + LayoutGrid, + PieChart, + LineChart, + Bot, + Globe, + Settings, + LogOut, +} from 'lucide-react'; import type { UserResponse } from '@/features/auth/auth.types'; import { ROUTES } from '@/constants/routes.constants'; +import '@/styles/components/sidebar.css'; interface SidebarProps { user: UserResponse | null; @@ -12,243 +24,109 @@ export const Sidebar: React.FC = ({ user, onLogout }) => { const navigate = useNavigate(); const location = useLocation(); - const isDashboardActive = location.pathname === ROUTES.DASHBOARD; const isExploreActive = location.pathname === ROUTES.EXPLORE; + const isDashboardActive = location.pathname === ROUTES.DASHBOARD; - return ( -