Viewing Product Inventory
The product list displays all available products in a responsive grid layout:- Grid Layout: Displays 2-4 columns depending on screen width
- Product Cards: Show product image, name, category, and current stock
- Stock Indicators: Color-coded badges showing stock status:
- Green: Stock > 10
- Orange: Stock between 3-10
- Red: Stock ≤ 3
Filtering Products
The product list includes powerful filtering options:Search Bar
Search by product name, category, or ID. The search is case-insensitive and updates in real-time as you type.
Stock Filter
Filter products by stock status:
- Todo: Show all products
- Con stock: Only products with stock > 0
- Stock bajo: Products with 1-5 items
- Sin stock: Out of stock products (stock ≤ 0)
Adding New Products
To add a product to your inventory:Click the Add Button
Tap the floating action button (+ icon) in the bottom-right corner to open the product registration form.
Fill Product Details
Complete all required fields:
- Nombre: Product name
- Descripcion: Detailed description (multiline)
- Precio: Price in EUR
- Stock: Initial stock quantity
- Categoria: Select from predefined categories (Armas, Armaduras, Accesorios, Consumibles)
Upload Product Image
Click “Seleccionar imagen” to choose an image from your device. The image is required for new products.
Product Categories
The system includes four default categories:Editing Existing Products
To modify a product:Update Fields
Modify any field including name, description, price, stock, or category. The current image is displayed, and you can optionally upload a new one.
Update Logic
Image Upload via Firebase Storage
Product images are handled through Firebase Storage:Deleting Products
To remove a product from inventory:Product List Pagination
The product list uses pagination to improve performance:- Initial load shows 12 products
- Click “Cargar mas” to load additional products
- Shows remaining product count
Refreshing the Product List
Refresh the product list to see the latest changes:- Use the refresh button in the top-right corner
- Pull down on the list (on touch devices)
- The list automatically refreshes after adding, editing, or deleting products