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:
desartstudio95
2026-05-03 12:02:27 +02:00
parent c336df2746
commit c95af0e973
9 changed files with 168 additions and 162 deletions
+2 -9
View File
@@ -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();
};
}, []);