Changes for docs/index.md: 1 added line, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -2,6 +2,7 @@
| Date | File | Description |
|---|---|---|
| 2026-08-09 14:18 | [Inventory page — every metric but Pools read zero](20260809_1418_inventory_zero_metrics.md) | The domain type described an endpoint that doesn't exist: `PoolInventory` carried a `memberships: ResourceSummary[]` list while `GET /inventory` returns **counts** (`membershipCount`, `membershipsByStatus`, `danglingCount`), so the codec hardcoded `memberships: []` — and every card, the Resources column, the utilization bar and the status breakdown derived their numbers from that empty array; Pools was right only because it counted the inventories themselves; the type now matches the response and the page sums the reported counts, dropping the `usePools()` join because the response embeds the pool; the expanded panel's Resources table, which had no data source at all here, now fetches the pool's memberships and separates *loading* from *empty*; the old unit test asserting "memberships always []" is replaced by four real decode tests; +9 tests (1017), lint 112 → 106 |
| 2026-08-08 21:45 | [Reservation purge — permanent deletion, behind a preview](20260808_2145_reservation_purge.md) | Implemented the two new admin endpoints `DELETE /reservations/{id}/purge` and `POST /reservations/purge` as a capability-gated `/purge` page; purge deletes the row rather than releasing the booking, so the design is built around that — `PurgeDraft` makes `force`/`dryRun` required with no defaults, blank filters are dropped instead of sent as `""`, an absent `dryRun` decodes as a *preview*, dry runs invalidate nothing, and **"Purge permanently" is armed only by a successful preview of the exact same filter**, re-disarming on any edit including ticking force; both destructive calls sit behind confirm dialogs and the result panel distinguishes preview from deletion, flags skipped-because-still-live rows and warns on a truncated batch; regenerating the contract widened the problem-code enum, and adding `NOT_PURGEABLE` to `PROBLEM_CODES` fixed a real bug where a 409 refusal rendered as an overlap conflict; `LIFECYCLE_STATES` de-duplicated out of `ActivityPage` into the domain; +65 tests, 1008 total |
| 2026-08-08 20:44 | [Availability Search → Reservation: what "Book" carries across](20260808_2044_availability_book_handoff.md) | Traced the Book handoff with an integration probe: pool, resource and the booked range already arrived intact, but Book landed on the **Hold Request** tab (so the operator re-picked the form, or created a hold that expires instead of the reservation they asked for) and the **capacity dropped** — the search validated the window *for a capacity* and the form then booked without it; new `bookingHandoff.ts` holds both halves of the query-string contract (two capacity params validated against the domain enum, refusing an incomplete pair rather than partly honouring it, plus a `tab` param), `CAPACITY_UNITS`/`isCapacityUnit` moved into the domain so `CapacityInput` stops keeping its own copy, and both forms gained `initialCapacity`; flags a pre-existing mismatch — the contract requires `membershipId` but both forms label the resource optional; +23 tests, 943 total |
| 2026-08-08 19:53 | [Pool detail — Expand all / Collapse all, and a table-level Include past](20260808_1953_pool_detail_expand_all_include_past.md) | Added Expand all / Collapse all to the Members tab of `/pools/{id}`, each disabled when it would do nothing; expansion moved from a single `expandedMemberId` to a `ReadonlySet` because rows used to close each other, which made comparing two resources impossible and left Expand all nothing to expand into; `Include past` hoisted out of each panel to the right-hand end of the table's control row (`ml: 'auto'`) so one tick re-queries every open row instead of one checkbox per resource; `ResourceReservationsPanel` is now owner-controlled via an `includePast` prop; 22 pool tests, 920 total |