Add shop sales dashboard with 30-day charts #7

Closed
opened 2026-09-06 08:32:42 -07:00 by westfarn · 1 comment
Owner

Summary

FEATURE_SHOP portal should include a sales dashboard with charts: last-30-day order count/revenue, daily volume, and top products. Print Forge already has this; fold it into the client template so later shop sites get it for free.

Depends on #5 (shop catalog app).

Scope

  • Portal Retail nav: Sales/portal/shop/sales/
  • Stats: paid + fulfilled orders in the last 30 days (count, revenue, units, AOV)
  • Charts: orders/day, revenue/day, top products by units
  • Home dashboard cards for 30-day sales count and revenue when shop is on
  • Highlight Sales / Products / Orders in portal nav

Test plan

  • Sales page requires login
  • Empty state when no paid orders
  • Paid/fulfilled in-window orders counted; draft/open/cancelled/old excluded
  • Top products ranked by units
  • Home dashboard shows 30-day sales count
  • manage.py test shop core.tests_features
## Summary FEATURE_SHOP portal should include a sales dashboard with charts: last-30-day order count/revenue, daily volume, and top products. Print Forge already has this; fold it into the client template so later shop sites get it for free. Depends on #5 (shop catalog app). ## Scope - Portal Retail nav: **Sales** → `/portal/shop/sales/` - Stats: paid + fulfilled orders in the last 30 days (count, revenue, units, AOV) - Charts: orders/day, revenue/day, top products by units - Home dashboard cards for 30-day sales count and revenue when shop is on - Highlight Sales / Products / Orders in portal nav ## Test plan - [ ] Sales page requires login - [ ] Empty state when no paid orders - [ ] Paid/fulfilled in-window orders counted; draft/open/cancelled/old excluded - [ ] Top products ranked by units - [ ] Home dashboard shows 30-day sales count - [ ] `manage.py test shop core.tests_features`
westfarn self-assigned this 2026-09-06 08:32:42 -07:00
Author
Owner

PR: #8

Companion Print Forge ticket: ai_ml_operations/print_forge#3

PR: https://git.aimloperations.com/westfarn/web_django_template/pulls/8 Companion Print Forge ticket: https://git.aimloperations.com/ai_ml_operations/print_forge/issues/3
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: westfarn/web_django_template#7