# desarrollosantander1/homevoice architecture

> Architecture diagram of the GitHub repository desarrollosantander1/homevoice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/desarrollosantander1/homevoice
- Repository: https://github.com/desarrollosantander1/homevoice

## Overview

Home Voice CS appears to be a voice-assisted warehouse operations app, with workflows for orders, picking, packing, and warehouse navigation. The tree also shows login, connectivity, device scanning, printers, diagnostics, and updates. The README points to ROADMAP.md for the product flow, but its contents and the Dart runtime sources were not provided; arrows below therefore mark inferred, unverified workflow links rather than inspected calls.

Main entry points: [`lib/app/views/picking_view.dart`](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/picking_view.dart) (Picking), [`lib/app/services/pedido_service.dart`](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/services/pedido_service.dart) (Warehouse services), [`lib/app/views/home_view.dart`](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/home_view.dart) (Home navigation), [`lib/app/views/pedido_view.dart`](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/pedido_view.dart) (Order selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and app shell"]
  node_login["Login<br/>[login.dart]"]
  node_home["Home navigation<br/>[home_view.dart]"]
end

subgraph group_warehouse["Warehouse workflows"]
  node_orders["Order selection<br/>[pedido_view.dart]"]
  node_orderdetail["Order details"]
  node_pending["Pending orders"]
  node_picking["Picking<br/>[picking_view.dart]"]
  node_packing["Packing<br/>[packing_view.dart]"]
  node_route["Warehouse route"]
end

subgraph group_voice["Voice and devices"]
  node_voice["Voice commands"]
  node_command["Packing commands"]
  node_speech["Speech service<br/>[SpeechService.kt]"]
  node_scanner["Barcode scanner"]
  node_printers["Printer management"]
end

subgraph group_services["Data and integrations"]
  node_api["API client<br/>[api_client.dart]"]
  node_warehouse_services["Warehouse services"]
  node_local_data[("Local database")]
  node_diagnostics["Diagnostics and logs"]
  node_updates["App updates"]
end

node_operator(("Warehouse operator"))

node_operator -.->|"signs in"| node_login
node_login -.->|"opens"| node_home
node_home -.->|"selects orders"| node_orders
node_orders -.->|"opens details"| node_orderdetail
node_orders -.->|"views pending"| node_pending
node_orderdetail -.->|"starts picking"| node_picking
node_picking -.->|"uses route"| node_route
node_picking -.->|"continues to pack"| node_packing
node_voice -.->|"uses speech"| node_speech
node_voice -.->|"dispatches commands"| node_command
node_picking -.->|"accepts commands"| node_voice
node_packing -.->|"accepts commands"| node_voice
node_picking -.->|"uses scanning"| node_scanner
node_packing -.->|"uses printers"| node_printers
node_warehouse_services -.->|"uses client"| node_api
node_orders -.->|"loads orders"| node_warehouse_services
node_picking -.->|"updates picking"| node_warehouse_services
node_packing -.->|"updates packing"| node_warehouse_services
node_warehouse_services -.->|"persists locally"| node_local_data
node_home -.->|"opens diagnostics"| node_diagnostics
node_home -.->|"opens updates"| node_updates

click node_login "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/login/login.dart"
click node_home "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/home_view.dart"
click node_orders "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/pedido_view.dart"
click node_orderdetail "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/pedido_detalle_view.dart"
click node_pending "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/pedidos_pendientes_view.dart"
click node_picking "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/picking_view.dart"
click node_packing "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/packing_view.dart"
click node_route "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/recorrido_view.dart"
click node_voice "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/voice_controller.dart"
click node_command "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/packing_command_handler.dart"
click node_speech "https://github.com/desarrollosantander1/homevoice/blob/main/android/app/src/main/kotlin/com/example/home_voice_cs/SpeechService.kt"
click node_scanner "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/datawedge_controller.dart"
click node_printers "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/printers_controller.dart"
click node_api "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/services/api_client.dart"
click node_warehouse_services "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/services/pedido_service.dart"
click node_local_data "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/database/database_service.dart"
click node_diagnostics "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/diagnostico_view.dart"
click node_updates "https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/download_controller.dart"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_home toneBlue
class node_orders,node_orderdetail,node_pending,node_picking,node_packing,node_route toneAmber
class node_voice,node_command,node_speech,node_scanner,node_printers toneMint
class node_api,node_warehouse_services,node_local_data,node_diagnostics,node_updates toneRose
class node_operator toneIndigo
```

## Components

### Access and app shell

- [Login](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/login/login.dart): `lib/app/views/login/login.dart`
- [Home navigation](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/home_view.dart): `lib/app/views/home_view.dart`

### Warehouse workflows

- [Order selection](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/pedido_view.dart): `lib/app/views/pedido_view.dart`
- [Order details](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/pedido_detalle_view.dart): `lib/app/views/pedido_detalle_view.dart`
- [Pending orders](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/pedidos_pendientes_view.dart): `lib/app/views/pedidos_pendientes_view.dart`
- [Picking](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/picking_view.dart): `lib/app/views/picking_view.dart`
- [Packing](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/packing_view.dart): `lib/app/views/packing_view.dart`
- [Warehouse route](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/recorrido_view.dart): `lib/app/views/recorrido_view.dart`

### Voice and devices

- [Voice commands](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/voice_controller.dart): `lib/app/controllers/voice_controller.dart`
- [Packing commands](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/packing_command_handler.dart): `lib/app/controllers/packing_command_handler.dart`
- [Speech service](https://github.com/desarrollosantander1/homevoice/blob/main/android/app/src/main/kotlin/com/example/home_voice_cs/SpeechService.kt): `android/app/src/main/kotlin/com/example/home_voice_cs/SpeechService.kt`
- [Barcode scanner](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/datawedge_controller.dart): `lib/app/controllers/datawedge_controller.dart`
- [Printer management](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/printers_controller.dart): `lib/app/controllers/printers_controller.dart`

### Data and integrations

- [API client](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/services/api_client.dart): `lib/app/services/api_client.dart`
- [Warehouse services](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/services/pedido_service.dart): `lib/app/services/pedido_service.dart`
- [Local database](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/database/database_service.dart): `lib/app/database/database_service.dart`
- [Diagnostics and logs](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/views/diagnostico_view.dart): `lib/app/views/diagnostico_view.dart`
- [App updates](https://github.com/desarrollosantander1/homevoice/blob/main/lib/app/controllers/download_controller.dart): `lib/app/controllers/download_controller.dart`

### Other components

- **Warehouse operator**

## Connections

- Warehouse operator → Login: signs in
- Login → Home navigation: opens
- Home navigation → Order selection: selects orders
- Order selection → Order details: opens details
- Order selection → Pending orders: views pending
- Order details → Picking: starts picking
- Picking → Warehouse route: uses route
- Picking → Packing: continues to pack
- Voice commands → Speech service: uses speech
- Voice commands → Packing commands: dispatches commands
- Picking → Voice commands: accepts commands
- Packing → Voice commands: accepts commands
- Picking → Barcode scanner: uses scanning
- Packing → Printer management: uses printers
- Warehouse services → API client: uses client
- Order selection → Warehouse services: loads orders
- Picking → Warehouse services: updates picking
- Packing → Warehouse services: updates packing
- Warehouse services → Local database: persists locally
- Home navigation → Diagnostics and logs: opens diagnostics
- Home navigation → App updates: opens updates
