Part details¶
The details screen opens after selecting an item from the search list or from the category view.
Header¶
Displays the basic identifying data (read-only):
| Field | Description |
|---|---|
| Name | Full part name |
| ID | Internal Part-DB identifier |
| IPN | Part identifier (7 digits), if assigned |
| Category | Part-DB category name |
| Manufacturer | Manufacturer name (if filled in) |
| Tags | Tags assigned in Part-DB |
| Description | Text description of the part |
| Comment | Internal comment |
Stock levels¶
The Locations section shows all lots (PartLot) with their quantities and location names.
┌──────────────────────────────────────────┐
│ Location: Drawer A3 │
│ [−] [ 12 ] [+] [💬 comment] [✓]│
│ │
│ Location: Drawer B1 │
│ [−] [ 5 ] [+] [💬 comment] [✓]│
└──────────────────────────────────────────┘
- The
✓button sends aPATCH /api/part_lots/{id}request with the new quantity and an optional comment. - The comment is prepended as a dated line to the lot's
commentfield; the lot'sdescriptionis left untouched. - Fractional quantities (e.g.
2.5m) are supported; both.and,are accepted as the decimal separator. - The total stock is shown in the header:
Stock: 17 pcs.
Low stock
If totalStock < minAmount (and minAmount > 0), a warning with a ⚠ icon and the current minimum value is shown.
Parameters¶
A list of technical parameters with editable values.
Display order (decreasing priority):
- Value / Resistance / Capacitance / Inductance
- Package
- Voltage / Operating voltage
- Power
- Manufacturer
- The rest – alphabetically
Tapping a parameter value opens an inline edit field. After confirming, PATCH /api/parameters/{id} is sent with value_text (text parameters) or value_typical (single numeric values). Range parameters (min/max) are read-only and must be edited in Part-DB.
Toolbar¶
| Icon | Action |
|---|---|
| 🔄 Refresh | Re-fetches the full data from the server |
| Opens the printer selection (Sunmi or Niimbot) | |
| 📷 Photo | Adds a photo as an attachment to the part |
Adding a photo¶
- Tap the camera icon.
- Choose the source: Camera or Gallery.
- The photo is compressed and base64-encoded.
POST /api/attachmentsis sent with the MIME data and a reference to the part.
Supported MIME types: image/jpeg, image/png, image/gif, image/webp.
Printing – Sunmi¶
If the app runs on a Sunmi device with a built-in thermal printer:
- The printout contains: name, IPN, parameters, locations and a QR code with the IPN.
- Formatting: bold headers, right-aligned values.