# yogeshvimalan99/plpi-bar architecture

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

- Interactive diagram: https://gitdiagram.com/yogeshvimalan99/plpi-bar
- Repository: https://github.com/yogeshvimalan99/plpi-bar

## Overview

This repository is primarily a PLPI batch-record workflow wireframe, with a separate handheld production-controller wireframe. The main user journey runs from Goods-In packing-list checks through Responsible Person approval and Batch Checker verification; the handheld controller models stock transfer and line-clearance interactions. The workflow links are supported by the flowchart excerpt, while packing-list and tablet details are also visible in capture-script excerpts. Most application source was not sampled, so component boundaries use the existing wireframe paths and should be read as functional areas, not verified internal modules.

Main entry points: [`wireframe/app.js`](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js) (Packing List), [`wireframe/handheld-production-controller/handheld-production-controller.js`](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/handheld-production-controller/handheld-production-controller.js) (Stock Review), [`wireframe/dev-server.mjs`](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/dev-server.mjs) (Static Web Runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_batch["Batch Workflow"]
  node_packing["Packing List<br/>[app.js]"]
  node_tablet["Goods-In Checklist<br/>[app.js]"]
  node_label_print["Verify and Print<br/>[app.js]"]
  node_release["Document Release<br/>[app.js]"]
end

subgraph group_review["Approval and Checks"]
  node_doc_review["Document Review<br/>[app.js]"]
  node_approval["RPi Approval<br/>[app.js]"]
  node_pdf_email["PDF and Email<br/>[app.js]"]
  node_stock_accept["Stock Acceptance<br/>[app.js]"]
  node_evidence["Evidence Review<br/>[app.js]"]
  node_product_verify["Product Verification<br/>[app.js]"]
  node_pcl["PCL Generation<br/>[app.js]"]
end

subgraph group_production["Production Handheld"]
  node_stock_review["Stock Review"]
  node_transfer["Stock Transfer"]
  node_line_clearance["Line Clearance"]
end

subgraph group_runtime["Wireframe Runtime"]
  node_web_runtime["Static Web Runtime<br/>[dev-server.mjs]"]
end

node_goods_actor(("Goods-In User"))
node_rpi_actor(("Responsible Person"))
node_checker_actor(("Batch Checker"))
node_prod_actor(("Production User"))

node_goods_actor -->|"opens PO"| node_packing
node_packing -->|"completes checklist"| node_tablet
node_tablet -->|"verifies and prints"| node_label_print
node_label_print -->|"releases documents"| node_release
node_rpi_actor -->|"reviews files"| node_doc_review
node_release -->|"routes for review"| node_doc_review
node_doc_review -->|"completes approval"| node_approval
node_approval -->|"generates and sends"| node_pdf_email
node_pdf_email -->|"awaits acceptance"| node_stock_accept
node_stock_accept -->|"enables batch check"| node_evidence
node_checker_actor -->|"opens eligible line"| node_evidence
node_evidence -->|"reviews evidence"| node_product_verify
node_product_verify -->|"generates PCL"| node_pcl
node_prod_actor -.->|"reviews stock"| node_stock_review
node_stock_review -.->|"initiates transfer"| node_transfer
node_prod_actor -.->|"records clearance"| node_line_clearance
node_web_runtime -->|"serves wireframe"| node_packing
node_web_runtime -->|"serves wireframe"| node_stock_review

click node_packing "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_tablet "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_label_print "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_release "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_doc_review "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_approval "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_pdf_email "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_stock_accept "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_evidence "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_product_verify "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_pcl "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js"
click node_stock_review "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/handheld-production-controller/handheld-production-controller.js"
click node_transfer "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/handheld-production-controller/handheld-production-controller.js"
click node_line_clearance "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/handheld-production-controller/handheld-production-controller.js"
click node_web_runtime "https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/dev-server.mjs"

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_packing,node_tablet,node_label_print,node_release,node_goods_actor,node_prod_actor toneBlue
class node_doc_review,node_approval,node_pdf_email,node_stock_accept,node_evidence,node_product_verify,node_pcl toneAmber
class node_stock_review,node_transfer,node_line_clearance toneMint
class node_web_runtime toneRose
class node_rpi_actor,node_checker_actor toneIndigo
```

## Components

### Batch Workflow

- [Packing List](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [Goods-In Checklist](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [Verify and Print](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [Document Release](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`

### Approval and Checks

- [Document Review](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [RPi Approval](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [PDF and Email](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [Stock Acceptance](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [Evidence Review](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [Product Verification](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`
- [PCL Generation](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/app.js): `wireframe/app.js`

### Production Handheld

- [Stock Review](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/handheld-production-controller/handheld-production-controller.js): `wireframe/handheld-production-controller/handheld-production-controller.js`
- [Stock Transfer](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/handheld-production-controller/handheld-production-controller.js): `wireframe/handheld-production-controller/handheld-production-controller.js`
- [Line Clearance](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/handheld-production-controller/handheld-production-controller.js): `wireframe/handheld-production-controller/handheld-production-controller.js`

### Wireframe Runtime

- [Static Web Runtime](https://github.com/yogeshvimalan99/plpi-bar/blob/main/wireframe/dev-server.mjs): `wireframe/dev-server.mjs`

### Other components

- **Goods-In User**
- **Responsible Person**
- **Batch Checker**
- **Production User**

## Connections

- Goods-In User → Packing List: opens PO
- Packing List → Goods-In Checklist: completes checklist
- Goods-In Checklist → Verify and Print: verifies and prints
- Verify and Print → Document Release: releases documents
- Responsible Person → Document Review: reviews files
- Document Release → Document Review: routes for review
- Document Review → RPi Approval: completes approval
- RPi Approval → PDF and Email: generates and sends
- PDF and Email → Stock Acceptance: awaits acceptance
- Stock Acceptance → Evidence Review: enables batch check
- Batch Checker → Evidence Review: opens eligible line
- Evidence Review → Product Verification: reviews evidence
- Product Verification → PCL Generation: generates PCL
- Production User → Stock Review: reviews stock
- Stock Review → Stock Transfer: initiates transfer (evidence: `wireframe/handheld-production-controller/handheld-production-controller.js`)
- Production User → Line Clearance: records clearance
- Static Web Runtime → Packing List: serves wireframe (evidence: `wireframe/dev-server.mjs`)
- Static Web Runtime → Stock Review: serves wireframe (evidence: `wireframe/dev-server.mjs`)
