The Product Manager provides a streamlined workflow for managing your product catalog through a 4-step wizard interface.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.
Product List View
The main product grid displays all products with key information at a glance.Search and Filter
Search Field: Filter products by name or IDProduct Card Information
Each product card shows:- Primary image (or camera icon if no image)
- Product name
- Category and variant count
- Price (minimum variant price)
- Status indicator (active, draft, or archived)
- Thumbnail gallery (first 4 images)
The price displayed is automatically calculated as the minimum price across all variants.
Creating a New Product
Open the Wizard
Click “New Product” button to launch the 4-step creation wizard.The wizard includes: Info → Variants → Images → Review
Step 1: Product Information
Required Fields
Product Name (name) - Required
- Maximum user-facing identifier
- Sanitized using
sanitizeText()before save - Located:
InfoStep.jsx:21
Optional Fields
Description (description)
- Supports Markdown formatting
- Live preview toggle available
- Rendered with ReactMarkdown on frontend
- Located:
InfoStep.jsx:93
category_id)
- Select from hierarchical category tree
- Parent categories and subcategories shown in optgroups
- Can be null (uncategorized)
status)
- Options:
active,draft,archived - Default:
active - Affects product visibility on storefront
Markdown in descriptions allows for rich formatting: bold, italic, lists, and links.
Editing Products
Click “Edit” on any product card to:- Load existing product data into the wizard
- Fetch all associated variants via
fetchVariantsByItem() - Load existing images with current ordering
- Wizard title shows “Edit Product”
- Submit button shows “Update” instead of “Create”
- Existing images can be reordered or deleted
- Variants can be added, modified, or removed
Deleting Products
Implementation:
ProductManager.jsx:248
Image Management
Images are stored in Supabase Storage under theproduct-images bucket.
Upload Process
- Files uploaded with naming:
{timestamp}-{filename} - Stored at path:
{itemId}/{fileName} - Position tracked in
item_imagestable - Public URL generated and stored
ProductManager.jsx:109
Image Deletion
Deleting images involves:- Removing from storage bucket
- Deleting database record from
item_images - Updating primary image index if needed
- Refreshing product list
Form Validation
Products are validated before submission:- Must have at least one valid variant
- Price must be positive number
- Stock must be non-negative integer
- Size must be non-empty string
Empty States
When no products exist:- Package icon displayed
- “Create your first product” message
- CTA button to open wizard
ProductManager.jsx:548