Commit Graph

8 Commits

Author SHA1 Message Date
mindesbunister
8372b271cb Fix screenshot gallery layout and timeframe descriptions
- Extract both layout and timeframe information from filenames
- Group screenshots by layout (AI Layout, DIY Module)
- Sort timeframes within each layout group ascending (5m -> 4h)
- Display proper layout names and timeframes in descriptions
- Organize display as: first layout ascending, then second layout ascending
- Improve screenshot alt text with layout and timeframe info

Screenshots now properly show:
Top row: AI Layout (5m, 15m, 30m)
Bottom row: DIY Module (5m, 15m, 30m)
2025-07-17 13:09:46 +02:00
mindesbunister
4f328fab48 feat: update timeframe presets and improve sorting
- Add 30m and 2h timeframes to available options
- Update Scalping preset: 5m, 15m, 30m (was 5m, 15m, 1h)
- Update Day Trading preset: 1h, 2h, 4h (was 1h, 4h, 1d)
- Enhance sorting logic for screenshots and analysis results
- Ensure consistent timeframe order: 5m → 15m → 30m → 1h → 2h → 4h → 1d
- Improve multi-timeframe analysis display with proper sorting
- Update filename parsing to handle new timeframes

Changes improve trading workflow with more logical timeframe progressions
for scalping and day trading strategies.
2025-07-17 11:25:11 +02:00
mindesbunister
de45349baa Restore working dashboard and TradingView analysis
- Fixed layout conflicts by removing minimal layout.tsx in favor of complete layout.js
- Restored original AI Analysis page with full TradingView integration
- Connected enhanced screenshot API to real TradingView automation service
- Fixed screenshot gallery to handle both string and object formats
- Added image serving API route for screenshot display
- Resolved hydration mismatch issues with suppressHydrationWarning
- All navigation pages working (Analysis, Trading, Automation, Settings)
- TradingView automation successfully capturing screenshots from AI and DIY layouts
- Docker Compose v2 compatibility ensured

Working features:
- Homepage with hero section and status cards
- Navigation menu with Trading Bot branding
- Real TradingView screenshot capture
- AI-powered chart analysis
- Multi-layout support (AI + DIY module)
- Screenshot gallery with image serving
- API endpoints for balance, status, screenshots, trading
2025-07-14 14:21:19 +02:00
mindesbunister
23cab77200 🎉 FIXED: Screenshot gallery preview and enlargement functionality
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 
2025-07-14 01:22:30 +02:00
mindesbunister
1e65f5d87a Add test gallery for debugging screenshot functionality
- Add fallback test gallery when no screenshots provided
- Use known working screenshot URLs for testing
- Test click-to-enlarge and modal functionality
- Help isolate if issue is data flow or component rendering
2025-07-14 01:10:02 +02:00
mindesbunister
8087806a16 Add debugging to ScreenshotGallery component
- Add console logging for props, screenshot data, and image loading
- Add onLoad event to track successful image loads
- Add more detailed error logging for failed images
- Debug data flow to identify why gallery preview/enlargement not working
2025-07-14 01:07:23 +02:00
mindesbunister
045d4a41e3 Fix ScreenshotGallery and improve trade execution feedback
- Add keyboard ESC listener for closing enlarged screenshots
- Fix screenshot URL formatting to use /screenshots/[filename] route
- Improve trade execution error handling with detailed messages
- Show specific feedback for insufficient funds, auth issues, etc.
- Remove unused Modal import that was causing build errors
- Add click-outside-to-close functionality for enlarged images
2025-07-14 00:50:39 +02:00
mindesbunister
aa8ca9846b feat: Add trade execution and screenshot gallery to AI analysis
- Create TradeModal component for executing trades with entry, TP, SL
- Add ScreenshotGallery component with click-to-enlarge functionality
- Integrate trade buttons in both single and multi-timeframe analysis results
- Add screenshot gallery that displays captured TradingView charts
- Parse analysis data to pre-fill trade modal with AI recommendations
- Support trade execution via /api/trading endpoint
- Add visual indicators and smooth transitions for better UX

Trade button features:
- Pre-filled entry, take profit, and stop loss from AI analysis
- Configurable position size and leverage
- Real-time validation and error handling

Screenshot gallery features:
- Grid layout with hover effects
- Click to enlarge in full-screen modal
- Support for both single and multi-timeframe results
- Chart information overlay with timeframe labels
2025-07-14 00:34:13 +02:00