diff --git a/design/wireframes/admin_dashboard.svg b/design/wireframes/admin_dashboard.svg new file mode 100644 index 0000000..235ac23 --- /dev/null +++ b/design/wireframes/admin_dashboard.svg @@ -0,0 +1,47 @@ + + + + + ADMIN DASHBOARD — Wireframe + + + + + KPIs: Orders + Revenue + Users + Quick date picker • comparison + + + + + + Sidebar — Navigation + + + Main Area + + + + Order Management — Filters, Search, Table + + + + Seller Approval — Pending list + + + + Delivery Tracking Map — live pins + + + + Financial Reports — charts, exports + + + Notes: table supports bulk actions, seller profile preview, export CSV + diff --git a/design/wireframes/buyer_mobile_dashboard.svg b/design/wireframes/buyer_mobile_dashboard.svg new file mode 100644 index 0000000..338d733 --- /dev/null +++ b/design/wireframes/buyer_mobile_dashboard.svg @@ -0,0 +1,27 @@ + + + + + BUYER MOBILE DASHBOARD — Wireframe + + + + Order Tracking — progress bar, ETA, contact driver + + + Order History — list with Reorder + + + Address Management — add/edit/delete + + + Saved Payment Methods — add, set default + + + Notes: push notifications, one-tap reorder + diff --git a/design/wireframes/delivery_agent_mobile.svg b/design/wireframes/delivery_agent_mobile.svg new file mode 100644 index 0000000..00fcdb4 --- /dev/null +++ b/design/wireframes/delivery_agent_mobile.svg @@ -0,0 +1,30 @@ + + + + + DELIVERY AGENT (MOBILE) — Wireframe + + + + Map View (half screen) — route & pins + + + Today's Deliveries — swipeable list items + + + Navigation — deep link / start nav + + + COD Collection — collect, record receipt + + + Proof of Delivery — photo + signature + + + Notes: offline maps, quick call, signature capture + diff --git a/design/wireframes/seller_dashboard.svg b/design/wireframes/seller_dashboard.svg new file mode 100644 index 0000000..be265f5 --- /dev/null +++ b/design/wireframes/seller_dashboard.svg @@ -0,0 +1,30 @@ + + + + + SELLER DASHBOARD — Wireframe + + + + Left Nav — Dashboard / Orders / Inventory / Settings + + + Store KPIs — Orders Today, Sales + + + Order Processing — list, status chips, detail panel + + + Inventory — bulk actions, inline edit + + + Sales Analytics — charts, top products + + + Notes: CSV import/export; quick packing slip print + diff --git a/scripts/create_user.py b/scripts/create_user.py new file mode 100644 index 0000000..57a61d7 --- /dev/null +++ b/scripts/create_user.py @@ -0,0 +1,35 @@ +import os +import sys + +# Ensure this script is run from project root +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +if BASE_DIR not in sys.path: + sys.path.insert(0, BASE_DIR) + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') +import django +django.setup() + +from django.contrib.auth.models import User + +username = os.environ.get('JM_USERNAME') +email = os.environ.get('JM_EMAIL', '') +password = os.environ.get('JM_PASSWORD') +is_super = os.environ.get('JM_SUPER', '0') == '1' + +if not username or not password: + print('JM_USERNAME and JM_PASSWORD environment variables are required') + sys.exit(2) + +if User.objects.filter(username=username).exists(): + print(f"User '{username}' already exists") + sys.exit(0) + +if is_super: + User.objects.create_superuser(username=username, email=email, password=password) + print(f"Superuser '{username}' created") +else: + User.objects.create_user(username=username, email=email, password=password) + print(f"User '{username}' created") + +sys.exit(0)