-
-
Notifications
You must be signed in to change notification settings - Fork 20
"feat: Added AI-powered stock analysis chatbot #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,4 +21,5 @@ pandas>=2.1.0 | |
| numpy>=1.25.0 | ||
| yfinance>=0.2.0 | ||
| requests>=2.31.0 | ||
| aiofiles>=23.2.0 | ||
| aiofiles>=23.2.0 | ||
| aiohttp>=3.8.0 | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,22 +1,25 @@ | ||||||||
| "use client"; | ||||||||
| import { useEffect, useState } from "react"; | ||||||||
| import Landing from "@/components/Landing"; | ||||||||
| import SimpleLanding from "@/components/SimpleLanding"; | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||
| import Preloader from "@/components/Preloder"; | ||||||||
|
|
||||||||
| let hasShownPreloader = false; | ||||||||
| export default function HomeClient() { | ||||||||
| const [isLoading, setIsLoading] = useState(!hasShownPreloader); | ||||||||
| // Temporarily disable preloader for debugging | ||||||||
| const [isLoading, setIsLoading] = useState(false); | ||||||||
|
Comment on lines
+9
to
+10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change disables the preloader, likely for debugging purposes. This should be reverted to the original logic to ensure the preloader is shown to new visitors as intended.
Suggested change
|
||||||||
|
|
||||||||
| useEffect(() => { | ||||||||
| if (!hasShownPreloader) { | ||||||||
| const timer = setTimeout(() => { | ||||||||
| setIsLoading(false); | ||||||||
| hasShownPreloader = true; | ||||||||
| }, 2500); | ||||||||
| }, 500); // Reduced to 0.5 seconds for testing | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||
|
|
||||||||
| return () => clearTimeout(timer); | ||||||||
| } | ||||||||
| }, []); | ||||||||
|
|
||||||||
| // Use original Landing component | ||||||||
| return isLoading ? <Preloader /> : <Landing />; | ||||||||
| } | ||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These routers (
auth,stocks,market,portfolios) are already included on lines 41-44 without a prefix. Including them again here with the/apiprefix creates duplicate API endpoints. To fix this, you should remove the redundantapp.include_routercalls on lines 41-44.