From 0984657e72abfb3cbc4fd43f4c6358fc4da3c403 Mon Sep 17 00:00:00 2001 From: Deeman Date: Sat, 28 Feb 2026 21:32:20 +0100 Subject: [PATCH] fix(affiliate): sidebar active state, subnav order, dev seed data - base_admin.html: add 'affiliate_dashboard' to _section_map so Dashboard page stays under the Affiliate section (was falling through to 'overview') - base_admin.html: sidebar Affiliate link now points to dashboard (first tab) - base_admin.html: subnav order Dashboard | Products (was Products | Dashboard) - seed_dev_data.py: add 10 affiliate products (4 rackets, 2 shoes, 1 ball, 1 grip, 1 bag) + 236 click events spread over 30 days for dashboard charts Co-Authored-By: Claude Sonnet 4.6 --- .../admin/templates/admin/base_admin.html | 6 +- web/src/padelnomics/scripts/seed_dev_data.py | 244 ++++++++++++++++++ 2 files changed, 247 insertions(+), 3 deletions(-) diff --git a/web/src/padelnomics/admin/templates/admin/base_admin.html b/web/src/padelnomics/admin/templates/admin/base_admin.html index fde5947..39d3a5f 100644 --- a/web/src/padelnomics/admin/templates/admin/base_admin.html +++ b/web/src/padelnomics/admin/templates/admin/base_admin.html @@ -99,7 +99,7 @@ 'suppliers': 'suppliers', 'articles': 'content', 'scenarios': 'content', 'templates': 'content', 'pseo': 'content', 'emails': 'email', 'inbox': 'email', 'compose': 'email', 'gallery': 'email', 'audiences': 'email', 'outreach': 'email', - 'affiliate': 'affiliate', + 'affiliate': 'affiliate', 'affiliate_dashboard': 'affiliate', 'billing': 'billing', 'seo': 'analytics', 'pipeline': 'pipeline', @@ -150,7 +150,7 @@ Billing - + Affiliate @@ -204,8 +204,8 @@ {% elif active_section == 'affiliate' %} {% elif active_section == 'system' %}