Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/aluxey/E-Commerce/llms.txt

Use this file to discover all available pages before exploring further.

The Admin Dashboard provides a comprehensive overview of your e-commerce store’s performance and quick access to all management features.

Key Performance Indicators

The dashboard displays four critical metrics to track your store’s health:
All KPIs show percentage changes compared to the previous period, helping you identify trends at a glance.

Revenue Widget

Displays total revenue with delta percentage showing growth or decline. Fields:
  • revenue - Total revenue amount
  • revenueDeltaPct - Percentage change from previous period

Orders Widget

Tracks total number of orders placed. Fields:
  • orders - Total order count
  • ordersDeltaPct - Percentage change in order volume

Average Order Value

Shows the average transaction amount per order. Field: avgOrder

Pending Orders

Highlights orders requiring attention. Field: pendingOrders - Count of orders awaiting processing
Pending orders require action! High pending counts may indicate fulfillment bottlenecks.

Quick Access Shortcuts

The dashboard provides six shortcut cards for rapid navigation:
1

Products

Manage your product catalog with the simplified creation wizardRoute: /admin/products
2

Orders

View and manage customer orders, update order statusRoute: /admin/orders
3

Users

Manage customer accounts and user rolesRoute: /admin/users
4

Colors

Manage the color palette available for productsRoute: /admin/colors
5

Categories

Organize products by categories and subcategoriesRoute: /admin/categories
6

Variants

Manage product variants (sizes, colors, stock levels)Route: /admin/variants

Data Loading

The dashboard uses the useAdminStats hook to fetch statistics from the backend. Loading States:
  • loading - Shows loading message while fetching data
  • error - Displays error message if data fetch fails

Implementation Details

The dashboard is located at:
  • Component: client/src/pages/AdminDashboard.jsx:30
  • Stats Hook: useAdminStats() fetches all KPI data
Widget Component (AdminDashboard.jsx:9):
  • Renders individual KPI cards
  • Props: title, value, delta, deltaType, icon
  • Delta types: positive, negative, neutral

Build docs developers (and LLMs) love