Commit Graph
5 Commits
Author SHA1 Message Date
Christian Vidal WolfandClaude Sonnet 4.6 0e1457bd3d fix: BSR rank line now shows in BSR vs Units Sold chart
BSRRecord.market is stored as short codes ('DE', 'IT', etc.) from the
Excel file, but the chart was comparing against full names ('Amazon DE',
'Amazon IT', etc.) — causing bsrRecordsForMarket to always be empty and
the BSR line to never render. Added normalizeBsrMarket() to map short
codes to full names before filtering. Also removed the debug strip.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 09:08:30 +01:00
Christian Vidal WolfandClaude Sonnet 4.6 9bdb7a5c4a debug: add diagnostic strip to BSR chart to identify data mismatch
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 11:33:47 +01:00
Christian Vidal WolfandClaude Sonnet 4.6 31d1755122 fix: use detailLevelBSR in BSR vs Units chart with topLevel fallback
Detail category BSR is more granular and relevant per ASIN. Falls back
to topLevelBSR if detailLevelBSR is null for a record.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 11:07:54 +01:00
Christian Vidal WolfandClaude Sonnet 4.6 f1e11ca79a fix: replace Math.max(...spread) with loop to prevent call stack overflow
Math.max(...largeArray) crashes when combinedAdsData has thousands of
records. Replaced with a simple for-loop to find the max year safely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 11:03:56 +01:00
Christian Vidal WolfandClaude Sonnet 4.6 3e3975cd2b feat: add BSR vs Units correlation chart to Vendor tab
New BSRUnitsCorrelationChart component added to the Vendor tab showing:
- Per-marketplace tabs (DE, ES, FR, IT, UK) with market accent colors
- Dual-axis combo chart: bars (units sold, right axis) + line (BSR rank, left axis)
- Inverted BSR axis by default (lower rank = top) with toggle to flip
- Pearson r correlation calculated and displayed with strength interpretation
- Wired to existing combinedAdsData (filtered) and filteredBsrData

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 10:58:01 +01:00