arch-atlas

Seller Products + Customer Detail Routes

core/routing/app_router.dart

di

Overview

Four routes touching this feature: /seller/products (list), /add-product (create), /seller/products/:id/edit (edit), /product-details (customer-side, reads extra).

User Flow

  1. Home grid 'Marketplace' (seller) → /seller/products.
  2. FAB on seller list → /add-product.
  3. Edit on a row → /seller/products/:id/edit.
  4. Customer marketplace tile tap → /product-details with the Product as extra.

Cases & Edge Cases

  • /seller/* routes are gated by hasSellerRole in the auth redirect; clients trying to deep-link bounce to /home.
  • /product-details has no path id — depends on route extra, so deep-links are not yet shareable.

Code References

  • lib/src/core/routing/app_router.dart:459 // /seller/products
  • lib/src/core/routing/app_router.dart:464 // /add-product
  • lib/src/core/routing/app_router.dart:489 // /seller/products/:id/edit
  • lib/src/core/routing/app_router.dart:499 // /product-details

API Calls

Empty — fill this in later. Open the manifest and add content here.

Notes

If you make /product-details a real URL (id in path), update the cart's add-to-cart deep-link and the marketing-share-link generator.