🔒 Implement concurrency protection and remove marketing text

- Add analysisInProgress useRef to prevent multiple simultaneous analyses
- Protect all analysis entry points (performAnalysis, quickAnalyze, etc.)
- Update button disabled state to include concurrency check
- Remove marketing text from analysis page and AIAnalysisPanel
- Fix remaining TypeScript compilation errors in chart components
- Ensure clean UI without promotional content

Fixes sync issues caused by overlapping analysis sessions
This commit is contained in:
mindesbunister
2025-07-17 14:00:24 +02:00
parent 8372b271cb
commit 4ff35b8e04
9 changed files with 65 additions and 52 deletions

View File

@@ -31,8 +31,8 @@ export default function DebugChart() {
addLog('Available exports: ' + Object.keys(LightweightChartsModule).join(', '))
const { createChart, ColorType, CrosshairMode } = LightweightChartsModule
addLog('Extracted createChart and other components')
const { createChart } = LightweightChartsModule
addLog('Extracted createChart')
addLog('Creating chart...')
const chart = createChart(chartContainerRef.current!, {
@@ -46,7 +46,7 @@ export default function DebugChart() {
addLog('Chart created successfully')
addLog('Adding candlestick series...')
const candlestickSeries = chart.addCandlestickSeries({
const candlestickSeries = (chart as any).addCandlestickSeries({
upColor: '#26a69a',
downColor: '#ef5350',
})