# tugich/deploymenteditor architecture

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

- Interactive diagram: https://gitdiagram.com/tugich/deploymenteditor
- Repository: https://github.com/tugich/deploymenteditor

## Overview

DeploymentEditor is a visual PSADT v4 packaging editor. Users create or open a project, assemble install/uninstall/repair actions with conditions, check and generate the deployment script, then run or distribute the package. The graph preserves the documented Intune, remote execution, import, PDF, plugin, and log-reader capabilities. Several modules are represented from the source index and README rather than inspected excerpts; their links are included only where those sources identify the relationship.

Main entry points: [`src/app.rs`](https://github.com/tugich/deploymenteditor/blob/main/src/app.rs) (Application State), [`src/ui/mod.rs`](https://github.com/tugich/deploymenteditor/blob/main/src/ui/mod.rs) (Editor Interface), [`src/project.rs`](https://github.com/tugich/deploymenteditor/blob/main/src/project.rs) (Project Store), [`src/ui/intune_upload.rs`](https://github.com/tugich/deploymenteditor/blob/main/src/ui/intune_upload.rs) (Intune Upload UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editing["Project Editing"]
  node_ui["Editor Interface<br/>[mod.rs]"]
  node_sequence["Action Sequence<br/>[sequence.rs]"]
  node_inspector["Step Properties<br/>[inspector.rs]"]
  node_conditions["Condition Builder<br/>[condition.rs]"]
  node_catalog[("PSADT Command Catalog<br/>[catalog.rs]")]
  node_project[("Project Store<br/>[project.rs]")]
end

subgraph group_package["Package Lifecycle"]
  node_validator["Quality Check<br/>[validate.rs]"]
  node_generator["Script Generator<br/>[generator.rs]"]
  node_runner["Package Runner<br/>[system.rs]"]
end

subgraph group_integrations["Deployment Integrations"]
  node_detection["Intune Detection Rules<br/>[detection.rs]"]
  node_intune_ui["Intune Upload UI<br/>[intune_upload.rs]"]
  node_intune["Graph Uploader<br/>[intune.rs]"]
  node_intunewin["Intune Package Builder<br/>[intunewin.rs]"]
  node_remote["Remote Testing<br/>[remote.rs]"]
  node_winget["WinGet Import<br/>[winget.rs]"]
  node_pdf["PDF Documentation<br/>[pdf.rs]"]
  node_logs["Software Log Reader<br/>[logs.rs]"]
  node_plugins["Plugin Runner<br/>[plugins.rs]"]
end

subgraph group_foundation["Editor Foundation"]
  node_app["Application State<br/>[app.rs]"]
  node_paths["Resource Locations<br/>[paths.rs]"]
  node_theme["Theme and Widgets<br/>[theme.rs]"]
  node_highlight["Script Highlighting<br/>[highlight.rs]"]
end

node_user(("Packaging Engineer"))
node_intune_service(("Microsoft Intune"))
node_windows(("Windows PowerShell"))

node_user -->|"uses"| node_app
node_app -->|"drives"| node_ui
node_ui -->|"edits steps"| node_sequence
node_ui -->|"edits properties"| node_inspector
node_inspector -->|"builds conditions"| node_conditions
node_app -->|"loads and saves"| node_project
node_sequence -->|"stores actions"| node_project
node_inspector -->|"uses parameters"| node_catalog
node_sequence -->|"displays commands"| node_catalog
node_app -->|"checks package"| node_validator
node_validator -->|"reads actions"| node_project
node_app -->|"generates script"| node_generator
node_generator -->|"reads project"| node_project
node_generator -->|"uses command metadata"| node_catalog
node_app -->|"launches package"| node_runner
node_runner -->|"runs PowerShell"| node_windows
node_app -->|"manages detection"| node_detection
node_intune_ui -->|"uploads app"| node_intune
node_intune_ui -->|"builds package"| node_intunewin
node_intune_ui -->|"configures rule"| node_detection
node_intune -->|"uploads encrypted package"| node_intunewin
node_intune -->|"calls Graph"| node_intune_service
node_app -->|"starts remote test"| node_remote
node_app -->|"imports WinGet"| node_winget
node_app -->|"exports documentation"| node_pdf
node_app -->|"opens log reader"| node_logs
node_app -->|"runs plugin"| node_plugins
node_app -->|"resolves resources"| node_paths
node_ui -->|"uses styling"| node_theme
node_ui -->|"highlights scripts"| node_highlight

click node_app "https://github.com/tugich/deploymenteditor/blob/main/src/app.rs"
click node_ui "https://github.com/tugich/deploymenteditor/blob/main/src/ui/mod.rs"
click node_sequence "https://github.com/tugich/deploymenteditor/blob/main/src/ui/sequence.rs"
click node_inspector "https://github.com/tugich/deploymenteditor/blob/main/src/ui/inspector.rs"
click node_conditions "https://github.com/tugich/deploymenteditor/blob/main/src/condition.rs"
click node_catalog "https://github.com/tugich/deploymenteditor/blob/main/src/catalog.rs"
click node_project "https://github.com/tugich/deploymenteditor/blob/main/src/project.rs"
click node_validator "https://github.com/tugich/deploymenteditor/blob/main/src/validate.rs"
click node_generator "https://github.com/tugich/deploymenteditor/blob/main/src/generator.rs"
click node_runner "https://github.com/tugich/deploymenteditor/blob/main/src/system.rs"
click node_detection "https://github.com/tugich/deploymenteditor/blob/main/src/detection.rs"
click node_intune_ui "https://github.com/tugich/deploymenteditor/blob/main/src/ui/intune_upload.rs"
click node_intune "https://github.com/tugich/deploymenteditor/blob/main/src/intune.rs"
click node_intunewin "https://github.com/tugich/deploymenteditor/blob/main/src/intunewin.rs"
click node_remote "https://github.com/tugich/deploymenteditor/blob/main/src/remote.rs"
click node_winget "https://github.com/tugich/deploymenteditor/blob/main/src/winget.rs"
click node_pdf "https://github.com/tugich/deploymenteditor/blob/main/src/pdf.rs"
click node_logs "https://github.com/tugich/deploymenteditor/blob/main/src/logs.rs"
click node_plugins "https://github.com/tugich/deploymenteditor/blob/main/src/plugins.rs"
click node_paths "https://github.com/tugich/deploymenteditor/blob/main/src/paths.rs"
click node_theme "https://github.com/tugich/deploymenteditor/blob/main/src/theme.rs"
click node_highlight "https://github.com/tugich/deploymenteditor/blob/main/src/highlight.rs"

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_ui,node_sequence,node_inspector,node_conditions,node_catalog,node_project toneBlue
class node_validator,node_generator,node_runner toneAmber
class node_detection,node_intune_ui,node_intune,node_intunewin,node_remote,node_winget,node_pdf,node_logs,node_plugins toneMint
class node_app,node_paths,node_theme,node_highlight toneRose
class node_user,node_intune_service,node_windows toneIndigo
```

## Components

### Project Editing

- [Editor Interface](https://github.com/tugich/deploymenteditor/blob/main/src/ui/mod.rs): `src/ui/mod.rs`
- [Action Sequence](https://github.com/tugich/deploymenteditor/blob/main/src/ui/sequence.rs): `src/ui/sequence.rs`
- [Step Properties](https://github.com/tugich/deploymenteditor/blob/main/src/ui/inspector.rs): `src/ui/inspector.rs`
- [Condition Builder](https://github.com/tugich/deploymenteditor/blob/main/src/condition.rs): `src/condition.rs`
- [PSADT Command Catalog](https://github.com/tugich/deploymenteditor/blob/main/src/catalog.rs): `src/catalog.rs`
- [Project Store](https://github.com/tugich/deploymenteditor/blob/main/src/project.rs): `src/project.rs`

### Package Lifecycle

- [Quality Check](https://github.com/tugich/deploymenteditor/blob/main/src/validate.rs): `src/validate.rs`
- [Script Generator](https://github.com/tugich/deploymenteditor/blob/main/src/generator.rs): `src/generator.rs`
- [Package Runner](https://github.com/tugich/deploymenteditor/blob/main/src/system.rs): `src/system.rs`

### Deployment Integrations

- [Intune Detection Rules](https://github.com/tugich/deploymenteditor/blob/main/src/detection.rs): `src/detection.rs`
- [Intune Upload UI](https://github.com/tugich/deploymenteditor/blob/main/src/ui/intune_upload.rs): `src/ui/intune_upload.rs`
- [Graph Uploader](https://github.com/tugich/deploymenteditor/blob/main/src/intune.rs): `src/intune.rs`
- [Intune Package Builder](https://github.com/tugich/deploymenteditor/blob/main/src/intunewin.rs): `src/intunewin.rs`
- [Remote Testing](https://github.com/tugich/deploymenteditor/blob/main/src/remote.rs): `src/remote.rs`
- [WinGet Import](https://github.com/tugich/deploymenteditor/blob/main/src/winget.rs): `src/winget.rs`
- [PDF Documentation](https://github.com/tugich/deploymenteditor/blob/main/src/pdf.rs): `src/pdf.rs`
- [Software Log Reader](https://github.com/tugich/deploymenteditor/blob/main/src/logs.rs): `src/logs.rs`
- [Plugin Runner](https://github.com/tugich/deploymenteditor/blob/main/src/plugins.rs): `src/plugins.rs`

### Editor Foundation

- [Application State](https://github.com/tugich/deploymenteditor/blob/main/src/app.rs): `src/app.rs`
- [Resource Locations](https://github.com/tugich/deploymenteditor/blob/main/src/paths.rs): `src/paths.rs`
- [Theme and Widgets](https://github.com/tugich/deploymenteditor/blob/main/src/theme.rs): `src/theme.rs`
- [Script Highlighting](https://github.com/tugich/deploymenteditor/blob/main/src/highlight.rs): `src/highlight.rs`

### Other components

- **Packaging Engineer**
- **Microsoft Intune**
- **Windows PowerShell**

## Connections

- Packaging Engineer → Application State: uses (evidence: `README.md`)
- Application State → Editor Interface: drives (evidence: `README.md`)
- Editor Interface → Action Sequence: edits steps (evidence: `README.md`)
- Editor Interface → Step Properties: edits properties (evidence: `README.md`)
- Step Properties → Condition Builder: builds conditions (evidence: `README.md`)
- Application State → Project Store: loads and saves (evidence: `src/app.rs`)
- Action Sequence → Project Store: stores actions (evidence: `src/ui/sequence.rs`)
- Step Properties → PSADT Command Catalog: uses parameters (evidence: `src/ui/inspector.rs`)
- Action Sequence → PSADT Command Catalog: displays commands (evidence: `src/ui/sequence.rs`)
- Application State → Quality Check: checks package (evidence: `src/app.rs`)
- Quality Check → Project Store: reads actions (evidence: `src/validate.rs`)
- Application State → Script Generator: generates script (evidence: `src/app.rs`)
- Script Generator → Project Store: reads project (evidence: `src/generator.rs`)
- Script Generator → PSADT Command Catalog: uses command metadata (evidence: `src/generator.rs`)
- Application State → Package Runner: launches package (evidence: `src/app.rs`)
- Package Runner → Windows PowerShell: runs PowerShell (evidence: `src/system.rs`)
- Application State → Intune Detection Rules: manages detection (evidence: `src/app.rs`)
- Intune Upload UI → Graph Uploader: uploads app (evidence: `src/ui/intune_upload.rs`)
- Intune Upload UI → Intune Package Builder: builds package (evidence: `src/ui/intune_upload.rs`)
- Intune Upload UI → Intune Detection Rules: configures rule (evidence: `src/ui/intune_upload.rs`)
- Graph Uploader → Intune Package Builder: uploads encrypted package (evidence: `src/intune.rs`)
- Graph Uploader → Microsoft Intune: calls Graph (evidence: `src/intune.rs`)
- Application State → Remote Testing: starts remote test (evidence: `src/app.rs`)
- Application State → WinGet Import: imports WinGet (evidence: `src/app.rs`)
- Application State → PDF Documentation: exports documentation (evidence: `README.md`)
- Application State → Software Log Reader: opens log reader (evidence: `src/app.rs`)
- Application State → Plugin Runner: runs plugin (evidence: `src/app.rs`)
- Application State → Resource Locations: resolves resources (evidence: `src/app.rs`)
- Editor Interface → Theme and Widgets: uses styling (evidence: `README.md`)
- Editor Interface → Script Highlighting: highlights scripts
