Operate · 01
Admin and staff dashboard
Staff work from one dashboard for commerce, content, marketing, support and system controls. Django admin remains available as a deliberate model-level fallback.

The console shell
/dashboard/ is the operational home. The sidebar groups modules into Overview, Commerce, Content, Marketing, Reporting and House. Items appear only when the signed-in staff member has the matching capability; superusers see everything.
The topbar carries the module breadcrumb, global search, the notification bell, the theme switch and the account menu. Below 1000px the theme switch moves into the account dropdown so the utility row stays readable. The sidebar can be collapsed and the console is responsive at phone and tablet widths.
| Group | Modules |
|---|---|
| Overview | Dashboard, reports, analytics. |
| Commerce | Orders, suppliers and purchase orders, imports/exports, products, collections, appointments. |
| Content | AI Studio, banners, Content Studio, pages, navigation, announcements, media, journal, comments, product Q&A, reviews. |
| Marketing | Newsletter topics, segments, automations, campaigns, discounts, gift cards, shipping, affiliates, subscriptions, short links, social scheduler, support, chat. |
| House | Team and roles, settings, email delivery, email templates, webhooks, audit, security. |
Capabilities and roles
Django model permissions are the source of truth. apps.dashboard.middleware.DashboardAccessMiddleware maps URL prefixes to the capability each module needs, so a content editor cannot reach products or settings by typing the URL.
Curated roles are defined in apps.accounts.models.STAFF_ROLES: store manager, order manager, content editor and similar presets. python manage.py sync_staff_roles re-applies the curated permissions to every staff profile after a role change.
Grant staff access to a person, not a shared mailbox. Every sensitive console action records an audit entry.
Home, action queue and search
The dashboard home combines revenue, order, customer and content signals with an action queue for unfulfilled orders, pending reviews, open support messages, failed email/webhook deliveries and upcoming appointments. The two chart canvases render revenue and order trends.
Global search at /dashboard/search/ searches the modules the signed-in user can access. Results deep-link to the matching record; UUID routes keep public-facing links stable while internal numeric IDs remain available for model admin fallback.
UUID routes and advanced admin
Customer-facing and cross-app deep links use public UUIDs for customers, orders, support tickets, appointments, purchase orders, media assets and email templates. Numeric IDs remain available only for internal/admin fallback.
/dashboard/manage/ is the explicit Django admin boundary. It is useful for model records that do not have a dedicated console surface, but routine work should stay in the console so permissions, audit entries and cross-app links remain consistent.
Notifications and staff signals
The bell in the dashboard header shows unread staff notifications. Notifications are created by new orders, approved or hidden reviews, support replies, affiliate applications and payout requests, refunds, failed deliveries and other lifecycle events. They can be marked read, archived or cleared without leaving the current page.
Outbound webhooks and email delivery have their own retry surfaces at /dashboard/webhooks/ and /dashboard/emails/.
Daily staff routine
- Open the dashboard and clear the action queue: new orders, pending reviews, support messages and failed deliveries.
- Check low stock and any appointment reminders in the last 24 hours.
- Review the analytics range and yesterday's revenue before publishing campaigns.
- Confirm the jobs timer is active with
systemctl list-timers 'perfumz*'. - Check the audit log after any role, refund, payout or settings change.