arch-atlas

Seller Services Screen

services/services.dart

presentation

Overview

Lists the seller's provisions with status pills, variant counts, thumbnail, and an action menu (edit, delete, duplicate). FAB pushes the add-prestation wizard.

User Flow

  1. Watches sellerServicesProvider; renders loading shimmer / list / empty state via AsyncValue.when.
  2. Row tap pushes /prestation/:id (PrestationDetailScreen).
  3. Delete tap opens a confirmation dialog → SellerServicesController.deleteService.
  4. FAB → context.push('/add-prestation').

Cases & Edge Cases

  • Status pills color-mapped: proposed (amber), published (green), rejected (red), unknown (grey).
  • Empty state nudges the user to tap the FAB ('Add your first service').
  • Pull-to-refresh re-invokes fetch().

Code References

  • lib/src/features/seller/services/services.dart

API Calls

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

Notes

449 lines — would benefit from extracting the row into a widget but that's a refactor, not a behavior change.