import '../domain/inventory_item.dart';
import '../domain/inventory_repository.dart';
import '../domain/inventory_status.dart';

class FakeInventoryRepository implements InventoryRepository {
  @override
  Future<List<InventoryItem>> getInventoryItems() async {
    await Future<void>.delayed(const Duration(milliseconds: 300));

    return const [
      InventoryItem(
        id: '1',
        sku: 'BC-FLR-001',
        name: 'Floral Bowl Cozy',
        quantityOnHand: 18,
        unitPrice: 12.99,
        status: InventoryStatus.inStock,
      ),
      InventoryItem(
        id: '2',
        sku: 'CS-CIT-002',
        name: 'Citrus Coaster Set',
        quantityOnHand: 7,
        unitPrice: 16.50,
        status: InventoryStatus.lowStock,
      ),
      InventoryItem(
        id: '3',
        sku: 'NL-OCN-003',
        name: 'Ocean Nightlight',
        quantityOnHand: 0,
        unitPrice: 19.99,
        status: InventoryStatus.outOfStock,
      ),
      InventoryItem(
        id: '4',
        sku: 'JG-BLU-004',
        name: 'Fabric Jar Gripper',
        quantityOnHand: 23,
        unitPrice: 8.50,
        status: InventoryStatus.inStock,
      ),
      InventoryItem(
        id: '5',
        sku: 'SH-SUN-005',
        name: 'Skillet Handle Sleeve',
        quantityOnHand: 5,
        unitPrice: 10.99,
        status: InventoryStatus.lowStock,
      ),
      InventoryItem(
        id: '6',
        sku: 'SC-SUB-006',
        name: 'Sublimated Slate Coaster',
        quantityOnHand: 0,
        unitPrice: 14.99,
        status: InventoryStatus.draft,
      ),
    ];
  }
}
