# katra47/analisisa architecture

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

- Interactive diagram: https://gitdiagram.com/katra47/analisisa
- Repository: https://github.com/katra47/analisisa

## Overview

This React application analyzes assignment-workbook data and presents current and historical Evolutivo metrics. Users upload an Excel file locally or select one from Google Drive; the app analyzes it, saves current metrics and a dated historical snapshot, then provides routed views for current results and filtered historical charts. Firestore is the persistence layer. The excerpts establish the main calls and routes; unsampled source details are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/katra47/analisisa/blob/main/src/App.jsx) (App routing), [`src/herramientas/CargarExcel.jsx`](https://github.com/katra47/analisisa/blob/main/src/herramientas/CargarExcel.jsx) (Excel intake), [`src/herramientas/firebase/analisisFirestore.js`](https://github.com/katra47/analisisa/blob/main/src/herramientas/firebase/analisisFirestore.js) (Metrics persistence), [`src/herramientas/googleDrive/googleDrive.js`](https://github.com/katra47/analisisa/blob/main/src/herramientas/googleDrive/googleDrive.js) (Drive client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Analysis workflow"]
  node_app["App routing<br/>[App.jsx]"]
  node_header["Navigation header<br/>[Header.jsx]"]
  node_excel["Excel intake<br/>[CargarExcel.jsx]"]
  node_analyzer["Evolutivo analyzer<br/>[logevolutivo.js]"]
end

subgraph group_integrations["External integrations"]
  node_drive_client["Drive client<br/>[googleDrive.js]"]
  node_google_drive[("Google Drive")]
end

subgraph group_views["Results views"]
  node_current_view["Current results<br/>[Evolutivo.jsx]"]
  node_history_view["Historical results"]
  node_history_logic["History filtering"]
end

subgraph group_storage["Persistence"]
  node_firestore_ops["Metrics persistence"]
  node_firebase_config["Firebase setup<br/>[firebase.js]"]
  node_firestore[("Cloud Firestore")]
end

node_user(("User"))

node_user -->|"opens app"| node_app
node_app -->|"renders"| node_header
node_app -->|"routes to"| node_excel
node_app -->|"routes to"| node_current_view
node_app -->|"routes to"| node_history_view
node_user -.->|"provides workbook"| node_excel
node_excel -->|"requests files"| node_drive_client
node_drive_client -->|"lists and downloads"| node_google_drive
node_excel -->|"analyzes workbook"| node_analyzer
node_excel -->|"saves metrics"| node_firestore_ops
node_current_view -->|"loads current metrics"| node_firestore_ops
node_history_view -->|"uses filtering"| node_history_logic
node_history_logic -->|"loads snapshots"| node_firestore_ops
node_firestore_ops -->|"uses database"| node_firebase_config
node_firebase_config -->|"initializes"| node_firestore
node_firestore_ops -->|"reads and writes"| node_firestore

click node_app "https://github.com/katra47/analisisa/blob/main/src/App.jsx"
click node_header "https://github.com/katra47/analisisa/blob/main/src/header/Header.jsx"
click node_excel "https://github.com/katra47/analisisa/blob/main/src/herramientas/CargarExcel.jsx"
click node_drive_client "https://github.com/katra47/analisisa/blob/main/src/herramientas/googleDrive/googleDrive.js"
click node_analyzer "https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/logevolutivo.js"
click node_current_view "https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/Evolutivo.jsx"
click node_history_view "https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/HistoricoEvolutivo.jsx"
click node_history_logic "https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/useHistoricoEvolutivo.js"
click node_firestore_ops "https://github.com/katra47/analisisa/blob/main/src/herramientas/firebase/analisisFirestore.js"
click node_firebase_config "https://github.com/katra47/analisisa/blob/main/src/herramientas/firebase/firebase.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_app,node_header,node_excel,node_analyzer,node_user toneBlue
class node_drive_client,node_google_drive toneAmber
class node_current_view,node_history_view,node_history_logic toneMint
class node_firestore_ops,node_firebase_config,node_firestore toneRose
```

## Components

### Analysis workflow

- [App routing](https://github.com/katra47/analisisa/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation header](https://github.com/katra47/analisisa/blob/main/src/header/Header.jsx): `src/header/Header.jsx`
- [Excel intake](https://github.com/katra47/analisisa/blob/main/src/herramientas/CargarExcel.jsx): `src/herramientas/CargarExcel.jsx`
- [Evolutivo analyzer](https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/logevolutivo.js): `src/paginas/evolutivo/logevolutivo.js`

### External integrations

- [Drive client](https://github.com/katra47/analisisa/blob/main/src/herramientas/googleDrive/googleDrive.js): `src/herramientas/googleDrive/googleDrive.js`
- **Google Drive**

### Results views

- [Current results](https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/Evolutivo.jsx): `src/paginas/evolutivo/Evolutivo.jsx`
- [Historical results](https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/HistoricoEvolutivo.jsx): `src/paginas/evolutivo/HistoricoEvolutivo.jsx`
- [History filtering](https://github.com/katra47/analisisa/blob/main/src/paginas/evolutivo/useHistoricoEvolutivo.js): `src/paginas/evolutivo/useHistoricoEvolutivo.js`

### Persistence

- [Metrics persistence](https://github.com/katra47/analisisa/blob/main/src/herramientas/firebase/analisisFirestore.js): `src/herramientas/firebase/analisisFirestore.js`
- [Firebase setup](https://github.com/katra47/analisisa/blob/main/src/herramientas/firebase/firebase.js): `src/herramientas/firebase/firebase.js`
- **Cloud Firestore**

### Other components

- **User**

## Connections

- User → App routing: opens app
- App routing → Navigation header: renders (evidence: `src/App.jsx`)
- App routing → Excel intake: routes to (evidence: `src/App.jsx`)
- App routing → Current results: routes to (evidence: `src/App.jsx`)
- App routing → Historical results: routes to (evidence: `src/App.jsx`)
- User → Excel intake: provides workbook
- Excel intake → Drive client: requests files (evidence: `src/herramientas/CargarExcel.jsx`)
- Drive client → Google Drive: lists and downloads (evidence: `src/herramientas/googleDrive/googleDrive.js`)
- Excel intake → Evolutivo analyzer: analyzes workbook (evidence: `src/herramientas/CargarExcel.jsx`)
- Excel intake → Metrics persistence: saves metrics (evidence: `src/herramientas/CargarExcel.jsx`)
- Current results → Metrics persistence: loads current metrics (evidence: `src/paginas/evolutivo/Evolutivo.jsx`)
- Historical results → History filtering: uses filtering (evidence: `src/paginas/evolutivo/HistoricoEvolutivo.jsx`)
- History filtering → Metrics persistence: loads snapshots (evidence: `src/paginas/evolutivo/useHistoricoEvolutivo.js`)
- Metrics persistence → Firebase setup: uses database (evidence: `src/herramientas/firebase/analisisFirestore.js`)
- Firebase setup → Cloud Firestore: initializes (evidence: `src/herramientas/firebase/firebase.js`)
- Metrics persistence → Cloud Firestore: reads and writes (evidence: `src/herramientas/firebase/analisisFirestore.js`)
