diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..32d2cc2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "chat.agent.maxRequests": 5000, + "github.copilot.chat.agent.autoFix": true +} \ No newline at end of file diff --git a/app/analysis/page.js b/app/analysis/page.js index 82d377f..290b193 100644 --- a/app/analysis/page.js +++ b/app/analysis/page.js @@ -4,17 +4,7 @@ import AIAnalysisPanel from '../../components/AIAnalysisPanel' export default function AnalysisPage() { return ( -
-
-

- ๐Ÿค– AI-Powered Market Analysis -

-

- Get professional trading insights with multi-timeframe analysis, precise entry/exit levels, - and institutional-quality recommendations powered by OpenAI. -

-
- +
) diff --git a/components/AIAnalysisPanel.tsx b/components/AIAnalysisPanel.tsx index 3600650..e787c6c 100644 --- a/components/AIAnalysisPanel.tsx +++ b/components/AIAnalysisPanel.tsx @@ -18,14 +18,10 @@ const timeframes = [ ] const popularCoins = [ - { name: 'Bitcoin', symbol: 'BTCUSD', icon: 'โ‚ฟ', color: 'from-orange-400 to-orange-600' }, - { name: 'Ethereum', symbol: 'ETHUSD', icon: 'ฮž', color: 'from-blue-400 to-blue-600' }, - { name: 'Solana', symbol: 'SOLUSD', icon: 'โ—Ž', color: 'from-purple-400 to-purple-600' }, - { name: 'Sui', symbol: 'SUIUSD', icon: '๐Ÿ”ท', color: 'from-cyan-400 to-cyan-600' }, - { name: 'Avalanche', symbol: 'AVAXUSD', icon: '๐Ÿ”บ', color: 'from-red-400 to-red-600' }, - { name: 'Cardano', symbol: 'ADAUSD', icon: 'โ™ ', color: 'from-indigo-400 to-indigo-600' }, - { name: 'Polygon', symbol: 'MATICUSD', icon: '๐Ÿ”ท', color: 'from-violet-400 to-violet-600' }, - { name: 'Chainlink', symbol: 'LINKUSD', icon: '๐Ÿ”—', color: 'from-blue-400 to-blue-600' }, + { name: 'Bitcoin', symbol: 'BTCUSD', icon: 'https://assets.coingecko.com/coins/images/1/small/bitcoin.png', color: 'from-orange-400 to-orange-600' }, + { name: 'Ethereum', symbol: 'ETHUSD', icon: 'https://assets.coingecko.com/coins/images/279/small/ethereum.png', color: 'from-blue-400 to-blue-600' }, + { name: 'Solana', symbol: 'SOLUSD', icon: 'https://assets.coingecko.com/coins/images/4128/small/solana.png', color: 'from-purple-400 to-purple-600' }, + { name: 'Sui', symbol: 'SUIUSD', icon: 'https://assets.coingecko.com/coins/images/26375/small/sui_asset.jpeg', color: 'from-cyan-400 to-cyan-600' }, ] // Progress tracking interfaces @@ -40,6 +36,7 @@ interface ProgressStep { } interface AnalysisProgress { + sessionId?: string currentStep: number totalSteps: number steps: ProgressStep[] @@ -328,30 +325,6 @@ export default function AIAnalysisPanel({ onAnalysisComplete }: AIAnalysisPanelP } } - const quickTimeframeTest = async (testTimeframe: string) => { - // Toggle the timeframe in selection instead of replacing - const newTimeframes = selectedTimeframes.includes(testTimeframe) - ? selectedTimeframes.filter(tf => tf !== testTimeframe) - : [...selectedTimeframes, testTimeframe] - - setSelectedTimeframes(newTimeframes) - - if (!loading && symbol && newTimeframes.length > 0) { - await performAnalysis(symbol, newTimeframes) - } - } - - const testAllTimeframes = async () => { - if (loading) return - - const allTimeframeValues = timeframes.map(tf => tf.value) - setSelectedTimeframes(allTimeframeValues) - - if (!loading && symbol) { - await performAnalysis(symbol, allTimeframeValues) - } - } - async function handleAnalyze() { await performAnalysis() } @@ -572,56 +545,8 @@ export default function AIAnalysisPanel({ onAnalysisComplete }: AIAnalysisPanelP
- {/* Coin Selection */} -
- {popularCoins.map(coin => ( - - ))} -
- - - {/* Advanced Analysis Section */} -
-

- - Advanced Analysis -

- - {/* Symbol Input */} -
-
- - setSymbol(e.target.value.toUpperCase())} - placeholder="e.g., BTCUSD, ETHUSD" - /> -
-
- {/* Timeframe Selection */} -
+
)}
+ + {/* Coin Selection */} +
+ {popularCoins.map(coin => ( + + ))} +
+
+ + {/* Advanced Analysis Section */} +
+

+ + Advanced Analysis +

+ + {/* Symbol Input */} +
+
+ + setSymbol(e.target.value.toUpperCase())} + placeholder="e.g., BTCUSD, ETHUSD" + /> +
+
{/* Layout Selection */}
- {layouts.map(layout => ( -
- - {/* Quick Timeframe Actions */} -
- -
- {timeframes.map(tf => ( - - ))} -
-
- - -
-
{/* Analyze Button */}