diff --git a/components/ScreenshotGallery.tsx b/components/ScreenshotGallery.tsx index 02856c9..aab88e7 100644 --- a/components/ScreenshotGallery.tsx +++ b/components/ScreenshotGallery.tsx @@ -43,7 +43,114 @@ export default function ScreenshotGallery({ if (screenshots.length === 0) { console.log('ScreenshotGallery: No screenshots to display') - return null + + // TEMPORARY: Show a test gallery with known screenshots for debugging + const testScreenshots = [ + '/screenshots/SOLUSD_240_ai_1752447978639.png', + '/screenshots/SOLUSD_15_ai_1752441315672.png' + ] + + console.log('ScreenshotGallery: Using test screenshots for debugging:', testScreenshots) + + return ( + <> + {/* Test Gallery Grid */} +
+
+

+ + 🧪 + + Test Screenshots (Debug Mode) +

+
+ {testScreenshots.length} test images • Click to enlarge +
+
+ +
+ {testScreenshots.map((screenshot, index) => { + const filename = screenshot.split('/').pop() || '' + const timeframe = index === 0 ? '4h' : '15m' + + return ( +
{ + console.log('Test image clicked:', screenshot) + onImageClick(screenshot) + }} + > +
+ {`${symbol} console.log(`Test image loaded successfully: ${screenshot}`)} + onError={(e: any) => { + console.error(`Test image failed to load: ${screenshot}`, e) + const target = e.target as HTMLImageElement + target.style.display = 'none' + }} + /> +
+
+
+
+
{symbol}
+
{timeframe} Timeframe (Test)
+
+
+ Click to view +
+
+
+
+ ) + })} +
+
+ + {/* Test Enlarged Image Modal */} + {enlargedImage && ( +
+
e.stopPropagation()}> + + Enlarged chart { + console.error('Failed to load enlarged image:', enlargedImage) + const target = e.target as HTMLImageElement + target.alt = 'Failed to load image' + }} + /> +
+
+
+
{symbol} Chart Analysis (Test Mode)
+
Debug screenshot • High resolution view
+
+
+ ESC to close • Click outside to close +
+
+
+
+
+ )} + + ) } // Helper function to format screenshot URL