# trnguyen20/liable-reyla-afric architecture

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

- Interactive diagram: https://gitdiagram.com/trnguyen20/liable-reyla-afric
- Repository: https://github.com/trnguyen20/liable-reyla-afric

## Overview

This is a manufacturing shop-floor application for tracking outsourced heat-treatment lots, managing production status, and monitoring operational performance. The principal workflow runs from authenticated users through tracking or dashboard routes, into lot-detail and update interactions, and then to shared lot data and workflow logic. The source index also identifies order, synchronization, telemetry, and technical-chart capabilities. Several relationships below rely on the source index’s import references rather than full excerpts; those references show module dependencies, not every runtime action.

Main entry points: [`src/routes/tracking.tsx`](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/tracking.tsx) (Lot tracking), [`src/routes/dashboard.tsx`](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/dashboard.tsx) (Operations dashboard), [`src/components/dynamo-shell.tsx`](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/dynamo-shell.tsx) (Application shell), [`src/lib/dynamo-data.ts`](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-data.ts) (Lot data and types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application workflow"]
  node_login["Login<br/>[login.tsx]"]
  node_shell["Application shell<br/>[dynamo-shell.tsx]"]
  node_tracking["Lot tracking<br/>[tracking.tsx]"]
  node_orders["Orders<br/>[orders.tsx]"]
  node_sync["Data synchronization<br/>[sync.tsx]"]
end

subgraph group_domain["Lot operations"]
  node_lotdetail["Lot details"]
  node_lotupdate["Lot update"]
  node_ticket["Job tickets<br/>[job-ticket.tsx]"]
  node_attachments["Lot attachments"]
  node_heat["Heat-treatment charts"]
end

subgraph group_insight["Operations insight"]
  node_dashboard["Operations dashboard<br/>[dashboard.tsx]"]
  node_telemetry["Shop-floor telemetry"]
end

subgraph group_platform["Shared services"]
  node_data["Lot data and types<br/>[dynamo-data.ts]"]
  node_workflow["Lot workflow<br/>[dynamo-workflow.ts]"]
  node_rules["Operational rules<br/>[dynamo-rules.ts]"]
  node_metallurgy["Metallurgy analysis"]
  node_authclient["Client authorization<br/>[dynamo-auth.ts]"]
  node_authserver["Server authentication<br/>[auth.functions.ts]"]
  node_source["Dataset source<br/>[dynamo-source.ts]"]
  node_i18n["Translations<br/>[index.tsx]"]
end

node_user(("Shop-floor user"))
node_sheets[("Google Sheets")]

node_user -->|"signs in"| node_login
node_user -->|"views"| node_dashboard
node_user -->|"manages lots"| node_tracking
node_login -->|"verifies access"| node_authclient
node_authclient -->|"requests session"| node_authserver
node_authserver -->|"checks access codes"| node_sheets
node_dashboard -->|"renders within"| node_shell
node_tracking -.->|"renders within"| node_shell
node_orders -->|"renders within"| node_shell
node_shell -->|"fetches session"| node_authclient
node_shell -->|"saves dataset"| node_source
node_shell -->|"checks version"| node_authserver
node_tracking -->|"opens details"| node_lotdetail
node_tracking -->|"updates lot"| node_lotupdate
node_tracking -->|"opens tickets"| node_ticket
node_tracking -->|"renders attachments"| node_attachments
node_lotdetail -->|"parses attachments"| node_attachments
node_lotdetail -->|"opens ticket"| node_ticket
node_lotdetail -->|"shows charts"| node_heat
node_lotupdate -->|"applies workflow"| node_workflow
node_dashboard -->|"reads lot data"| node_data
node_dashboard -->|"uses rules"| node_rules
node_dashboard -->|"uses workflow"| node_workflow
node_dashboard -->|"computes metrics"| node_metallurgy
node_metallurgy -->|"validates dates"| node_rules
node_metallurgy -->|"reads lot types"| node_data
node_workflow -->|"uses lot data"| node_data
node_rules -->|"uses lot data"| node_data
node_tracking -->|"parses dates"| node_data
node_dashboard -->|"translates labels"| node_i18n
node_shell -->|"renders telemetry"| node_telemetry
node_orders -->|"reads lot data"| node_data
node_orders -->|"opens update"| node_lotupdate
node_orders -->|"opens tickets"| node_ticket
node_sync -.->|"synchronizes lots"| node_data

click node_login "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/login.tsx"
click node_shell "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/dynamo-shell.tsx"
click node_dashboard "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/dashboard.tsx"
click node_tracking "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/tracking.tsx"
click node_orders "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/orders.tsx"
click node_sync "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/sync.tsx"
click node_lotdetail "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/tracking/lot-detail-modal.tsx"
click node_lotupdate "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/lot-update-dialog.tsx"
click node_ticket "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/job-ticket.tsx"
click node_attachments "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/tracking/attachment-field.tsx"
click node_heat "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/technical-charts/heat-treatment-cycle/heat-treatment-cycle.tsx"
click node_telemetry "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/shopfloor-telemetry.tsx"
click node_data "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-data.ts"
click node_workflow "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-workflow.ts"
click node_rules "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-rules.ts"
click node_metallurgy "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/metallurgy-engine.ts"
click node_authclient "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-auth.ts"
click node_authserver "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/auth.functions.ts"
click node_source "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-source.ts"
click node_i18n "https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/i18n/index.tsx"

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_login,node_shell,node_tracking,node_orders,node_sync,node_user toneBlue
class node_lotdetail,node_lotupdate,node_ticket,node_attachments,node_heat,node_sheets toneAmber
class node_dashboard,node_telemetry toneMint
class node_data,node_workflow,node_rules,node_metallurgy,node_authclient,node_authserver,node_source,node_i18n toneRose
```

## Components

### Application workflow

- [Login](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/login.tsx): `src/routes/login.tsx`
- [Application shell](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/dynamo-shell.tsx): `src/components/dynamo-shell.tsx`
- [Lot tracking](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/tracking.tsx): `src/routes/tracking.tsx`
- [Orders](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/orders.tsx): `src/routes/orders.tsx`
- [Data synchronization](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/sync.tsx): `src/routes/sync.tsx`

### Lot operations

- [Lot details](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/tracking/lot-detail-modal.tsx): `src/components/tracking/lot-detail-modal.tsx`
- [Lot update](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/lot-update-dialog.tsx): `src/components/lot-update-dialog.tsx`
- [Job tickets](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/job-ticket.tsx): `src/components/job-ticket.tsx`
- [Lot attachments](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/tracking/attachment-field.tsx): `src/components/tracking/attachment-field.tsx`
- [Heat-treatment charts](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/technical-charts/heat-treatment-cycle/heat-treatment-cycle.tsx): `src/components/technical-charts/heat-treatment-cycle/heat-treatment-cycle.tsx`

### Operations insight

- [Operations dashboard](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/routes/dashboard.tsx): `src/routes/dashboard.tsx`
- [Shop-floor telemetry](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/components/shopfloor-telemetry.tsx): `src/components/shopfloor-telemetry.tsx`

### Shared services

- [Lot data and types](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-data.ts): `src/lib/dynamo-data.ts`
- [Lot workflow](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-workflow.ts): `src/lib/dynamo-workflow.ts`
- [Operational rules](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-rules.ts): `src/lib/dynamo-rules.ts`
- [Metallurgy analysis](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/metallurgy-engine.ts): `src/lib/metallurgy-engine.ts`
- [Client authorization](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-auth.ts): `src/lib/dynamo-auth.ts`
- [Server authentication](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/auth.functions.ts): `src/lib/auth.functions.ts`
- [Dataset source](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/lib/dynamo-source.ts): `src/lib/dynamo-source.ts`
- [Translations](https://github.com/trnguyen20/liable-reyla-afric/blob/main/src/i18n/index.tsx): `src/i18n/index.tsx`

### Other components

- **Shop-floor user**
- **Google Sheets**

## Connections

- Shop-floor user → Login: signs in
- Shop-floor user → Operations dashboard: views (evidence: `src/routes/dashboard.tsx`)
- Shop-floor user → Lot tracking: manages lots (evidence: `src/routes/tracking.tsx`)
- Login → Client authorization: verifies access (evidence: `src/routes/login.tsx`)
- Client authorization → Server authentication: requests session (evidence: `src/lib/dynamo-auth.ts`)
- Server authentication → Google Sheets: checks access codes (evidence: `src/lib/auth.functions.ts`)
- Operations dashboard → Application shell: renders within (evidence: `src/routes/dashboard.tsx`)
- Lot tracking → Application shell: renders within (evidence: `src/routes/tracking.tsx`)
- Orders → Application shell: renders within (evidence: `src/routes/orders.tsx`)
- Application shell → Client authorization: fetches session (evidence: `src/components/dynamo-shell.tsx`)
- Application shell → Dataset source: saves dataset (evidence: `src/components/dynamo-shell.tsx`)
- Application shell → Server authentication: checks version (evidence: `src/components/dynamo-shell.tsx`)
- Lot tracking → Lot details: opens details (evidence: `src/routes/tracking.tsx`)
- Lot tracking → Lot update: updates lot (evidence: `src/routes/tracking.tsx`)
- Lot tracking → Job tickets: opens tickets (evidence: `src/routes/tracking.tsx`)
- Lot tracking → Lot attachments: renders attachments (evidence: `src/routes/tracking.tsx`)
- Lot details → Lot attachments: parses attachments (evidence: `src/components/tracking/lot-detail-modal.tsx`)
- Lot details → Job tickets: opens ticket (evidence: `src/components/tracking/lot-detail-modal.tsx`)
- Lot details → Heat-treatment charts: shows charts (evidence: `src/components/tracking/lot-detail-modal.tsx`)
- Lot update → Lot workflow: applies workflow (evidence: `src/components/lot-update-dialog.tsx`)
- Operations dashboard → Lot data and types: reads lot data (evidence: `src/routes/dashboard.tsx`)
- Operations dashboard → Operational rules: uses rules (evidence: `src/routes/dashboard.tsx`)
- Operations dashboard → Lot workflow: uses workflow (evidence: `src/routes/dashboard.tsx`)
- Operations dashboard → Metallurgy analysis: computes metrics (evidence: `src/routes/dashboard.tsx`)
- Metallurgy analysis → Operational rules: validates dates (evidence: `src/lib/metallurgy-engine.ts`)
- Metallurgy analysis → Lot data and types: reads lot types (evidence: `src/lib/metallurgy-engine.ts`)
- Lot workflow → Lot data and types: uses lot data (evidence: `src/lib/dynamo-workflow.ts`)
- Operational rules → Lot data and types: uses lot data (evidence: `src/lib/dynamo-rules.ts`)
- Lot tracking → Lot data and types: parses dates (evidence: `src/routes/tracking.tsx`)
- Operations dashboard → Translations: translates labels (evidence: `src/routes/dashboard.tsx`)
- Application shell → Shop-floor telemetry: renders telemetry (evidence: `src/components/dynamo-shell.tsx`)
- Orders → Lot data and types: reads lot data (evidence: `src/routes/orders.tsx`)
- Orders → Lot update: opens update (evidence: `src/routes/orders.tsx`)
- Orders → Job tickets: opens tickets (evidence: `src/routes/orders.tsx`)
- Data synchronization → Lot data and types: synchronizes lots
