# osmanbenn/osman-teknik-pro-1 architecture

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

- Interactive diagram: https://gitdiagram.com/osmanbenn/osman-teknik-pro-1
- Repository: https://github.com/osmanbenn/osman-teknik-pro-1

## Overview

Osman Teknik Pro is a Turkish-language repair-shop management app: staff manage device repairs, sales, inventory, customer accounts, cash, and used-phone trades in a shared operational interface. The main workflow enters through the app shell, which selects a business area backed by shared application state and local persistence; service intake and POS additionally support scanning and receipt printing. The source index documents cloud sync, customer tracking, AI assistance, and management views as further capabilities. Some subsystem links are documented only by imports or the index, so unsampled behavior and integrations are not inferred beyond those references.

Main entry points: [`src/App.tsx`](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/App.tsx) (App Shell), [`src/components/Satis.tsx`](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Satis.tsx) (Point of Sale), [`src/components/Servis.tsx`](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Servis.tsx) (Repair Management), [`src/context/AppContext.tsx`](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/context/AppContext.tsx) (Shared State)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operations["Shop Operations"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_sales["Point of Sale<br/>[Satis.tsx]"]
  node_stock["Inventory<br/>[Stok.tsx]"]
  node_accounts["Customer Accounts<br/>[Cari.tsx]"]
  node_cash["Cash Management<br/>[Kasa.tsx]"]
  node_phone["Phone Trading"]
end

subgraph group_service["Repair Service"]
  node_service["Repair Management<br/>[Servis.tsx]"]
  node_intake["Service Intake"]
  node_portal["Customer Tracking"]
  node_receipt["Thermal Receipts"]
  node_technicians["Technician Metrics"]
  node_security["Security Helpers<br/>[security.ts]"]
end

subgraph group_assist["Assistive Features"]
  node_scanner["Camera Scanner"]
  node_scanlogic["Scan Matching<br/>[smartScan.ts]"]
  node_ai["AI Assistant<br/>[AiAsistan.tsx]"]
  node_voice["Voice Assistant"]
end

subgraph group_platform["App Platform"]
  node_app["App Shell<br/>[App.tsx]"]
  node_state["Shared State<br/>[AppContext.tsx]"]
  node_local[("Local Storage<br/>[storage.ts]")]
  node_settings["Settings<br/>[Ayarlar.tsx]"]
  node_cloud["Cloud Sync<br/>[firebaseSync.ts]"]
  node_firebase["Firebase<br/>[firebase.ts]"]
  node_theme["Theme<br/>[ThemeContext.tsx]"]
  node_types["Domain Models<br/>[types.ts]"]
end

node_staff(("Shop Staff"))

node_staff -->|"uses"| node_app
node_app -->|"provides state"| node_state
node_app -->|"provides theme"| node_theme
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_service
node_app -->|"renders"| node_sales
node_app -->|"renders"| node_stock
node_app -->|"renders"| node_accounts
node_app -->|"renders"| node_cash
node_app -->|"renders"| node_phone
node_app -->|"renders"| node_ai
node_state -->|"persists data"| node_local
node_theme -->|"persists theme"| node_local
node_settings -->|"uses sync"| node_cloud
node_cloud -->|"uses service"| node_firebase
node_sales -->|"opens scanner"| node_scanner
node_sales -->|"matches scan"| node_scanlogic
node_sales -.->|"prints receipt"| node_receipt
node_stock -->|"uses scanner"| node_scanner
node_stock -->|"uses matching"| node_scanlogic
node_service -->|"opens intake"| node_intake
node_service -->|"uses tracking"| node_portal
node_service -->|"prints receipt"| node_receipt
node_service -->|"shows metrics"| node_technicians
node_intake -->|"validates and marks"| node_security
node_receipt -->|"generates QR"| node_security
node_state -->|"uses models"| node_types
node_sales -->|"uses models"| node_types
node_portal -->|"reads shared state"| node_state

click node_app "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/App.tsx"
click node_state "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/context/AppContext.tsx"
click node_local "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/storage.ts"
click node_settings "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Ayarlar.tsx"
click node_cloud "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/firebaseSync.ts"
click node_firebase "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/firebase.ts"
click node_theme "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/context/ThemeContext.tsx"
click node_dashboard "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Dashboard.tsx"
click node_sales "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Satis.tsx"
click node_stock "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Stok.tsx"
click node_accounts "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Cari.tsx"
click node_cash "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Kasa.tsx"
click node_phone "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/TelefonAlimSatim.tsx"
click node_service "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Servis.tsx"
click node_intake "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/ServisKabulModal.tsx"
click node_portal "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/CustomerTrackingPortal.tsx"
click node_receipt "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/ThermalReceiptModal.tsx"
click node_scanner "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/CameraScannerModal.tsx"
click node_scanlogic "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/smartScan.ts"
click node_ai "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/AiAsistan.tsx"
click node_voice "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/VoiceAssistantController.tsx"
click node_technicians "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/TechnicianPerformanceModal.tsx"
click node_security "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/security.ts"
click node_types "https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/types.ts"

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_dashboard,node_sales,node_stock,node_accounts,node_cash,node_phone toneBlue
class node_service,node_intake,node_portal,node_receipt,node_technicians,node_security toneAmber
class node_scanner,node_scanlogic,node_ai,node_voice toneMint
class node_app,node_state,node_local,node_settings,node_cloud,node_firebase,node_theme,node_types toneRose
class node_staff toneIndigo
```

## Components

### Shop Operations

- [Dashboard](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Dashboard.tsx): `src/components/Dashboard.tsx`
- [Point of Sale](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Satis.tsx): `src/components/Satis.tsx`
- [Inventory](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Stok.tsx): `src/components/Stok.tsx`
- [Customer Accounts](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Cari.tsx): `src/components/Cari.tsx`
- [Cash Management](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Kasa.tsx): `src/components/Kasa.tsx`
- [Phone Trading](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/TelefonAlimSatim.tsx): `src/components/TelefonAlimSatim.tsx`

### Repair Service

- [Repair Management](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Servis.tsx): `src/components/Servis.tsx`
- [Service Intake](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/ServisKabulModal.tsx): `src/components/ServisKabulModal.tsx`
- [Customer Tracking](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/CustomerTrackingPortal.tsx): `src/components/CustomerTrackingPortal.tsx`
- [Thermal Receipts](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/ThermalReceiptModal.tsx): `src/components/ThermalReceiptModal.tsx`
- [Technician Metrics](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/TechnicianPerformanceModal.tsx): `src/components/TechnicianPerformanceModal.tsx`
- [Security Helpers](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/security.ts): `src/utils/security.ts`

### Assistive Features

- [Camera Scanner](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/CameraScannerModal.tsx): `src/components/CameraScannerModal.tsx`
- [Scan Matching](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/smartScan.ts): `src/utils/smartScan.ts`
- [AI Assistant](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/AiAsistan.tsx): `src/components/AiAsistan.tsx`
- [Voice Assistant](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/VoiceAssistantController.tsx): `src/components/VoiceAssistantController.tsx`

### App Platform

- [App Shell](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/App.tsx): `src/App.tsx`
- [Shared State](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/context/AppContext.tsx): `src/context/AppContext.tsx`
- [Local Storage](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/storage.ts): `src/utils/storage.ts`
- [Settings](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/components/Ayarlar.tsx): `src/components/Ayarlar.tsx`
- [Cloud Sync](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/utils/firebaseSync.ts): `src/utils/firebaseSync.ts`
- [Firebase](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/firebase.ts): `src/firebase.ts`
- [Theme](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/context/ThemeContext.tsx): `src/context/ThemeContext.tsx`
- [Domain Models](https://github.com/osmanbenn/osman-teknik-pro-1/blob/main/src/types.ts): `src/types.ts`

### Other components

- **Shop Staff**

## Connections

- Shop Staff → App Shell: uses
- App Shell → Shared State: provides state (evidence: `src/App.tsx`)
- App Shell → Theme: provides theme (evidence: `src/App.tsx`)
- App Shell → Dashboard: renders (evidence: `src/App.tsx`)
- App Shell → Repair Management: renders (evidence: `src/App.tsx`)
- App Shell → Point of Sale: renders (evidence: `src/App.tsx`)
- App Shell → Inventory: renders (evidence: `src/App.tsx`)
- App Shell → Customer Accounts: renders (evidence: `src/App.tsx`)
- App Shell → Cash Management: renders (evidence: `src/App.tsx`)
- App Shell → Phone Trading: renders (evidence: `src/App.tsx`)
- App Shell → AI Assistant: renders (evidence: `src/App.tsx`)
- Shared State → Local Storage: persists data (evidence: `src/context/AppContext.tsx`)
- Theme → Local Storage: persists theme (evidence: `src/context/ThemeContext.tsx`)
- Settings → Cloud Sync: uses sync (evidence: `src/components/Ayarlar.tsx`)
- Cloud Sync → Firebase: uses service (evidence: `src/utils/firebaseSync.ts`)
- Point of Sale → Camera Scanner: opens scanner (evidence: `src/components/Satis.tsx`)
- Point of Sale → Scan Matching: matches scan (evidence: `src/components/Satis.tsx`)
- Point of Sale → Thermal Receipts: prints receipt (evidence: `src/components/Satis.tsx`)
- Inventory → Camera Scanner: uses scanner (evidence: `src/components/Stok.tsx`)
- Inventory → Scan Matching: uses matching (evidence: `src/components/Stok.tsx`)
- Repair Management → Service Intake: opens intake (evidence: `src/components/Servis.tsx`)
- Repair Management → Customer Tracking: uses tracking (evidence: `src/components/Servis.tsx`)
- Repair Management → Thermal Receipts: prints receipt (evidence: `src/components/Servis.tsx`)
- Repair Management → Technician Metrics: shows metrics (evidence: `src/components/Servis.tsx`)
- Service Intake → Security Helpers: validates and marks (evidence: `src/components/ServisKabulModal.tsx`)
- Thermal Receipts → Security Helpers: generates QR (evidence: `src/components/ThermalReceiptModal.tsx`)
- Shared State → Domain Models: uses models (evidence: `src/context/AppContext.tsx`)
- Point of Sale → Domain Models: uses models (evidence: `src/components/Satis.tsx`)
- Customer Tracking → Shared State: reads shared state (evidence: `src/components/CustomerTrackingPortal.tsx`)
