How kai-zze/km100-stock works
KM100 is a browser-based inventory manager for training facilities. Users navigate rooms or the all-rooms dashboard, search and filter inventory, then add or edit items and manage quantities; room and column schema management support that workflow. The app also provides Excel export, JSON backup/restore, sample-data reset, and persistent browser storage. The graph reflects documented features and indexed imports; implementation details for persistence and some actions were not sampled.
Main entry points: App.tsx App Controller · Header.tsx Action Header · InventoryTable.tsx Inventory Table · excelExport.ts Excel Exporter
Components 16
Application State
- App Controller
src/App.tsx - Inventory Types
src/types/inventory.ts - Sample Catalog
src/data/defaultData.ts - Browser localStorage
- Action Header
src/components/Header.tsx
Facility Views
- Room Navigation
src/components/Sidebar.tsx - Facility Dashboard
src/components/OverviewDashboard.tsx - Room Editor
src/components/RoomModal.tsx
Inventory Management
- Inventory Table
src/components/InventoryTable.tsx - Item Editor
src/components/ItemModal.tsx - Column Schema Builder
src/components/ColumnsSchemaModal.tsx - Condition Badge
src/components/ConditionBadge.tsx
Data Portability
- Excel Exporter
src/utils/excelExport.ts - SheetJS
- JSON Backup/Restore
src/App.tsx
Other components
- Inventory User
Connections 17
- Inventory User → App Controller: uses
README.md - App Controller → Inventory Types: uses types
src/App.tsx - App Controller → Sample Catalog: loads defaults
src/App.tsx - App Controller → Browser localStorage: persists changes
README.md - App Controller → Action Header: renders
src/App.tsx - App Controller → Room Navigation: renders
src/App.tsx - App Controller → Facility Dashboard: renders
src/App.tsx - App Controller → Inventory Table: renders
src/App.tsx - App Controller → Item Editor: renders
src/App.tsx - App Controller → Column Schema Builder: renders
src/App.tsx - App Controller → Room Editor: renders
src/App.tsx - Inventory Table → Condition Badge: renders
src/components/InventoryTable.tsx - App Controller → Excel Exporter: calls export
src/App.tsx - Excel Exporter → SheetJS: builds workbook
src/utils/excelExport.ts - Action Header → JSON Backup/Restore: offers backup actions
README.md - Inventory User → JSON Backup/Restore: exports or imports
README.md - App Controller → JSON Backup/Restore: handles backup
src/App.tsx