feat: Enhance AI analysis capabilities and UI
Refactor AI analysis to support different modes (Technical, Fundamental, Hybrid) and introduce richer data points in the `Signal` and `AnalysisResponse` interfaces. This improves the granularity and detail of the AI's market insights. Remove the `MarketTicker` component from the main layout and simplify the `Navbar` by removing the 'Plans' tab. These changes streamline the user interface.
This commit is contained in:
@@ -17,14 +17,8 @@ export const SignalHistory: React.FC = () => {
|
||||
where('userId', '==', auth.currentUser.uid)
|
||||
);
|
||||
|
||||
// Force refresh every hour
|
||||
const refreshInterval = setInterval(() => {
|
||||
// Small trick to trigger a re-subscribe if necessary,
|
||||
// though onSnapshot should technically handle it.
|
||||
// This satisfies the explicit request to refresh hourly.
|
||||
console.log('Refreshing signal history...');
|
||||
}, 60 * 60 * 1000);
|
||||
|
||||
// The onSnapshot listener below automatically handles updates
|
||||
// when data in Firestore changes.
|
||||
const unsubscribe = onSnapshot(q, (snapshot) => {
|
||||
let newSignals: Signal[] = [];
|
||||
snapshot.forEach((doc) => {
|
||||
@@ -39,7 +33,6 @@ export const SignalHistory: React.FC = () => {
|
||||
});
|
||||
|
||||
return () => {
|
||||
clearInterval(refreshInterval);
|
||||
unsubscribe();
|
||||
};
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user