generated from westfarn/web_django_template
Add a shop sales dashboard with 30-day charts (#4)
CI / test (pull_request) Successful in 33s
CI / test (pull_request) Successful in 33s
## Summary - Closes #3 - Portal Retail **Sales** page: 30-day orders/revenue/units/AOV, daily charts, top products - Home dashboard cards for 30-day shop sales and revenue - Stacks on #2. Merge that first, then retarget `master` if needed. ## Test plan - [ ] Sales page requires login; empty state with no paid orders - [ ] Paid/fulfilled in the last 30 days counted; unpaid/old excluded - [ ] Home dashboard shows 30-day sales count - [ ] `manage.py test shop` Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
@@ -77,6 +77,13 @@ def tianji_tracking(request):
|
||||
nav_section = "social_accounts"
|
||||
elif namespace == "social":
|
||||
nav_section = "social"
|
||||
elif namespace == "shop_portal":
|
||||
if url_name.startswith("product"):
|
||||
nav_section = "shop_products"
|
||||
elif url_name.startswith("order"):
|
||||
nav_section = "shop_orders"
|
||||
elif url_name == "sales":
|
||||
nav_section = "shop_sales"
|
||||
elif namespace == "shop":
|
||||
nav_section = "shop"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user