-
-
Notifications
You must be signed in to change notification settings - Fork 20
feat: Added AI powered stock Analyser ChatBot #69
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 appears to be temporary debugging code that disables the preloader. Please revert this to the original logic before merging.
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 />; | ||||||||
| } | ||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,7 @@ import { ThemeProvider } from "@/components/theme-provider"; | |||||
| import { Toaster as Sonner } from "@/components/ui/sonner"; | ||||||
| import { Toaster } from "@/components/ui/toaster"; | ||||||
| import { TooltipProvider } from "@/components/ui/tooltip"; | ||||||
| import Chatbot from "./components/chatbot"; | ||||||
|
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 import uses a relative path (
Suggested change
|
||||||
| import "@/styles/globals.css"; | ||||||
| import { Analytics } from '@vercel/analytics/react'; | ||||||
| import { Inter } from "next/font/google"; | ||||||
|
|
@@ -50,6 +51,7 @@ export default function RootLayout({ | |||||
| <ThemeProvider defaultTheme="system" attribute="class"> | ||||||
| <TooltipProvider> | ||||||
| {children} | ||||||
| <Chatbot /> | ||||||
| <Toaster /> | ||||||
| <Sonner /> | ||||||
| </TooltipProvider> | ||||||
|
|
||||||
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 are being included a second time. They are already included on lines 41-44. This will create duplicate endpoints for
auth,stocks,market, andportfolios—one set at the root and another under the/apiprefix. Please remove the initial router inclusions on lines 41-44 to resolve this.