feat(vendor): switch BSR charts to daily resolution for smoother trend lines

- Add date? field to BSRRecord (ISO string YYYY-MM-DD)
- processBSRExcel now extracts and stores the Date column as an ISO date
  (handles both Excel serial numbers and string dates)
- VendorDataView groups chart data by date (daily) when dates are available,
  falling back to weekly buckets — eliminates straight-line charts caused
  by only 2 weekly data points

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
christian.vidal
2026-03-02 18:53:45 +01:00
co-authored by Claude Sonnet 4.6
parent 702bb021f8
commit 7f5aa1b812
3 changed files with 62 additions and 29 deletions
+1
View File
@@ -282,6 +282,7 @@ export interface VendorCSVRow {
export interface BSRRecord {
week: number;
date?: string; // ISO date string (YYYY-MM-DD) when available — enables daily resolution charts
market: string;
asin: string;
topLevelBSR: number | null;