arch-atlas

Seller Products Screen

products/views/seller_products_screen.dart

presentation

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

  1. Watches sellerProductsProvider AsyncValue.
  2. Row tap → context.push('/seller/products/:id/edit').
  3. Delete confirm → SellerProductsController.deleteProduct.
  4. 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.