Fix layout names to match exact TradingView account names

- Use exact layout names: 'ai' and 'Diy module' (as in TradingView)
- Update default selected layouts to ['ai', 'Diy module']
- Keep display names exactly as they appear in TradingView
- Add lowercase fallback mapping in backend for 'diy module'
- Remove normalization that was changing the exact names

This ensures UI shows exactly what's in the TradingView account and selection state matches display.
This commit is contained in:
mindesbunister
2025-07-17 12:20:27 +02:00
parent 0399103f8a
commit 19c764f9bc
2 changed files with 62 additions and 33 deletions

View File

@@ -17,7 +17,8 @@ export interface ScreenshotConfig {
const LAYOUT_URLS = {
'ai': 'Z1TzpUrf',
'diy': 'vWVvjLhP',
'Diy module': 'vWVvjLhP' // Alternative mapping for 'Diy module'
'Diy module': 'vWVvjLhP', // Exact TradingView name
'diy module': 'vWVvjLhP' // Lowercase fallback
}
export class EnhancedScreenshotService {