From 5f6f4ebf0f7b9b3846db6de1c2141dff0c90ec97 Mon Sep 17 00:00:00 2001 From: Michael Gilardi <11632652+mgilardi@users.noreply.github.com> Date: Mon, 9 Nov 2026 14:29:59 -0700 Subject: [PATCH] Add a CHANGELOG and get 0.2.0 ready to cut CHANGELOG.md lists what 0.2.0 adds since 0.1.0, with the one upgrade step (the new kitting-settings collection is site-owned). The README status no longer says 0.1.0 isn't on npm. The version itself is bumped when 0.2.0 is cut, after npm trust is set (RELEASING.md). Tested: the 67 tests pass. Nothing released. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 20 ++++++++++++++++++++ README.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..92fe8ec --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +# Changelog + +## 0.2.0 (not released yet) + +**Upgrading from 0.1.0:** there's one new collection, `kitting-settings` (one per site). If you use a tenant plugin, add it to your site-owned collections next to Kitting's others, and build its indexes before first use. Nothing else changes for existing data. + +- **Getting started** at `/admin/supplies/setup`: three plain steps (your supplies, what you make, a first count), each showing how far you've got. +- **Stock count** at `/admin/supplies/count` and `POST /api/kitting/count`: type what's on the shelf, and each difference becomes one adjustment. For lots, expired stock goes first, then the soonest to expire. Extras go into the newest lot. An empty box is never read as zero, and the whole count is refused if any supply isn't yours to manage. +- **Today** at the top of the supplies overview: what to buy, what to build and what to use soon. With Restock installed, it also lists deliveries that have arrived and wait for someone to confirm them. Kitting reads that through `config.custom.restock`, so it still doesn't depend on Restock, and a delivery never adds stock. +- **Shrinkage in the admin:** + - Each site turns its allowance on or off and sets its default in Kitting settings. The plugin's options are now only the starting values. + - Each supply's page shows the shrinkage learned from the last 90 days, with its reasoning, and a "Use N%" button that changes nothing until it's pressed. +- **`restockNeeds(payload, { scope, req })`:** what to buy, per supply, with the reason. It takes the larger of two amounts: the reorder suggestion when stock is below its level, and what building recipes up to their target would need. Usable stock is subtracted from that. It's read-only and per site. This is Kitting's side of the kitting-restock contract. +- New exports: `restockNeeds`, `stockCount`, `setupProgress`, `siteShrinkage` and their types. + +Tested: 67 integration tests against a real MongoDB on Payload 3.92 (6 new), plus a check of the setup, count, Today and shrinkage pages in a browser with made-up data. Not tested: a screen reader, and pressing "Use N%" with a real mouse (keyboard and scripted clicks worked; the automated browser's mouse clicks didn't reach it twice). That mouse check is step 8 of the owner's test T14. + +## 0.1.0 (2026-11-09) + +First release, published by hand. Supplies, suppliers, stock movements, lots, recipes, builds by scanning external IDs, assembled units, build requests, fulfilment (assign, swap, release, ship), box recommendations, ready-stock states and alerts with five ways to set the target, and an optional adapter for Payload's ecommerce plugin. diff --git a/README.md b/README.md index 6378a72..d1f1529 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Kitting for [Payload](https://payloadcms.com): anyone from a café to a genomics It's meant for people with no IT department. You set it up once and carefully, with every item and a recipe for everything you make, down to the gram or the microlitre. From then on it knows how much of everything you need. -**Status: 0.1.0, not on npm yet. All three levels are built.** Anything not built yet says so. +**Status: 0.1.0 is on npm; 0.2.0 is ready on `main` and not released yet (see [CHANGELOG.md](CHANGELOG.md)). All three levels are built.** Anything not built yet says so. ## Two examples