Seller Products Screen
products/views/seller_products_screen.dart
Overview
List of the seller's physical products with status pills, variant counts, edit + delete actions, FAB to create. Pull-to-refresh re-invokes the controller.
User Flow
- Watches sellerProductsProvider AsyncValue.
- Row tap → context.push('/seller/products/:id/edit').
- Delete confirm → SellerProductsController.deleteProduct.
- FAB → context.push('/add-product').
Cases & Edge Cases
- Empty state suggests creating the first product with an illustration.
- Delete-failure dialog shows the server error verbatim (often 'product has active orders').
Code References
- lib/src/features/seller/products/views/seller_products_screen.dart
API Calls
Empty — fill this in later. Open the manifest and add content here.
Notes
Status color mapping duplicated from the provisions screen — extract into a shared widget once stable.