# stephenmcgurrin/saved-search-deployment-generator architecture

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

- Interactive diagram: https://gitdiagram.com/stephenmcgurrin/saved-search-deployment-generator
- Repository: https://github.com/stephenmcgurrin/saved-search-deployment-generator

## Overview

NetSuite Script Formatter is a small Tkinter desktop utility. The user enters a Saved Search script and metadata, then previews or saves a generated JavaScript `require(['N/search'], ...)` script. The single source file implements the form, formatting and validation, preview, and save actions; edges reflect calls visible in its excerpt.

Main entry points: [`SavedSearchScriptGenerator.py`](https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py) (Script formatter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_form["Input form"]
end

subgraph group_generation["Script generation"]
  node_formatter["Script formatter"]
end

subgraph group_output["Preview and export"]
  node_preview["Preview window"]
  node_save["JavaScript file export"]
end

node_user(("User"))

node_user -->|"enters details"| node_form
node_form -->|"requests formatting"| node_formatter
node_formatter -->|"displays result"| node_preview
node_formatter -->|"writes result"| node_save
node_user -->|"clicks Preview"| node_preview
node_user -->|"clicks Process and Save"| node_save

click node_form "https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py"
click node_formatter "https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py"
click node_preview "https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py"
click node_save "https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.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_form,node_user toneBlue
class node_formatter toneAmber
class node_preview,node_save toneMint
```

## Components

### Desktop interface

- [Input form](https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py): `SavedSearchScriptGenerator.py`

### Script generation

- [Script formatter](https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py): `SavedSearchScriptGenerator.py`

### Preview and export

- [Preview window](https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py): `SavedSearchScriptGenerator.py`
- [JavaScript file export](https://github.com/stephenmcgurrin/saved-search-deployment-generator/blob/main/SavedSearchScriptGenerator.py): `SavedSearchScriptGenerator.py`

### Other components

- **User**

## Connections

- User → Input form: enters details (evidence: `SavedSearchScriptGenerator.py`)
- Input form → Script formatter: requests formatting (evidence: `SavedSearchScriptGenerator.py`)
- Script formatter → Preview window: displays result (evidence: `SavedSearchScriptGenerator.py`)
- Script formatter → JavaScript file export: writes result (evidence: `SavedSearchScriptGenerator.py`)
- User → Preview window: clicks Preview (evidence: `SavedSearchScriptGenerator.py`)
- User → JavaScript file export: clicks Process and Save (evidence: `SavedSearchScriptGenerator.py`)
