Commit Graph

2 Commits

Author SHA1 Message Date
root c3f5aba330 fix: make AI stock analysis lazy-load instead of blocking page render
The AI analysis card now fetches asynchronously on the client side after
the page mounts, instead of blocking the entire server-rendered page until
the LLM returns. A loading skeleton with animate-pulse is shown while the
analysis is being generated.

- Convert StockAIAnalysisCard to client component with useEffect fetch
- Page now only awaits fast sentiment insights server-side
- Add getAIAnalysis server action for client-side AI analysis requests
- Show loading skeleton and error states in the AI analysis card

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 14:48:51 +00:00
root 0ec58caa62 feat: add AI-powered stock analysis with real-time insights
- Add StockAIAnalysisCard component for displaying AI analysis results
- Add stock-analysis server actions and helper utilities
- Integrate Finnhub data into AI analysis pipeline
- Update AI provider with enhanced stock analysis capabilities
- Add Inngest prompt templates for stock analysis
- Wire AI analysis into stock symbol page
- Add unit tests for stock analysis helpers

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 17:11:45 +00:00