Commit Graph
53 Commits
Author SHA1 Message Date
Christian Vidal WolfandClaude Sonnet 4.6 43a532a6f0 fix: use adsData directly for ad spend totals in DataGrid header
Previously the Filtered Totals header row summed ad spend from pivot rows,
which excluded ads-only records (ASINs with zero sales) due to isRealSale filter.
Now uses adSpendByYear memo from raw adsData, matching Dashboard calculation.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-11 15:19:40 +02:00
Christian Vidal Wolf a13ddcb46c debug: console logs for ad spend diff 2026-05-11 15:06:41 +02:00
Christian Vidal Wolf 4d52928321 fix: resolve DataGrid search and filtering issues by consolidating search logic in filterData and fixing aggregation-aware filtering 2026-04-30 10:51:56 +02:00
Christian Vidal Wolf e7f48af099 Fix: remove duplicated Top50 ranking badges, keep only leftmost instance 2026-04-27 11:44:17 +02:00
Christian Vidal Wolf 1fc494fc3f Fix: consolidate stock badges and update WOC calculation to include internal warehouse stock 2026-04-27 11:40:36 +02:00
Christian Vidal Wolf 99e4b2c34b Fix: restore Top50 ranking badges (white/gradient) next to inventory badges across all views 2026-04-27 11:33:07 +02:00
Christian Vidal WolfandClaude Sonnet 4.6 eadbaf3492 Feat: add hover tooltip on TOTALS row in Weekly Sales with WoW and YoY comparison
Shows previous week and same week prior year values (Units, Revenue, Ads Spend, GV) with % change indicators when hovering any week cell in the TOTALS row.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 11:22:53 +02:00
Christian Vidal Wolf 73625526ed fix: exhaustive zero-spread safety audit and render logging 2026-04-16 12:18:52 +02:00
Christian Vidal Wolf 630941c96a fix: resolve white screen by removing stack-unfriendly spread operators and adding diagnostic logs 2026-04-16 12:02:49 +02:00
Christian Vidal WolfandClaude Sonnet 4.6 507af94e1a fix: move BuyBoxWarningBadge inside stockMap block to prevent duplication
The badge was rendered outside the stockMap conditional, causing it to
appear independently of the Amazon stock badge. Now it's grouped inside
the block, always appearing immediately next to VendorStockBadge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 10:23:28 +01:00
Christian Vidal WolfandQwen-Coder c58b246c41 fix: remove duplicate buybox lost badge from SKU column in GRID
The BuyBoxWarningBadge was appearing twice - once next to the SKU and once next to Amazon stock. Now it only appears next to Amazon stock as requested.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-09 09:52:33 +01:00
Christian Vidal WolfandClaude Sonnet 4.6 4afae59de9 fix(DataGrid): show BuyBoxWarningBadge in title dimension
The badge was only rendered for dim==='asin'|'sku'. When pivoting by
title (the default view) the BuyBox warning was silently absent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 13:29:41 +01:00
Christian Vidal WolfandClaude Opus 4.6 9895545910 feat: full mobile responsive optimization for Android/iPhone
- Add bottom navigation bar (6 tabs) for mobile, hidden on desktop
- Compact header with smaller logo and reduced padding on mobile
- Collapsible filter bar with active filter count badge on mobile
- Bottom-sheet style dropdowns with overlay and larger touch targets
- Fullscreen AI chat on mobile, floating window on desktop
- Responsive dashboard cards with always-visible expand button
- Smaller table text and touch-friendly scroll on all data grids
- iPhone safe-area support and thinner scrollbars on mobile

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 09:27:46 +01:00
Christian Vidal Wolf ee608cd042 Optimize Grid header UI: reduce font sizes, padding, and improve alignment of metric columns 2026-02-09 12:13:51 +01:00
Christian Vidal Wolf 81c946b3e1 Enhance Excel-style filters with numeric operators and integrate into GRID metrics (Sell Out, Units) 2026-02-09 12:09:01 +01:00
Christian Vidal Wolf d5bcbeda1a Fix GRID tab empty table regression by correcting filter logic and prop passing 2026-02-09 12:05:03 +01:00
Christian Vidal Wolf ac791b5265 Implement Excel-style filters (SKU, ASIN, Title, Line) across GRID, WEEKLY SALES, and FC26 tabs 2026-02-09 12:00:39 +01:00
Christian Vidal Wolf 86547bdf0d style: relocate search bar to top toolbar for better visibility 2026-02-06 10:31:37 +01:00
Christian Vidal Wolf 62d4903566 feat: implement bulk search for ASINs/SKUs in DataGrid 2026-02-06 09:22:24 +01:00
Christian Vidal Wolf ceb389cfb0 feat: Add YTD (Year-To-Date) cumulative lines to chart
- Calculate accumulated Sell Out and Units per week for each year
- Add toggle button to show/hide YTD lines (cyan color)
- YTD lines use thicker stroke with lower opacity for distinction
2026-02-02 11:38:26 +01:00
Christian Vidal Wolf dfe9a88ceb fix: Make expanded chart fill entire screen (vertical + horizontal)
- Updated ExpandableChartCard to use flex-1 + min-h-0 for proper height
- Added CSS selectors to make child divs fill available space
- Chart now expands to fullscreen in both dimensions
2026-02-02 11:31:26 +01:00
Christian Vidal Wolf f26ea171ce feat: add Top 50 filter and sorting to DataGrid + fix BuyBox badge hover 2026-01-30 08:51:20 +01:00
christian.vidal 2c6b9c9f5a Implement Grid-specific YTD filtering and default sorting 2026-01-29 20:27:19 +01:00
christian.vidal 0211124879 Set default Grid columns to SKU and Title only 2026-01-29 20:15:14 +01:00
christian.vidal fc941bbac7 Increase Title column width to 450px 2026-01-29 20:12:19 +01:00
christian.vidal a856aaae4b Optimize Title column width and add tooltip 2026-01-29 20:00:54 +01:00
christian.vidal 5dce7992e1 Fix Week Coverage calculation in DataGrid 2026-01-29 18:56:31 +01:00
christian.vidal 815c9bc934 Fix Column selector visibility and z-index 2026-01-29 18:50:46 +01:00
christian.vidal 367440fa6b Rename Group By button to Columns in DataGrid 2026-01-29 18:44:35 +01:00
Christian Vidal Wolf b54f6f8030 Fix Buy Box badge visibility in Grid tab by preserving metadata in pivot; add row z-index 2026-01-29 15:43:18 +01:00
Christian Vidal Wolf fcc8096b01 Integrate Buy Box warnings in Grid tab; fix prop regression in App.tsx 2026-01-29 13:45:41 +01:00
Christian Vidal Wolf 97071c7b62 feat: integrate Amazon Vendor Stock data across all views and fix local data loading 2026-01-28 09:46:59 +01:00
Christian Vidal Wolf 6c788d335f Refactor: Unified Top 50 Badge logic and shared component integration 2026-01-28 08:55:09 +01:00
Christian Vidal Wolf 6541f6655a Refine StockBadge design to Top 50 style and move to title row across all views 2026-01-27 18:23:18 +01:00
Christian Vidal Wolf 0d1d2c77d4 Integrate stock availability data and StockBadge component across all views 2026-01-27 16:51:38 +01:00
Christian Vidal Wolf 219d050bf2 Refactor: Switched all exports to .xlsx and enhanced Weekly Grid export 2026-01-27 15:55:59 +01:00
Christian Vidal Wolf 83470042b4 style: clean header and refine Group By filter dropdown in Grid tab 2026-01-26 16:06:39 +01:00
Christian Vidal Wolf 18c4ef375b feat: improve 'Group By' dropdown UI/UX in Grid tab (click-to-open and click-outside to close) 2026-01-26 15:16:28 +01:00
Christian Vidal Wolf 473174f7e6 feat: add Ad Spend and TACOS totals to Data Grid header
- DataGrid.tsx: Enhanced filteredTotalsByYear to aggregate advertising metrics
- DataGrid.tsx: Updated header row to include Ad Spend and TACOS cells per year
- DataGrid.tsx: Integrated YoY growth for Ad Spend
2026-01-22 15:40:56 +01:00
Christian Vidal Wolf aaca2ffe88 feat: move filtered totals to Data Grid table header
- DataGrid.tsx: Integrated aggregated totals into a new sticky header row
- DataGrid.tsx: Aligned Sell Out and Units totals directly above their respective columns
- DataGrid.tsx: Added YoY growth indicators to the header totals
- DataGrid.tsx: Improved performance with memoized total calculations
- DataGrid.tsx: Fixed syntax errors and TypeScript warnings
2026-01-22 15:26:04 +01:00
Christian Vidal Wolf b6573ebe15 feat: enable ads metrics at any grouping level (SKU, Line, etc.) in Grid 2026-01-21 11:02:12 +01:00
Christian Vidal Wolf e5c72c48c5 feat: automatic ads data loading and attributed sales line in chart 2026-01-21 10:46:50 +01:00
Christian Vidal Wolf 1c826c2487 feat: Add Amazon Ads Weekly integration with Dashboard KPIs, Grid summary, and chart lines
- Update AdsRecord interface to support weekly data (year, week, cpc, ctr, acos, conversions)
- Rewrite processAdsExcel to parse multiple sheets (2025, 2026) with 12-column format
- Update mergeSalesAndAdsData to match by ASIN+Country+Year+Week
- Add Advertising Performance section to Dashboard with Ad Spend, Attributed Sales, ACOS, ROAS
- Add Ads toggle button and summary bar to DataGrid
- Add Ad Spend lines (fuchsia dashed) to weekly comparison chart
- Fix import paths in Dashboard.tsx and AdvertisingDashboard.tsx
2026-01-21 09:45:50 +01:00
Christian Vidal Wolf 67951bcac8 feat: Implement Pan-EU grouping in Grid tab
- Added applyPanEUGrouping() helper function in dataProcessor.ts
- Groups Amazon DE/IT/FR/ES as 'Pan-EU' when no customer filter applied
- Shows individual countries when specific filter is selected
- Updated DataGrid to accept hasCustomerFilter prop
- Updated App.tsx to pass filter state to DataGrid
- Keeps Amazon UK and Amazon SC separate
- Verified with browser testing: grouping works correctly
2026-01-20 12:59:35 +01:00
Christian Vidal Wolf 98aba3e36b feat: Add European number formatting with dots as thousand separators
- Updated all toLocaleString() calls to use 'de-DE' locale
- Applied to DataGrid, Dashboard, AdvertisingDashboard, TopMovers, geminiService
- Numbers now display as €1.234 instead of €1,234
- Fixed spread operator syntax errors introduced during bulk replacement
- Verified across all tabs: Dashboard, Grid, Advertising
2026-01-20 12:14:13 +01:00
Christian Vidal Wolf 73519791b9 Fix: Resolve array mutation bug preventing Grid sorting from working
- Changed result.sort() to result = [...result].sort() to create new array reference
- React now properly detects changes and re-renders sorted data
- All columns (Sell Out, Units, S.O. Δ%, Units Δ%) now sort correctly
- Verified with comprehensive browser testing
2026-01-20 11:15:35 +01:00
Christian Vidal Wolf 15ad483c25 Fix: Add sorting functionality for growth percentage columns in Grid tab 2026-01-20 11:00:07 +01:00
Christian Vidal Wolf cd2a5a7c4f feat: add YoY growth percentages to filtered totals summary 2026-01-17 11:59:56 +01:00
Christian Vidal Wolf 1de07d3342 feat: add filtered totals summary above Grid table 2026-01-17 11:54:46 +01:00
Christian Vidal Wolf 0075129d76 feat: add Week filter and Grid Growth % columns 2026-01-16 11:47:59 +01:00