Add a shop sales dashboard with 30-day charts (#4)
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:
2026-09-06 18:35:20 -07:00
parent b2029b6c0f
commit c7d78fada8
15 changed files with 522 additions and 6 deletions
+2 -1
View File
@@ -45,7 +45,7 @@ jobs:
COMPOSE_DATABASE_URL DJANGO_ENV DJANGO_SECRET_KEY DJANGO_DEBUG \
DJANGO_ALLOWED_HOSTS || true
PROJECT="client-ci-${{ gitea.sha }}"
PROJECT="print-forge-ci-${{ gitea.sha }}"
cleanup() { docker compose -p "$PROJECT" down -v --remove-orphans || true; }
trap cleanup EXIT
@@ -66,6 +66,7 @@ jobs:
SERVER_INFRA_ROOT: /home/westfarn/Documents/repos/server-infra
ANSIBLE_PRIVATE_KEY_FILE: /home/westfarn/.ssh/ansible_deploy
steps:
# --app must match server-infra app_catalog (print_forge).
- name: Deploy print_forge beta to all webservers
run: |
"$SERVER_INFRA_ROOT/scripts/deploy.sh" \