# bishojit-sarker/path-ordersync-pro architecture

> Architecture diagram of the GitHub repository bishojit-sarker/path-ordersync-pro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bishojit-sarker/path-ordersync-pro
- Repository: https://github.com/bishojit-sarker/path-ordersync-pro

## Overview

Path OrderSync Pro is a Windows desktop QC tool for e-commerce photo orders. Users enter order IDs, clean and deduplicate them, select vendors, inspect matching folders, hydrate files for local QC, then return selected or pending orders to online-only storage. The main runtime is concentrated in app.py; the README also describes history, NAS fallback, storage metrics, and in-app updating. The source excerpt is partial, so those documented capabilities are shown without implying their internal implementation details were inspected.

Main entry points: [`app.py`](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py) (Make local)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_order_workflow["Order QC workflow"]
  node_order_entry["Order ID input<br/>[app.py]"]
  node_cleanup["Clean and deduplicate<br/>[app.py]"]
  node_vendor_filter["Vendor selection<br/>[app.py]"]
  node_folder_index["Vendor folder indexing<br/>[app.py]"]
  node_qc_table["QC order table<br/>[app.py]"]
end

subgraph group_storage["Storage and recovery"]
  node_local_hydration["Make local<br/>[app.py]"]
  node_online_reclaim["Make online<br/>[app.py]"]
  node_history[("Order history<br/>[app.py]")]
  node_nas_fallback["NAS order fallback<br/>[app.py]"]
end

subgraph group_operations["Monitoring and control"]
  node_progress_controls["Batch progress controls<br/>[app.py]"]
  node_storage_metrics["Storage metrics<br/>[app.py]"]
  node_settings["Path settings<br/>[app.py]"]
  node_updater["In-app updater<br/>[app.py]"]
end

subgraph group_integrations["External integrations"]
  node_dropbox[("Dropbox cloud files")]
  node_windows_cloud["Windows cloud API"]
  node_synology[("Synology NAS")]
  node_github["GitHub releases"]
end

node_user(("QC operator"))

node_user -->|"enters IDs"| node_order_entry
node_order_entry -->|"cleans IDs"| node_cleanup
node_user -->|"selects vendors"| node_vendor_filter
node_vendor_filter -->|"limits scan"| node_folder_index
node_cleanup -->|"loads orders"| node_qc_table
node_folder_index -->|"matches folders"| node_qc_table
node_user -->|"starts QC"| node_local_hydration
node_local_hydration -->|"hydrates files"| node_windows_cloud
node_windows_cloud -->|"reads cloud files"| node_dropbox
node_local_hydration -->|"tracks local orders"| node_history
node_user -->|"frees space"| node_online_reclaim
node_online_reclaim -->|"sets online-only"| node_windows_cloud
node_online_reclaim -->|"updates status"| node_history
node_history -->|"reloads orders"| node_qc_table
node_user -->|"looks up order"| node_nas_fallback
node_nas_fallback -->|"checks NAS"| node_synology
node_local_hydration -->|"reports progress"| node_progress_controls
node_online_reclaim -->|"reports progress"| node_progress_controls
node_user -->|"configures paths"| node_settings
node_settings -->|"selects root"| node_dropbox
node_settings -->|"selects NAS root"| node_synology
node_user -->|"views metrics"| node_storage_metrics
node_user -->|"checks updates"| node_updater
node_updater -->|"checks releases"| node_github

click node_order_entry "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_cleanup "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_vendor_filter "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_folder_index "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_qc_table "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_local_hydration "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_online_reclaim "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_history "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_nas_fallback "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_progress_controls "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_storage_metrics "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_settings "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"
click node_updater "https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py"

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_order_entry,node_cleanup,node_vendor_filter,node_folder_index,node_qc_table toneBlue
class node_local_hydration,node_online_reclaim,node_history,node_nas_fallback toneAmber
class node_progress_controls,node_storage_metrics,node_settings,node_updater toneMint
class node_dropbox,node_windows_cloud,node_synology,node_github toneRose
class node_user toneIndigo
```

## Components

### Order QC workflow

- [Order ID input](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [Clean and deduplicate](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [Vendor selection](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [Vendor folder indexing](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [QC order table](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`

### Storage and recovery

- [Make local](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [Make online](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [Order history](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [NAS order fallback](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`

### Monitoring and control

- [Batch progress controls](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [Storage metrics](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [Path settings](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`
- [In-app updater](https://github.com/bishojit-sarker/path-ordersync-pro/blob/main/app.py): `app.py`

### External integrations

- **Dropbox cloud files**
- **Windows cloud API**
- **Synology NAS**
- **GitHub releases**

### Other components

- **QC operator**

## Connections

- QC operator → Order ID input: enters IDs (evidence: `README.md`)
- Order ID input → Clean and deduplicate: cleans IDs (evidence: `README.md`)
- QC operator → Vendor selection: selects vendors (evidence: `README.md`)
- Vendor selection → Vendor folder indexing: limits scan (evidence: `README.md`)
- Clean and deduplicate → QC order table: loads orders (evidence: `README.md`)
- Vendor folder indexing → QC order table: matches folders (evidence: `README.md`)
- QC operator → Make local: starts QC (evidence: `README.md`)
- Make local → Windows cloud API: hydrates files (evidence: `README.md`)
- Windows cloud API → Dropbox cloud files: reads cloud files (evidence: `README.md`)
- Make local → Order history: tracks local orders (evidence: `README.md`)
- QC operator → Make online: frees space (evidence: `README.md`)
- Make online → Windows cloud API: sets online-only (evidence: `README.md`)
- Make online → Order history: updates status (evidence: `README.md`)
- Order history → QC order table: reloads orders (evidence: `README.md`)
- QC operator → NAS order fallback: looks up order (evidence: `README.md`)
- NAS order fallback → Synology NAS: checks NAS (evidence: `README.md`)
- Make local → Batch progress controls: reports progress (evidence: `README.md`)
- Make online → Batch progress controls: reports progress (evidence: `README.md`)
- QC operator → Path settings: configures paths (evidence: `app.py`)
- Path settings → Dropbox cloud files: selects root (evidence: `app.py`)
- Path settings → Synology NAS: selects NAS root (evidence: `app.py`)
- QC operator → Storage metrics: views metrics (evidence: `README.md`)
- QC operator → In-app updater: checks updates (evidence: `README.md`)
- In-app updater → GitHub releases: checks releases (evidence: `README.md`)
