How ssmoter/szarotka works
SzarotkaBlazor is a cross-platform app with two operational areas: driver-route planning and inventory tracking, backed by shared database services. The documented-by-tree route workflow starts from route selection, filters customer stops by weekday, and presents them on a map; route/customer editing and navigation are separate capabilities. Inventory includes daily and date-range views, product/price management, graphs, and CSV output. Source excerpts confirm route selection, database writes, Google route requests, and app startup; wiring for unsampled screens is intentionally not asserted.
Main entry points: AccessDataBase.cs Database access · MainVDriversRoutesVM.cs Route selection · MapsVM.cs Route map · MainVM.cs Inventory overview
Components 24
Application
- App startup
SzarotkaBlazor/App.xaml.cs
Driver routes
- Route selection
DriversRoutes/Pages/Main/MainVDriversRoutesVM.cs - Route records
DriversRoutes/Data/SelectRoutes.cs - Customer stops
DriversRoutes/Pages/ListOfPoints/ListOfPointsVM.cs - Customer editing
DriversRoutes/Pages/Customer/AddCustomer/AddCustomerVM.cs - Stop schedules
DataBase/Model/EntitiesRoutes/SelectedDayOfWeek.cs - Route map
DriversRoutes/Pages/Maps/MapAndPoints/MapsVM.cs - Turn navigation
DriversRoutes/Pages/Maps/Navigate/NavigateVM.cs - Device location
DriversRoutes/Data/ActionLocation/CurrentLocation.cs - Address lookup
DriversRoutes/Data/GoogleApi/AddressFromCoordinates.cs - Route directions
DriversRoutes/Data/GoogleApi/Routes.cs
Inventory
- Inventory overview
Inventory/Pages/Main/MainVM.cs - Daily inventory
Inventory/Pages/SingleDay/SingleDayVM.cs - Date range
Inventory/Pages/RangeDay/RangeDayVM.cs - Inventory graphs
Inventory/Pages/RangeDay/Graph/GraphVM.cs - Product catalog
Inventory/Pages/Products/ListProduct/ListProductVM.cs - CSV export
Inventory/Data/File/CSVFile.cs
Shared data
- Database access
DataBase/Data/AccessDataBase.cs - Local route store
DataBase/Data/DriversRoutesTables.cs - Inventory store
DataBase/Data/InventoryTables.cs - Route persistence
DriversRoutes/Data/SaveRoutes.cs - Daily persistence
Inventory/Data/SaveDayService.cs
Other components
- User
- Google Maps API
Connections 23
- User → App startup: opens
- App startup → Route selection: starts route area
- Route selection → Database access: loads routes
- Route selection → Route map: opens selected route
- Route selection → Customer stops: opens stop list
- Route map → Device location: requests location
- Route map → Address lookup: resolves coordinates
- Route map → Route directions: requests directions
- Turn navigation → Device location: uses location
- Address lookup → Google Maps API: calls geocoding
- Route directions → Google Maps API: requests routes
- Customer editing → Route persistence: saves customer
- Route persistence → Database access: writes records
- Database access → Local route store: accesses tables
- User → Inventory overview: opens inventory
- Inventory overview → Daily inventory: opens daily view
- Inventory overview → Date range: opens date range
- Date range → Inventory graphs: presents graph
- Daily inventory → CSV export: exports data
- Daily inventory → Daily persistence: saves daily data
- Daily persistence → Database access: writes records
- Inventory overview → Product catalog: opens products
- Database access → Inventory store: accesses tables