# metantonio/tesis-ucv-ui architecture

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

- Interactive diagram: https://gitdiagram.com/metantonio/tesis-ucv-ui
- Repository: https://github.com/metantonio/tesis-ucv-ui

## Overview

This React web app is a UI for a civil-engineering thesis on optimizing braced steel buildings with genetic algorithms and drift constraints. The user enters building geometry, configures gravity and seismic loads, reviews steel profiles, and reaches structural calculations and optimization results. Routing in `src/js/layout.js` is the runtime entry point for these screens; shared React context holds configuration and profile data. The excerpts show calculations and spectrum visualization, but not the full calculation implementation. Other views are included where the route map or README identifies them; uncertain internal interactions are omitted.

Main entry points: [`src/js/layout.js`](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/layout.js) (Routes and layout), [`src/js/store/flux.js`](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/store/flux.js) (Design state and actions), [`src/js/views/calculus.js`](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/calculus.js) (Analysis and optimization), [`src/js/store/appContext.js`](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/store/appContext.js) (Context provider)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Application shell"]
  node_entry["React entry<br/>[index.js]"]
  node_router["Routes and layout<br/>[layout.js]"]
  node_navbar["Navigation bar<br/>[navbar.js]"]
  node_footer["Thesis footer<br/>[footer.js]"]
  node_author["Author information<br/>[autor.js]"]
  node_demo["Demo view<br/>[demo.js]"]
  node_single["Single-item view<br/>[single.js]"]
  node_scroll["Scroll handling<br/>[scrollToTop.js]"]
end

subgraph group_inputs["Design inputs"]
  node_home["Thesis home<br/>[home-tesis.js]"]
  node_structure["Building geometry<br/>[stucture.js]"]
  node_forces["Loads and spectrum<br/>[forces.js]"]
  node_profiles["Steel profiles<br/>[profiles.js]"]
end

subgraph group_analysis["Structural analysis"]
  node_calculus["Analysis and optimization<br/>[calculus.js]"]
  node_results["Result chart<br/>[App.js]"]
end

subgraph group_shared["Shared state"]
  node_context["Context provider<br/>[appContext.js]"]
  node_store["Design state and actions<br/>[flux.js]"]
end

node_engineer(("Engineer"))

node_engineer -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"renders"| node_navbar
node_router -->|"renders"| node_footer
node_router -->|"wraps routes"| node_scroll
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_structure
node_router -->|"routes to"| node_forces
node_router -->|"routes to"| node_profiles
node_router -->|"routes to"| node_calculus
node_router -->|"routes to"| node_author
node_router -->|"routes to"| node_single
node_context -->|"provides state"| node_router
node_context -->|"initializes actions"| node_store
node_forces -->|"updates parameters"| node_store
node_profiles -->|"reads catalog"| node_store
node_calculus -->|"reads design inputs"| node_store
node_results -->|"reads chart data"| node_calculus
node_router -.->|"route referenced"| node_demo

click node_entry "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/index.js"
click node_router "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/layout.js"
click node_navbar "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/component/navbar.js"
click node_footer "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/component/footer.js"
click node_home "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/home-tesis.js"
click node_structure "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/stucture.js"
click node_forces "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/forces.js"
click node_profiles "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/profiles.js"
click node_calculus "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/calculus.js"
click node_results "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/App.js"
click node_author "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/autor.js"
click node_demo "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/demo.js"
click node_single "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/single.js"
click node_scroll "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/component/scrollToTop.js"
click node_context "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/store/appContext.js"
click node_store "https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/store/flux.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_entry,node_router,node_navbar,node_footer,node_author,node_demo,node_single,node_scroll toneBlue
class node_home,node_structure,node_forces,node_profiles toneAmber
class node_calculus,node_results toneMint
class node_context,node_store toneRose
class node_engineer toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/index.js): `src/js/index.js`
- [Routes and layout](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/layout.js): `src/js/layout.js`
- [Navigation bar](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/component/navbar.js): `src/js/component/navbar.js`
- [Thesis footer](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/component/footer.js): `src/js/component/footer.js`
- [Author information](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/autor.js): `src/js/views/autor.js`
- [Demo view](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/demo.js): `src/js/views/demo.js`
- [Single-item view](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/single.js): `src/js/views/single.js`
- [Scroll handling](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/component/scrollToTop.js): `src/js/component/scrollToTop.js`

### Design inputs

- [Thesis home](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/home-tesis.js): `src/js/views/home-tesis.js`
- [Building geometry](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/stucture.js): `src/js/views/stucture.js`
- [Loads and spectrum](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/forces.js): `src/js/views/forces.js`
- [Steel profiles](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/profiles.js): `src/js/views/profiles.js`

### Structural analysis

- [Analysis and optimization](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/calculus.js): `src/js/views/calculus.js`
- [Result chart](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/views/App.js): `src/js/views/App.js`

### Shared state

- [Context provider](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/store/appContext.js): `src/js/store/appContext.js`
- [Design state and actions](https://github.com/metantonio/tesis-ucv-ui/blob/main/src/js/store/flux.js): `src/js/store/flux.js`

### Other components

- **Engineer**

## Connections

- Engineer → React entry: opens app (evidence: `README.md`)
- React entry → Routes and layout: renders (evidence: `src/js/index.js`)
- Routes and layout → Navigation bar: renders (evidence: `src/js/layout.js`)
- Routes and layout → Thesis footer: renders (evidence: `src/js/layout.js`)
- Routes and layout → Scroll handling: wraps routes (evidence: `src/js/layout.js`)
- Routes and layout → Thesis home: routes to (evidence: `src/js/layout.js`)
- Routes and layout → Building geometry: routes to (evidence: `src/js/layout.js`)
- Routes and layout → Loads and spectrum: routes to (evidence: `src/js/layout.js`)
- Routes and layout → Steel profiles: routes to (evidence: `src/js/layout.js`)
- Routes and layout → Analysis and optimization: routes to (evidence: `src/js/layout.js`)
- Routes and layout → Author information: routes to (evidence: `src/js/layout.js`)
- Routes and layout → Single-item view: routes to (evidence: `src/js/layout.js`)
- Context provider → Routes and layout: provides state (evidence: `src/js/layout.js`)
- Context provider → Design state and actions: initializes actions (evidence: `src/js/store/appContext.js`)
- Loads and spectrum → Design state and actions: updates parameters (evidence: `src/js/views/forces.js`)
- Steel profiles → Design state and actions: reads catalog (evidence: `src/js/views/profiles.js`)
- Analysis and optimization → Design state and actions: reads design inputs (evidence: `src/js/views/calculus.js`)
- Result chart → Analysis and optimization: reads chart data (evidence: `src/js/views/App.js`)
- Routes and layout → Demo view: route referenced (evidence: `src/js/layout.js`)
