fix: update analytics UI to show TradingView indicator versions correctly

- Changed section title: 'Signal Quality Logic Versions' → 'TradingView Indicator Versions'
- Updated current version marker: v3 → v6
- Added version sorting: v6 first, then v5, then unknown
- Updated description to reflect indicator strategy comparison

Context:
- User clarified: V4 display = v6 data, V1 display = v5 data
- Dashboard now shows indicator versions in proper order
- 154 unknown (pre-tracking), 15 v6 (HalfTrend), 4 v5 (Buy/Sell)
This commit is contained in:
mindesbunister
2025-11-14 13:15:30 +01:00
parent 6e8da10f7d
commit 2cda751dc4
2 changed files with 12 additions and 5 deletions

View File

@@ -113,6 +113,14 @@ export async function GET() {
}
})
// Sort versions: v6 first, then v5, then unknown
const versionOrder: Record<string, number> = { 'v6': 0, 'v5': 1, 'unknown': 2 }
results.sort((a, b) => {
const orderA = versionOrder[a.version] ?? 999
const orderB = versionOrder[b.version] ?? 999
return orderA - orderB
})
// Get version descriptions
const versionDescriptions: Record<string, string> = {
'v5': 'Buy/Sell Signal strategy (pre-Nov 12)',