inventory: zentraler Bestand (Phase 2 MVP) — Lager-Ansicht + CRUD#571
Merged
Conversation
- neuer inventoryStore (localStorage cable-planner:inventory) mit items[]-CRUD: Modell/Hersteller/Kategorie/Menge/Mietpreis/Lagerort/ Lieferant/Eigentum/Notiz + Heal beim Laden - InventoryDialog: plan-unabhängige Lager-Ansicht (Tabelle + Suche + Inline-Add/Edit-Formular + Löschen mit Bestätigung) - Seed "Aus Plan übernehmen": gruppiert Equipment (Name+Kategorie → Menge), dedupliziert gegen vorhandene Artikel - Werkzeuge-Menüeintrag "Lager / Bestand…" (gated durch rental-Modul) via uiStore openInventory/closeInventory - types/inventory.ts, STORAGE_KEYS.inventory, EN-i18n (+ common.edit) - docs: Phase 2 als MVP-umgesetzt markiert + Scope-Abgrenzung
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 — Zentraler Bestand (MVP)
Setzt Phase 2 aus
docs/inventory-rental-readiness.mdum: die projektübergreifende Bestands-Achse, die bisher komplett fehlte. Plan-unabhängiger Lager-Bestand mit eigener Ansicht.Was drin ist
inventoryStore(neu) — persistiert inlocalStorage(cable-planner:inventory), gleiche Strategie wie ui/settings/library. CRUD überitems[]: Modell · Hersteller · Kategorie · Menge · Mietpreis/Tag · Lagerort · Lieferant · Eigentum · Notiz. Heal/Validierung beim Laden.InventoryDialog(neu) — plan-unabhängige „Lager"-Ansicht: Tabelle + Suche + Inline-Add/Edit-Formular + Löschen mit Bestätigung. Erreichbar über Werkzeuge → Lager / Bestand…, gated durchsrental-Modul.types/inventory.ts,STORAGE_KEYS.inventory, uiStoreopenInventory/closeInventory, EN-i18n (+common.edit).Bewusste MVP-Abgrenzung (Folge-Arbeit)
inventory:*IPC + JSON-DB — funktioniert in Web und Desktop. Migration auf eine IPC-DB ist möglich, ohne die Consumer zu ändern (sie reden nur mit dem Store).seedFromEquipment-Pfad wiederverwenden.units[]/allocations[]/movements[]+ Plan↔Bestand-Verknüpfung bleiben Phase 3+.Checks
npx tsc -p tsconfig.app.json --noEmit→ 0 Errorseslintüber die geänderten Dateien → 0 Errors (1 pre-existing Warning in App.tsx, unverändert)Generated by Claude Code