Major Issues Resolved: - Screenshot gallery images now load and display correctly - Click-to-enlarge modal functionality working - ESC key closes enlarged images (confirmed working) - Click-outside-to-close functionality added - Created new /api/image route to serve screenshots (bypasses Next.js 15 route issue) - Fixed screenshot URL formatting to use query parameter format - Added proper keyboard event handling for ESC key - Improved timeframe extraction from screenshot filenames - Enhanced trade execution error handling with detailed feedback - Fixed Next.js build cache issues causing route problems - Cleaned up debugging console logs - Restored normal conditional gallery rendering - Proper error handling for image loading failures The screenshot gallery now fully works: 1. Images display in grid layout ✅ 2. Click any image to enlarge ✅ 3. ESC key closes enlarged view ✅ 4. Click outside modal to close ✅ 5. Proper timeframe labeling ✅ 6. Trade execution shows detailed error messages ✅
13 lines
358 B
TypeScript
13 lines
358 B
TypeScript
import { NextRequest, NextResponse } from 'next/server'
|
|
|
|
export async function GET(req: NextRequest) {
|
|
return NextResponse.json({
|
|
message: 'Test endpoint working',
|
|
timestamp: new Date().toISOString(),
|
|
screenshots: [
|
|
'/app/screenshots/SOLUSD_240_ai_1752448407811.png',
|
|
'/app/screenshots/SOLUSD_15_ai_1752441315672.png'
|
|
]
|
|
})
|
|
}
|