Skip to content

feat: hardware on hand page tied into the shopping list - #25

Merged
Npab19 merged 1 commit into
mainfrom
feature/23-hardware-on-hand
Oct 12, 2026
Merged

Npab19 merged 1 commit into
mainfrom
feature/23-hardware-on-hand

Conversation

@Npab19

@Npab19 Npab19 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Answers: "something that tells me how many of each hardware I currently have, then tie that into hardware to buy". The inventory already existed (Got it adds to it, the BOM subtracts it) but could not be seen or edited.

  • On hand page (/inventory, nav between My parts and Settings, lazy 5.6 kB chunk): all catalog + My parts hardware grouped by category, count field with −/+ (saves on Enter, blur or pause; Escape restores), search, "Only what I have", totals, spare prints/devices section, and per item what your saved plans still need ("Sample needs 40, buy 25" / "covered").
  • Shopping list / Full BOM: each hardware line shows "On hand N" with an inline count editor; Why reads "… − 20 on hand; buy 25"; changing it updates the line live (and can tick Got it).
  • Wording: inventory = "on hand" everywhere; "spare" stays for the spare % extra.
  • Flaky test: the snapY property test now allows snapY's own 1e-6 tie epsilon.

Verification: typecheck, lint, format, 1741 unit tests, headers/catalog, build + budgets (initial 197 kB of 300 kB); Playwright against the read-only nginx image (prod-secure, prod-lan, mobile): 97 passed, 4 skipped by design, incl. new inventory specs and axe in light, dark, dark + teal.

Closes #23

🤖 Generated with Claude Code

- New "On hand" page (/inventory): every catalog and My parts hardware
  item by category with an editable count (field, -/+), search, an "Only
  what I have" filter, totals, spare prints and devices, and what each of
  your saved plans still needs to buy.
- Shopping list and Full BOM: each hardware line shows "On hand N" with an
  inline editor; the Why sum subtracts it; the group links to the page.
- Wording: the inventory is called "on hand" everywhere (was "spares");
  "spare" stays for the spare % extra.
- Test: the snapY property allows its 1e-6 tie epsilon (it flaked at
  3 + 1e-9).

Closes #23

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Npab19 Npab19 added the feature New capability or enhancement label Oct 12, 2026
@Npab19
Npab19 enabled auto-merge (squash) October 12, 2026 20:13
@Npab19
Npab19 merged commit 36ce8a8 into main Oct 12, 2026
4 checks passed
@Npab19
Npab19 deleted the feature/23-hardware-on-hand branch October 12, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: hardware on hand (inventory page) tied into the shopping list

1 participant