How ishakhamzaoui/steeltube works
SteelTube is a desktop steel-tube inventory application. The principal workflow records stock movements in an append-only operation ledger and exposes current stock as a rebuildable projection; related capabilities cover catalogue management, weight/length conversion, partners, synchronization, integrity checks, and backup. The graph reflects documented domain behavior and relationships visible in the supplied source index. The README is empty, and most UI and application handlers were not excerpted, so their internal call paths are omitted or marked unverified.
Main entry points: Abstractions Repository contracts · Repositories SQLite repositories · App.xaml.cs Desktop startup · Inventory Inventory workflows
Components 22
Desktop interface
- Desktop startup
src/SteelTube.Desktop/App.xaml.cs - Main navigation
src/SteelTube.Desktop/ViewModels/MainViewModel.cs - Stock screens
src/SteelTube.Desktop/ViewModels/StockMovementViewModel.cs
Application workflows
- Inventory workflows
src/SteelTube.Application/Inventory - Stock and history
src/SteelTube.Application/Inventory/GetCurrentStock/GetCurrentStockQueryHandler.cs - Weight catalogue
src/SteelTube.Application/Catalogue - Length-weight conversion
src/SteelTube.Application/Conversion - Business partners
src/SteelTube.Application/Partners - Data synchronization
src/SteelTube.Application/Synchronization - Integrity diagnostics
src/SteelTube.Application/Diagnostics - Backup and restore
src/SteelTube.Application/Backup - Repository contracts
src/SteelTube.Application/Abstractions
Inventory domain
- Operation ledger
src/SteelTube.Domain/Entities/InventoryOperation.cs - Stock projection
src/SteelTube.Domain/Entities/InventoryBalance.cs - Material measures
src/SteelTube.Domain/ValueObjects/Diameter.cs - Conversion arithmetic
src/SteelTube.Domain/Services/WeightConversionService.cs
SQLite infrastructure
- SQLite repositories
src/SteelTube.Infrastructure/Repositories - SQLite connections
src/SteelTube.Infrastructure/Persistence/ISqliteConnectionProvider.cs - SQLite database
- SQLite backup service
src/SteelTube.Infrastructure/Backup/SqliteBackupService.cs - Composition root
src/SteelTube.Infrastructure/CompositionRoot.cs
Other components
- User
Connections 24
- User → Desktop startup: opens
- Desktop startup → Composition root: configures
src/SteelTube.Desktop/App.xaml.cs - Desktop startup → Main navigation: creates
src/SteelTube.Desktop/App.xaml.cs - User → Stock screens: uses
- Stock screens → Inventory workflows: invokes
src/SteelTube.Desktop/ViewModels/StockMovementViewModel.cs - Main navigation → Stock screens: navigates
- Inventory workflows → Repository contracts: uses
src/SteelTube.Application/Inventory/GetStockHistory/GetStockHistoryQueryHandler.cs - Stock and history → Repository contracts: reads
src/SteelTube.Application/Inventory/GetCurrentStock/GetCurrentStockQueryHandler.cs - Stock and history → Conversion arithmetic: converts
src/SteelTube.Application/Inventory/GetCurrentStock/GetCurrentStockQueryHandler.cs - Weight catalogue → Repository contracts: uses
src/SteelTube.Application/Catalogue/GetCatalogue/GetCatalogueQueryHandler.cs - Length-weight conversion → Repository contracts: looks up
src/SteelTube.Application/Conversion/CalculateLength/CalculateLengthQueryHandler.cs - Length-weight conversion → Conversion arithmetic: calculates
src/SteelTube.Application/Conversion/CalculateLength/CalculateLengthQueryHandler.cs - Business partners → Repository contracts: reads
src/SteelTube.Application/Partners/GetPartners/GetPartnersQueryHandler.cs - Data synchronization → Repository contracts: uses
src/SteelTube.Application/Synchronization/PreviewImport/PreviewImportQueryHandler.cs - Integrity diagnostics → Repository contracts: checks
src/SteelTube.Application/Diagnostics/CheckIntegrity/CheckIntegrityQueryHandler.cs - Backup and restore → Repository contracts: uses
- Inventory workflows → Operation ledger: records
src/SteelTube.Application/Inventory/RemoveStock/RemoveStockCommandHandler.cs - Operation ledger → Stock projection: derives
- SQLite repositories → Repository contracts: implements
src/SteelTube.Infrastructure/Repositories/SqliteInventoryOperationRepository.cs - SQLite repositories → SQLite connections: requests connections
src/SteelTube.Infrastructure/Repositories/SqliteInventoryOperationRepository.cs - SQLite repositories → SQLite database: reads and writes
- SQLite backup service → SQLite database: backs up
- Composition root → SQLite repositories: wires
- Material measures → Conversion arithmetic: supports
src/SteelTube.Domain/Services/WeightConversionService.cs