mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 11:45:23 +02:00
feat: add stock, vendor and buybox badges to Top Movers table
- Added StockBadge, VendorStockBadge and BuyBoxWarningBadge to TopMovers component - Updated Dashboard to pass stockMap, vendorStockMap, buyBoxLostMap and top50Mode props - Updated App.tsx to pass the required maps to Dashboard - Table now shows 3 new columns: Stock (GMBH), Vendor (Amazon Warehouse), and Buy Box status Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
co-authored by
Qwen-Coder
parent
167273e659
commit
19f1137a30
@@ -836,7 +836,16 @@ const App: React.FC = () => {
|
||||
<FilterBar filters={filters} onFilterChange={handleFilterChange} options={filterOptions} />
|
||||
<div className="mt-6">
|
||||
<div className={view === 'dashboard' ? '' : 'hidden'}>
|
||||
<Dashboard data={ytdAggregatedData} filterState={filters} adsData={ytdFilteredAdsData} stockMap={stockMap} rawData={ytdFilteredData} />
|
||||
<Dashboard
|
||||
data={ytdAggregatedData}
|
||||
filterState={filters}
|
||||
adsData={ytdFilteredAdsData}
|
||||
stockMap={stockMap}
|
||||
vendorStockMap={vendorStockMap}
|
||||
buyBoxLostMap={buyBoxLostMap}
|
||||
top50Mode={top50Mode}
|
||||
rawData={ytdFilteredData}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Suspense fallback={<LoadingSpinner />}>
|
||||
|
||||
Reference in New Issue
Block a user