How jaybeloc/gwg-import-builder works
GWG Import Builder is a browser-only tool that turns sales-order files and a customer contract export into a GWG product workbook plus an audit checklist. Users load orders in batches, add contract prices, review generated product and embroidery decisions, and download the results. The graph separates input parsing, SKU and decoration decisions, workbook output, and browser preferences. Some orchestration links are documented by the README; unsampled parser and UI internals are not inferred beyond those documented relationships.
Main entry points: build.js Product and embroidery builder · app.js Workflow UI · parse-contract.js Contract parser · prefs.js Prefix preferences
Components 16
Browser workflow
- Workflow UI
js/app.js
Input parsing
- Order parser
js/parse-orders.js - PDF reader
js/parse-pdf.js - Contract parser
js/parse-contract.js - Shared helpers
js/util.js
Product decisions
- Product configuration
js/config.js - SKU and colour rules
js/sku.js - Product and embroidery builder
js/build.js
Workbook output
- Import workbook
js/export.js - Audit checklist
js/export.js
Local preferences
- Prefix options
js/app.js - Prefix preferences
js/prefs.js - Browser storage
Other components
- User
- Contract file
- Order files
Connections 18
- User → Workflow UI: loads files
README.md - Workflow UI → Order parser: processes orders
README.md - Workflow UI → PDF reader: processes PDFs
README.md - Workflow UI → Contract parser: loads contract
README.md - Order files → Order parser: provides orders
README.md - Contract file → Contract parser: provides prices
README.md - Contract parser → Shared helpers: maps headers
js/parse-contract.js - Workflow UI → Product and embroidery builder: builds sheet
README.md - Order parser → Product and embroidery builder: provides order data
README.md - Contract parser → Product and embroidery builder: provides contract data
README.md - Product and embroidery builder → SKU and colour rules: resolves SKU stems
js/build.js - Product and embroidery builder → Import workbook: provides product rows
README.md - Product and embroidery builder → Audit checklist: provides audit data
README.md - Workflow UI → Prefix options: presents options
README.md - Prefix options → Prefix preferences: manages prefixes
README.md - Prefix preferences → Browser storage: reads and writes
js/prefs.js - Prefix preferences → SKU and colour rules: supplies prefix rules
- Product and embroidery builder → Audit checklist: records embroidery decisions
README.md