feat: implement period-over-period comparison in Ads tab

- AdsPerformance.tsx: Automatically activate comparison view when 2 periods are selected
- AdsPerformance.tsx: Add growth percentages and trend indicators to table and summary
- AdsPerformance.tsx: Implement chronological sorting for previous vs current periods
- App.tsx: Pass filters to AdsPerformance component
This commit is contained in:
Christian Vidal Wolf
2026-01-22 13:37:07 +01:00
parent 18e003dd80
commit 25756ae763
2 changed files with 172 additions and 87 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ const App: React.FC = () => {
{view === 'table' && <DataGrid data={combinedAdsData} hasCustomerFilter={filters.customer.length > 0} adsData={filteredAdsData} />}
{view === 'weekly' && <WeeklyGrid data={combinedAdsData} top50Ranking={top50Ranking2025} />}
{view === 'movers' && <TopMovers data={filteredData} />}
{view === 'ads' && <AdsPerformance data={combinedAdsData} />}
{view === 'ads' && <AdsPerformance data={combinedAdsData} filters={filters} />}
</Suspense>
</div>
</>