fix: timeframe handling and progress tracking improvements

- Fix timeframe parameter handling in enhanced-screenshot API route
- Support both 'timeframe' (singular) and 'timeframes' (array) parameters
- Add proper sessionId propagation for real-time progress tracking
- Enhance MACD analysis prompt with detailed crossover definitions
- Add progress tracker service with Server-Sent Events support
- Fix Next.js build errors in chart components (module variable conflicts)
- Change dev environment port from 9000:3000 to 9001:3000
- Improve AI analysis layout detection logic
- Add comprehensive progress tracking through all service layers
This commit is contained in:
mindesbunister
2025-07-17 10:41:18 +02:00
parent 27df0304c6
commit ff4e9737fb
26 changed files with 1656 additions and 277 deletions

View File

@@ -11,10 +11,10 @@ export default function DirectChart() {
console.log('Starting direct chart...')
// Import with explicit .mjs extension
const module = await import('lightweight-charts/dist/lightweight-charts.production.mjs')
console.log('Module loaded:', module)
const chartModule = await import('lightweight-charts')
console.log('Module loaded:', chartModule)
const { createChart, CandlestickSeries } = module
const { createChart } = chartModule
console.log('Functions extracted')
const chart = createChart(container, {
@@ -27,7 +27,7 @@ export default function DirectChart() {
})
console.log('Chart created')
const series = chart.addSeries(CandlestickSeries, {
const series = chart.addCandlestickSeries({
upColor: '#26a69a',
downColor: '#ef5350',
})