mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 11:45:23 +02:00
feat: inject unfiltered ad data into experiments & deploy comprehensive KPI summary view
This commit is contained in:
@@ -606,6 +606,11 @@ const App: React.FC = () => {
|
||||
return mergeSalesAndAdsData(filteredData, filteredAdsData, globalAsinMetadata, trafficData, velocityMap);
|
||||
}, [filteredData, filteredAdsData, globalAsinMetadata, trafficData, velocityMap]);
|
||||
|
||||
// Unfiltered combined data for Experiment calculations (so they aren't affected by UI filters)
|
||||
const unfilteredCombinedData = useMemo(() => {
|
||||
return mergeSalesAndAdsData(rawData, adsData, globalAsinMetadata, trafficData, velocityMap);
|
||||
}, [rawData, adsData, globalAsinMetadata, trafficData, velocityMap]);
|
||||
|
||||
// Derived Data for Grid (YTD Filtered - Isolated)
|
||||
// 1. Identify "Current Year" max week
|
||||
const gridContext = useMemo(() => {
|
||||
@@ -963,7 +968,7 @@ const App: React.FC = () => {
|
||||
setPreselectedMarketplace(filters.customer[0] || '');
|
||||
setShowCreateExperiment(true);
|
||||
}}
|
||||
salesData={rawData}
|
||||
salesData={unfilteredCombinedData}
|
||||
/>
|
||||
</div>
|
||||
</Suspense>
|
||||
@@ -1036,7 +1041,7 @@ const App: React.FC = () => {
|
||||
<ExperimentDetail
|
||||
experimentId={selectedExperimentId}
|
||||
onClose={() => setSelectedExperimentId(null)}
|
||||
salesData={rawData}
|
||||
salesData={unfilteredCombinedData}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user