Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Pana-Baker/llms.txt

Use this file to discover all available pages before exploring further.

The Products screen lists everything your bakery sells. Each product card shows its emoji, name, price, category, current availability status, and live stock count. You can adjust stock directly from the list without opening the edit form, and you can toggle a product’s availability in one tap. The screen reloads automatically whenever you return to it after creating or editing a product.

Product card at a glance

FieldDescription
EmojiVisual icon displayed to customers
NameProduct name, truncated to one line
PricePrice in COP
Availability statusColor-coded badge (see table below)
CategoryTag showing the product’s category
StockCurrent unit count with − / + stepper

Availability statuses

StatusLabelMeaning
READY_NOWListo ahoraAvailable and in stock right now
READY_IN_20~20 minutosAvailable in about 20 minutes
READY_IN_60~1 horaAvailable in about an hour
ADVANCE_ORDER_ONLYSolo anticipadoMust be ordered in advance
OUT_OF_STOCKSin stockNo units available
The dot next to the stepper turns green when available is true and red when false. Reducing stock to zero automatically marks the product unavailable.

Adjusting stock inline

You do not need to open the edit form to change stock. Every product card has a stepper control in the bottom row:
  • Tap to subtract one unit (floor is 0)
  • Tap + to add one unit
The change is saved immediately via PATCH /products/{id}/stock. If the stock drops to zero the availability indicator switches to “Sin stock” automatically; if you add stock to a previously out-of-stock product it reverts to “Disponible”.

Creating a product

Tap the + button in the top-right corner of the Products screen to open the product form.
1

Add a photo

Tap the dashed image picker at the top to choose a photo from your device library. The image is cropped to a 1:1 square at 80% quality. The photo is uploaded to Firebase Storage after the product is saved — if the upload fails the product is still created and you see a warning toast.
2

Pick an emoji

Scroll the emoji row and tap one of the 15 bakery emojis (🍞 🥖 🥐 🥨 🧁 🎂 🍰 🍩 🍪 🥧 🧆 🫓 🥯 🍮 🧇) to represent the product in the app.
3

Fill in the details

Enter the product name (required), an optional description, the price in COP (required, must be a valid number), and the initial stock count.
4

Choose a category

Tap one of the horizontal category chips: bread, pastelería, galletas, bebidas, or otro.
5

Set availability

Select one of the five availability radio options. If you choose Solo con anticipación, an extra field appears so you can enter the required advance time in minutes.
6

Save

Tap Crear producto. The form validates that name and price are present, then creates the product and updates the stock in a second call. You are returned to the product list automatically.
Image upload requires Firebase Storage to be configured. See the Firebase setup guide for instructions.

Editing a product

Tap the pencil icon on any product card to open the same form pre-filled with the current values. All fields are editable, including stock. Tap Guardar cambios to save. The list refreshes when you return to the Products screen.

Deleting a product

Tap the red trash icon on a product card. A confirmation dialog appears with the message “Esta acción no se puede deshacer.” Tap Eliminar to confirm; tap outside the modal or the cancel button to abort. The product is removed from the list immediately after a successful delete.
Deletion is permanent. If the product is part of active orders, those orders are unaffected — only future orders can no longer include the deleted product.

Loading demo products

If your product list is empty, the empty state screen shows a “Cargar productos de prueba” button. Tapping it calls POST /products/seed, which populates your bakery with a set of sample products so you can explore the app without creating each item manually.

Orders

See how products appear in incoming orders

Promotions

Apply discounts and happy hours to your products

Build docs developers (and LLMs) love