# moamenessamseja-web/manager-assistant-ready architecture

> Architecture diagram of the GitHub repository moamenessamseja-web/manager-assistant-ready, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/moamenessamseja-web/manager-assistant-ready
- Repository: https://github.com/moamenessamseja-web/manager-assistant-ready

## Overview

Manager Assistant is an Arabic-first, offline Flutter app for café owners. The main workflow is to enter or dictate a follow-up in chat, parse it locally, validate and execute the command, and report success only after saving; manual screens provide an alternative for recording the same kinds of business records. The app also covers staff, suppliers, customer balances, reminders, and daily/weekly follow-up. Source excerpts were unavailable, so documented relationships are cited to the README; inferred runtime links are dashed and uncited.

Main entry points: [`lib/services/storage_service.dart`](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/storage_service.dart) (Local storage), [`lib/services/assistant_controller.dart`](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/assistant_controller.dart) (Command execution), [`lib/screens/chat_screen.dart`](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/chat_screen.dart) (Chat entry), [`lib/screens/staff_screen.dart`](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/staff_screen.dart) (Employee management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_app["Flutter app<br/>[main.dart]"]
  node_chat["Chat entry<br/>[chat_screen.dart]"]
  node_today_brief["Today and brief<br/>[today_screen.dart]"]
  node_brief["Weekly brief<br/>[brief_screen.dart]"]
end

subgraph group_assistant["Local command assistant"]
  node_assistant_controller["Command execution"]
  node_parser["Arabic command parser"]
  node_choices["Clarification choices"]
end

subgraph group_operations["Business operations"]
  node_staff["Employee management<br/>[staff_screen.dart]"]
  node_suppliers["Supplier management"]
  node_receivables["Customer receivables"]
  node_reminders["Commitments and reminders"]
  node_rules["Business rules<br/>[rules_screen.dart]"]
end

subgraph group_local_services["Local services and data"]
  node_voice["Speech recognition"]
  node_storage[("Local storage")]
  node_models["Business records"]
  node_reminder_service["Reminder scheduling"]
  node_notifications["Local notifications"]
  node_settings["App settings"]
  node_backup["Backup and restore"]
end

node_owner(("Business owner"))

node_owner -->|"enters command"| node_chat
node_owner -->|"records manually"| node_staff
node_owner -->|"records manually"| node_suppliers
node_owner -->|"records manually"| node_receivables
node_owner -->|"sets reminder"| node_reminders
node_chat -.->|"submits entry"| node_assistant_controller
node_assistant_controller -.->|"parses command"| node_parser
node_assistant_controller -.->|"requests clarification"| node_choices
node_assistant_controller -->|"saves operation"| node_storage
node_assistant_controller -->|"reports after save"| node_chat
node_chat -->|"accepts dictated text"| node_voice
node_staff -.->|"records operations"| node_storage
node_suppliers -.->|"records operations"| node_storage
node_receivables -.->|"records operations"| node_storage
node_reminders -.->|"records commitment"| node_storage
node_today_brief -.->|"shows follow-up"| node_storage
node_brief -.->|"shows weekly activity"| node_storage

click node_app "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/main.dart"
click node_chat "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/chat_screen.dart"
click node_today_brief "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/today_screen.dart"
click node_brief "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/brief_screen.dart"
click node_assistant_controller "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/assistant_controller.dart"
click node_parser "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/local_command_parser.dart"
click node_choices "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/choice_builder.dart"
click node_staff "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/staff_screen.dart"
click node_suppliers "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/suppliers_screen.dart"
click node_receivables "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/receivables_screen.dart"
click node_reminders "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/reminder_editor.dart"
click node_rules "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/rules_screen.dart"
click node_storage "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/storage_service.dart"
click node_models "https://github.com/moamenessamseja-web/manager-assistant-ready/tree/main/lib/models"
click node_reminder_service "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/reminder_service.dart"
click node_notifications "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/notification_service.dart"
click node_settings "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/settings_service.dart"
click node_backup "https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/backup_service.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_app,node_chat,node_today_brief,node_brief toneBlue
class node_assistant_controller,node_parser,node_choices toneAmber
class node_staff,node_suppliers,node_receivables,node_reminders,node_rules toneMint
class node_voice,node_storage,node_models,node_reminder_service,node_notifications,node_settings,node_backup toneRose
class node_owner toneIndigo
```

## Components

### User interaction

- [Flutter app](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/main.dart): `lib/main.dart`
- [Chat entry](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/chat_screen.dart): `lib/screens/chat_screen.dart`
- [Today and brief](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/today_screen.dart): `lib/screens/today_screen.dart`
- [Weekly brief](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/brief_screen.dart): `lib/screens/brief_screen.dart`

### Local command assistant

- [Command execution](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/assistant_controller.dart): `lib/services/assistant_controller.dart`
- [Arabic command parser](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/local_command_parser.dart): `lib/services/local_command_parser.dart`
- [Clarification choices](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/choice_builder.dart): `lib/services/choice_builder.dart`

### Business operations

- [Employee management](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/staff_screen.dart): `lib/screens/staff_screen.dart`
- [Supplier management](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/suppliers_screen.dart): `lib/screens/suppliers_screen.dart`
- [Customer receivables](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/receivables_screen.dart): `lib/screens/receivables_screen.dart`
- [Commitments and reminders](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/reminder_editor.dart): `lib/screens/reminder_editor.dart`
- [Business rules](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/screens/rules_screen.dart): `lib/screens/rules_screen.dart`

### Local services and data

- **Speech recognition**
- [Local storage](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/storage_service.dart): `lib/services/storage_service.dart`
- [Business records](https://github.com/moamenessamseja-web/manager-assistant-ready/tree/main/lib/models): `lib/models`
- [Reminder scheduling](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/reminder_service.dart): `lib/services/reminder_service.dart`
- [Local notifications](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/notification_service.dart): `lib/services/notification_service.dart`
- [App settings](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/settings_service.dart): `lib/services/settings_service.dart`
- [Backup and restore](https://github.com/moamenessamseja-web/manager-assistant-ready/blob/main/lib/services/backup_service.dart): `lib/services/backup_service.dart`

### Other components

- **Business owner**

## Connections

- Business owner → Chat entry: enters command (evidence: `README.md`)
- Business owner → Employee management: records manually (evidence: `README.md`)
- Business owner → Supplier management: records manually (evidence: `README.md`)
- Business owner → Customer receivables: records manually (evidence: `README.md`)
- Business owner → Commitments and reminders: sets reminder (evidence: `README.md`)
- Chat entry → Command execution: submits entry
- Command execution → Arabic command parser: parses command
- Command execution → Clarification choices: requests clarification
- Command execution → Local storage: saves operation (evidence: `README.md`)
- Command execution → Chat entry: reports after save (evidence: `README.md`)
- Chat entry → Speech recognition: accepts dictated text (evidence: `README.md`)
- Employee management → Local storage: records operations
- Supplier management → Local storage: records operations
- Customer receivables → Local storage: records operations
- Commitments and reminders → Local storage: records commitment
- Today and brief → Local storage: shows follow-up
- Weekly brief → Local storage: shows weekly activity
