diff --git a/docs/modules/inventory/index.md b/docs/modules/inventory/index.md index 024da46..8d2fdfc 100644 --- a/docs/modules/inventory/index.md +++ b/docs/modules/inventory/index.md @@ -34,7 +34,8 @@ To create an inventory, click the **+** button, enter a name, choose a type, and 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). +[Food Catalog](#food-catalog), [import or restore](#importing-and-restoring) the inventory (the **Restore** +button), or delete the inventory (the red trash button). ## Adding Items @@ -118,6 +119,25 @@ mobile view with the **Mobile** toggle in the [Fields](#customizing-fields) edit ![inventory-mobile.png](inventory-mobile.png) +## Importing and Restoring + +The **Restore** button opens a dialog with two ways to recover or refresh an inventory. + +![inventory-restore.png](inventory-restore.png) + +**Re-import from disk** reloads every inventory from its [config file](#where-data-is-stored). Use this after you +edit a file by hand, or after copying an inventory file in from another WROLPi — your changes are picked up without +a restart. + +**Restore from a backup** uses the dated backups WROLPi saves automatically whenever an inventory changes. Pick a +date, then choose: + +* **Merge** — add items from the backup that aren't already present, keeping your current items and fields. +* **Overwrite** — replace the inventory entirely with the backup. + +A preview shows exactly what will change before you apply it. The restore is itself backed up first, so it can be +undone by restoring the most recent backup. + ## Where Data Is Stored Each inventory is stored as its own configuration file at `config/inventory/.yaml` in your media directory. diff --git a/docs/modules/inventory/inventory-export.png b/docs/modules/inventory/inventory-export.png index 1fb33a8..5d904ab 100644 Binary files a/docs/modules/inventory/inventory-export.png and b/docs/modules/inventory/inventory-export.png differ diff --git a/docs/modules/inventory/inventory-mobile.png b/docs/modules/inventory/inventory-mobile.png index c0083b8..ab5d2db 100644 Binary files a/docs/modules/inventory/inventory-mobile.png and b/docs/modules/inventory/inventory-mobile.png differ diff --git a/docs/modules/inventory/inventory-page.png b/docs/modules/inventory/inventory-page.png index da7ce5d..f6e9812 100644 Binary files a/docs/modules/inventory/inventory-page.png and b/docs/modules/inventory/inventory-page.png differ diff --git a/docs/modules/inventory/inventory-restore.png b/docs/modules/inventory/inventory-restore.png new file mode 100644 index 0000000..7735d98 Binary files /dev/null and b/docs/modules/inventory/inventory-restore.png differ diff --git a/docs/modules/inventory/inventory-summary.png b/docs/modules/inventory/inventory-summary.png index 2b01b2c..ec6e589 100644 Binary files a/docs/modules/inventory/inventory-summary.png and b/docs/modules/inventory/inventory-summary.png differ diff --git a/docs/modules/inventory/ration-estimate.png b/docs/modules/inventory/ration-estimate.png index e76b9af..2b3e1ee 100644 Binary files a/docs/modules/inventory/ration-estimate.png and b/docs/modules/inventory/ration-estimate.png differ