Spaces:
Running
Running
Commit History
-
feat: add AI-powered Stock Picks tab with Gemini search grounding
Ramkumar Shanmugam- New POST /api/briefings/recommendations endpoint in briefings.py - Resolves current portfolio symbols from DB (owner) or request body (guest) - Calls Gemini with Google Search grounding to find top 5 NSE/BSE stocks - Filters out stocks already in user active portfolio - Added StockRecommendationItem and RecommendationsResponse Pydantic models in schemas.py - Added build_recommendations_prompt() and run_recommendations_analysis() in api_caller.py - Prompt enforces valuation strategy: P/E vs industry, ROE>15%, ROCE>15%, D/E<0.5, RSI<60 - Frontend App.tsx: - New StockRecommendationItem TypeScript interface - Stock Picks state and handleGetRecommendations() with 7-step animated progress - New Stock Picks tab button with AI badge (visible to all roles) - renderRecommendationsTab() with intro card, animated pulse-ring loading state, empty prompt state, responsive card grid with P/E P/B ROE D/E metric badges and expandable Why Now and Risk sections - Added pulse-ring…5c68d47