Creating Inventory docs, including many screenshots.

This commit is contained in:
Roland 2026-06-19 15:49:38 -06:00
parent 80648d3bd7
commit f33a4f65ff
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
16 changed files with 220 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View file

@ -0,0 +1,11 @@
# Export
The **Export** tab produces a copy of the [inventory](index.md) you can use elsewhere.
![inventory-export.png](inventory-export.png)
* **CSV** — a comma-separated spreadsheet of every item and field, openable in Excel, Numbers, or Google Sheets.
It is generated entirely on your device.
* **PDF** — a printable table of the whole inventory followed by a summary grouped by the field you choose. This
opens your browser's print dialog; choose "Save as PDF" as the destination to get a PDF file, or print it on
paper.

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View file

@ -0,0 +1,126 @@
# Inventory
## Overview
The Inventory module helps you track physical supplies — food storage, fuel, tools, or anything else you want to
count and organize. The main page (`/inventory`) is a spreadsheet-style table where each row is an item and each
column is a field you control.
You can keep as many separate inventories as you like (for example, a "Food Storage" inventory and a "Fasteners"
inventory), each with its own set of fields. Inventories are stored as plain configuration files, so they survive
reboots and can be backed up, edited, or restored like any other WROLPi config (see
[Where Data Is Stored](#where-data-is-stored)).
![inventory-page.png](inventory-page.png)
A new WROLPi comes with a starter **Food Storage** inventory pre-filled with a recommended one-adult, one-year
supply, so you have an example to explore right away.
Each inventory has four tabs: **Items** (covered on this page), **[Summary](summary.md)**,
**[Ration](ration.md)**, and **[Export](export.md)**.
## Inventory Types
When you create an inventory you pick a **type**. The type seeds a starting set of fields — you can add, remove,
rename, reorder, or retype them afterward, so the type is only a convenient starting point.
* **Food Storage** — Brand, Name, Category, Subcategory, Size, Count, kcal per unit, and Expires.
* **Fuel** — Name, Fuel Type, Container, Size, Count, Purchased, and Location.
* **Tools** — Name, Brand, Category, Count, Condition, Location, and Notes.
To create an inventory, click the **+** button, enter a name, choose a type, and click **Create**.
![new-inventory-modal.png](new-inventory-modal.png)
Use the dropdown at the top of the page to switch between inventories. The buttons beside it let you rename the
current inventory (the pencil), customize its [Fields](#customizing-fields), open the
[Food Catalog](#food-catalog), or delete the inventory (the red trash button).
## Adding Items
The **Items** tab holds a persistent empty row at the bottom of the table for entering new items. Entry is
keyboard-first:
* **Tab** moves between the fields of the new row.
* **Enter** saves the item, clears the row, and returns focus to the first field — ready for the next item.
This lets you add many items in a row without reaching for the mouse.
### Editing and Deleting Items
* **Click any cell** in an existing row to edit it. The cell's current contents are selected so you can type over
them immediately.
* **Bulk delete** — select the checkboxes on the rows you want to remove, then click the delete button.
### Searching
A search box at the top of the **Items** tab filters the rows by any field. The filter only applies to the Items
tab — the [Summary](summary.md), [Ration](ration.md), and [Export](export.md) tabs always use the whole inventory,
so the filter never silently hides data from your totals.
### Arithmetic in Number Fields
Any numeric field (a number, a quantity's magnitude, or calories) accepts a calculation. For example, to record a
box of nails that weighs 400 g including a 20 g box, type `400 - 20` and press **Tab** or **Enter** — WROLPi
evaluates it and stores `380`. Only basic arithmetic (`+ - * / ( )`) is supported; a plain number is left
untouched.
## Customizing Fields
Click the **Fields** button to open the field editor, where you control the columns of the current inventory.
![field-schema-editor.png](field-schema-editor.png)
For each field you can set its **Label**, **Type**, reorder it with the up/down arrows, toggle whether it appears
in the [mobile view](#mobile-view), or remove it. Use **Add Field** for a blank field.
### Field Types
* **Text** — free-form text.
* **Number** — a number (accepts [arithmetic](#arithmetic-in-number-fields)).
* **Quantity** — a number plus a unit chosen from a dropdown (mass, volume, or length). The
[Summary](summary.md) can sum and convert compatible quantities (for example, ounces and pounds together).
* **Date** — a calendar date. Items with a date in the past are flagged as expired.
* **Select** — a dropdown of options you define (enter them comma-separated, e.g. `screws,nails,bolts`).
* **Location** — a text field with autocomplete suggestions pooled from every inventory (basement, attic, …).
* **Calories** — calories per unit; detected by the [Ration](ration.md) estimate and the [Summary](summary.md).
### Count by Weight
Counting many small, identical items (screws, nails, rounds of ammunition) one by one is tedious. The **Count by
Weight** button adds three linked fields:
* **Unit Weight** — the weight of a single item (weigh one, or weigh four and enter `÷ 4` as
[arithmetic](#arithmetic-in-number-fields)).
* **Total Weight** — the weight of the whole lot.
* **Count** — automatically calculated as Total Weight ÷ Unit Weight, rounded to a whole number.
Enter the two weights and the **Count** fills in for you. If the weights use different units (e.g. a total in
kilograms and a unit weight in grams), WROLPi converts before dividing.
![count-by-weight.png](count-by-weight.png)
## Food Catalog
The **Catalog** button opens a shared list of known food items used to speed up data entry. Each catalog entry
records a name, category, subcategory, package size, and the total calories for one package of that size.
![food-catalog.png](food-catalog.png)
When you type a **Name** in a food inventory that matches a catalog entry, WROLPi pre-fills the matching fields
(category, size, calories, …) for you. The catalog is shared across all of your inventories.
## Mobile View
On a phone held in portrait orientation, the Items tab shows a condensed, read-only list of your items. Rotate to
landscape (or use a tablet or desktop) for the full spreadsheet editor. You choose which fields appear in the
mobile view with the **Mobile** toggle in the [Fields](#customizing-fields) editor.
![inventory-mobile.png](inventory-mobile.png)
## Where Data Is Stored
Each inventory is stored as its own configuration file at `config/inventory/<name>.yaml` in your media directory.
These configs are the source of truth: WROLPi loads them on startup and keeps them up to date as you make changes.
You can back them up, copy them between WROLPi systems, or edit them by hand — your changes are applied the next
time WROLPi reads the file.

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View file

@ -0,0 +1,25 @@
# Ration Estimate
When an [inventory](index.md) has a [calories field](index.md#field-types), a **Ration** tab appears. It estimates
how long your stored food will last a household.
![ration-estimate.png](ration-estimate.png)
* **People** — enter how many men, women, and children are in the household.
* **Daily Calories** — pick an activity level preset (Sedentary, Moderately Active, Active, or Survival), or edit
the per-person daily calorie figures directly. The defaults come from the Dietary Guidelines for Americans
2020-2025.
WROLPi then shows your **Total Stored Calories**, the household's **Daily Demand**, and how long the food
**Lasts**.
## Plan More Supply
Below the estimate, drag the slider to a target duration longer than your current supply to generate a shopping
list. WROLPi scales the whole inventory up proportionally — every item grows by the same factor so the mix stays
balanced — and rounds any split package up to a whole one. The result is a sortable table of how many additional
packages of each item to buy to reach the target.
![supply-plan.png](supply-plan.png)
The shopping list can be downloaded as a CSV or printed/saved as a PDF.

View file

@ -0,0 +1,12 @@
# Summary
The **Summary** tab aggregates the [inventory](index.md) entirely on your device. Choose a field to **Group by**
(such as Category) and a field to **Sum** (such as Size or Count). Quantities are summed with unit conversion and
compacted to a sensible unit (for example, 16 oz + 1 lb is shown as 2 lb). If the inventory has a
[calories field](index.md#field-types), a **Calories** column shows the stored calories per group. Click any column
header to sort.
![inventory-summary.png](inventory-summary.png)
Unlike the [Items](index.md#searching) tab's search, the Summary always uses the whole inventory, so the totals
here are never narrowed by a filter.

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB