Users can find products in two ways: by browsing a specific bakery’s catalog insideDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi/llms.txt
Use this file to discover all available pages before exploring further.
BakeryDetailScreen, or by running a global search across all bakeries from SearchScreen. Both paths lead to ProductDetailScreen, where users can review product details and add items to their cart.
Product catalog
Each bakery’s products are fetched via:GET /products?bakeryId=<id> and returns the bakery’s full product list. Products can be filtered by category (Pan, Pastelería, Bebidas) using the pill selector at the top of the product list in BakeryDetailScreen.
Each product card in ProductDetailScreen displays:
- Name — the product title
- Price — formatted in Colombian pesos (COP)
- Emoji — a visual icon representing the product
- Description — free-text description (shown when provided)
- Availability status — one of
READY_NOW,READY_IN_20,READY_IN_60,ADVANCE_ORDER_ONLY, orOUT_OF_STOCK - Stock count — shown when 5 or fewer units remain
- Advance notice — if
advanceMinutes > 0, a notice tells the user how early to order
Search
SearchScreen provides global search across all bakeries using searchProducts():
| Parameter | Type | Description |
|---|---|---|
q | string | Keyword to search — matches product names and bakery names |
lat | number | undefined | User’s latitude (optional, enables distance sorting) |
lng | number | undefined | User’s longitude (optional, enables distance sorting) |
radius | number | Search radius in km when using geolocation (default: 10) |
category | string | undefined | Filter results to a specific category (e.g. "pan", "pastelería", "bebidas") |
Adding to cart from product detail
FromProductDetailScreen, users select a quantity and tap Add to Cart. This calls:
The cart is scoped to a single bakery at a time. If the user already has items from a different bakery, adding a new product from
BakeryDetailScreen will prompt a warning before clearing the existing cart.