# erick1293/jej-app architecture

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

- Interactive diagram: https://gitdiagram.com/erick1293/jej-app
- Repository: https://github.com/erick1293/jej-app

## Overview

JEJ is an offline-capable field-tracking web app packaged for Android with Capacitor. Users enter through the session/menu screen, select an operational module, record drilling or loading work, and produce spreadsheet/report outputs. The tree identifies modules for ANFO, emulsion, drilling, reduction, charge diagrams, and reports; sampled excerpts confirm session handling, emulsion workbook generation, and drilling spreadsheet export. The README is empty, and most module wiring was not sampled, so uncertain links are omitted rather than inferred.

Main entry points: [`js/app.js`](https://github.com/erick1293/jej-app/blob/main/js/app.js) (Session and menu), [`js/emulsion.js`](https://github.com/erick1293/jej-app/blob/main/js/emulsion.js) (Emulsion tracking), [`js/perforacion.js`](https://github.com/erick1293/jej-app/blob/main/js/perforacion.js) (Drilling tracking), [`js/usuarios.js`](https://github.com/erick1293/jej-app/blob/main/js/usuarios.js) (User administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_home["Session and menu<br/>[app.js]"]
end

subgraph group_operations["Field operations"]
  node_anfo["ANFO tracking<br/>[carguio-wizard.js]"]
  node_emulsion["Emulsion tracking<br/>[emulsion.js]"]
  node_drilling["Drilling tracking<br/>[perforacion.js]"]
  node_reduction["Reduction tracking<br/>[reduccion.js]"]
  node_charge_diagram["Charge diagrams<br/>[diagrama-carga.js]"]
  node_dxf_reader["DXF stop reader"]
end

subgraph group_reporting["Reports and diagrams"]
  node_anfo_template["ANFO workbook<br/>[plantillaAnfo.xlsx]"]
  node_emulsion_template["Emulsion workbook"]
  node_drilling_template["Drilling workbook"]
  node_reduction_template["Reduction workbook"]
  node_charge_report["Loading report<br/>[informe-carguio.js]"]
  node_reduction_report["Reduction report"]
  node_report_base["Report foundation<br/>[informe-base.js]"]
end

subgraph group_integrations["Persistence and integrations"]
  node_user_admin["User administration<br/>[usuarios.js]"]
  node_local_storage[("Browser local storage")]
  node_onedrive_module["OneDrive integration"]
end

node_operator(("Field operator"))
node_onedrive["OneDrive"]
node_spreadsheet_download(("Spreadsheet download"))

node_operator -->|"opens"| node_home
node_home -->|"reads session"| node_local_storage
node_home -->|"writes session"| node_local_storage
node_home -.->|"navigates"| node_anfo
node_home -.->|"navigates"| node_emulsion
node_home -.->|"navigates"| node_drilling
node_home -.->|"navigates"| node_reduction
node_emulsion -->|"loads template"| node_emulsion_template
node_emulsion -->|"exports workbook"| node_spreadsheet_download
node_drilling -->|"exports workbook"| node_spreadsheet_download
node_user_admin -.->|"stores users"| node_local_storage
node_onedrive_module -.->|"synchronizes"| node_onedrive

click node_home "https://github.com/erick1293/jej-app/blob/main/js/app.js"
click node_anfo "https://github.com/erick1293/jej-app/blob/main/js/carguio-wizard.js"
click node_emulsion "https://github.com/erick1293/jej-app/blob/main/js/emulsion.js"
click node_drilling "https://github.com/erick1293/jej-app/blob/main/js/perforacion.js"
click node_reduction "https://github.com/erick1293/jej-app/blob/main/js/reduccion.js"
click node_charge_diagram "https://github.com/erick1293/jej-app/blob/main/js/diagrama-carga.js"
click node_dxf_reader "https://github.com/erick1293/jej-app/blob/main/js/leer_paradas_dxf.py"
click node_anfo_template "https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaAnfo.xlsx"
click node_emulsion_template "https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaEmulsion.xlsx"
click node_drilling_template "https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaPerforacion.xlsx"
click node_reduction_template "https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaReduccion.xlsx"
click node_charge_report "https://github.com/erick1293/jej-app/blob/main/js/informe-carguio.js"
click node_reduction_report "https://github.com/erick1293/jej-app/blob/main/js/informe-reduccion.js"
click node_report_base "https://github.com/erick1293/jej-app/blob/main/js/informe-base.js"
click node_user_admin "https://github.com/erick1293/jej-app/blob/main/js/usuarios.js"
click node_onedrive_module "https://github.com/erick1293/jej-app/blob/main/js/onedrive-integration.js"

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_home toneBlue
class node_anfo,node_emulsion,node_drilling,node_reduction,node_charge_diagram,node_dxf_reader toneAmber
class node_anfo_template,node_emulsion_template,node_drilling_template,node_reduction_template,node_charge_report,node_reduction_report,node_report_base toneMint
class node_user_admin,node_local_storage,node_onedrive_module toneRose
class node_operator,node_onedrive,node_spreadsheet_download toneIndigo
```

## Components

### App entry

- [Session and menu](https://github.com/erick1293/jej-app/blob/main/js/app.js): `js/app.js`

### Field operations

- [ANFO tracking](https://github.com/erick1293/jej-app/blob/main/js/carguio-wizard.js): `js/carguio-wizard.js`
- [Emulsion tracking](https://github.com/erick1293/jej-app/blob/main/js/emulsion.js): `js/emulsion.js`
- [Drilling tracking](https://github.com/erick1293/jej-app/blob/main/js/perforacion.js): `js/perforacion.js`
- [Reduction tracking](https://github.com/erick1293/jej-app/blob/main/js/reduccion.js): `js/reduccion.js`
- [Charge diagrams](https://github.com/erick1293/jej-app/blob/main/js/diagrama-carga.js): `js/diagrama-carga.js`
- [DXF stop reader](https://github.com/erick1293/jej-app/blob/main/js/leer_paradas_dxf.py): `js/leer_paradas_dxf.py`

### Reports and diagrams

- [ANFO workbook](https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaAnfo.xlsx): `plantillas/plantillaAnfo.xlsx`
- [Emulsion workbook](https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaEmulsion.xlsx): `plantillas/plantillaEmulsion.xlsx`
- [Drilling workbook](https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaPerforacion.xlsx): `plantillas/plantillaPerforacion.xlsx`
- [Reduction workbook](https://github.com/erick1293/jej-app/blob/main/plantillas/plantillaReduccion.xlsx): `plantillas/plantillaReduccion.xlsx`
- [Loading report](https://github.com/erick1293/jej-app/blob/main/js/informe-carguio.js): `js/informe-carguio.js`
- [Reduction report](https://github.com/erick1293/jej-app/blob/main/js/informe-reduccion.js): `js/informe-reduccion.js`
- [Report foundation](https://github.com/erick1293/jej-app/blob/main/js/informe-base.js): `js/informe-base.js`

### Persistence and integrations

- [User administration](https://github.com/erick1293/jej-app/blob/main/js/usuarios.js): `js/usuarios.js`
- **Browser local storage**
- [OneDrive integration](https://github.com/erick1293/jej-app/blob/main/js/onedrive-integration.js): `js/onedrive-integration.js`

### Other components

- **Field operator**
- **OneDrive**
- **Spreadsheet download**

## Connections

- Field operator → Session and menu: opens (evidence: `js/app.js`)
- Session and menu → Browser local storage: reads session (evidence: `js/app.js`)
- Session and menu → Browser local storage: writes session (evidence: `js/app.js`)
- Session and menu → ANFO tracking: navigates
- Session and menu → Emulsion tracking: navigates
- Session and menu → Drilling tracking: navigates
- Session and menu → Reduction tracking: navigates
- Emulsion tracking → Emulsion workbook: loads template (evidence: `js/emulsion.js`)
- Emulsion tracking → Spreadsheet download: exports workbook (evidence: `js/emulsion.js`)
- Drilling tracking → Spreadsheet download: exports workbook (evidence: `js/perforacion.js`)
- User administration → Browser local storage: stores users
- OneDrive integration → OneDrive: synchronizes
