# rotoforze/jira2 architecture

> Architecture diagram of the GitHub repository rotoforze/jira2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rotoforze/jira2
- Repository: https://github.com/rotoforze/jira2

## Overview

##### Project type and purpose
- This is a static, single-page, front-end prototype (no backend services) for a simple task/element manager (inspired by “Jira”).
- The README calls it “jira2,” links to a demo on GitHub Pages, and contains no references to server-side code or external APIs.

##### File structure
Top-level:
- index.html – the shell of the application
- LICENSE, README.md
Assets under src/:
- css/styles.css – styling of the UI
- js/ – JavaScript modules for each feature:
– crearElementos.js (create tasks/elements)
– eliminarElementos.js (delete tasks)
– moverElementos.js (drag/drop or move logic)
– gestorElementosLocalStorage.js (persist/load tasks in localStorage)
– gestorInicioSesion.js (manage simple login state)
– main.js (application bootstrap, module wiring, event listeners)

##### README for additional insights
- Confirms this is a client-only prototype.
- Deployed on GitHub Pages (static file hosting).
- No mention of external APIs or databases beyond browser localStorage.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Infrastructure
    subgraph "Infrastructure"
        SF["Static File Server"]:::infra
        DOC["README.md"]:::infra
        LIC["LICENSE"]:::infra
    end

    %% User Environment
    subgraph "User Environment"
        BR["Web Browser (Client)"]:::infra
    end

    SF -->|"serves assets"| BR
    SF --> DOC
    SF --> LIC

    %% Presentation Layer
    subgraph "Presentation Layer"
        HTML["index.html"]:::presentation
        CSS["styles.css"]:::presentation
        IMG["img/"]:::presentation
    end

    BR --> HTML
    BR --> CSS
    BR --> IMG

    %% Logic Layer
    subgraph "Logic Layer"
        Main["main.js\n(App Bootstrap)"]:::logic
        Crea["crearElementos.js\n(Create Tasks)"]:::logic
        Elim["eliminarElementos.js\n(Delete Tasks)"]:::logic
        Mov["moverElementos.js\n(Move Elements)"]:::logic
        StorageMgr["gestorElementosLocalStorage.js\n(LocalStorage Manager)"]:::logic
        Session["gestorInicioSesion.js\n(Session Manager)"]:::logic
    end

    HTML --> Main
    Main --> Crea
    Main --> Elim
    Main --> Mov
    Main --> StorageMgr
    Main --> Session

    Crea --> StorageMgr
    Elim --> StorageMgr
    Mov --> StorageMgr
    Session --> StorageMgr

    Crea -->|"update DOM"| BR
    Elim -->|"update DOM"| BR
    Mov -->|"update DOM"| BR
    Session -->|"update UI"| BR

    %% Persistence Layer
    subgraph "Persistence Layer"
        LS["localStorage"]:::persistence
    end

    StorageMgr -->|"read/write API"| LS
    StorageMgr -->|"reads/writes"| BR

    %% Click Events
    click HTML "https://github.com/rotoforze/jira2/blob/main/index.html"
    click CSS "https://github.com/rotoforze/jira2/blob/main/src/css/styles.css"
    click IMG "https://github.com/rotoforze/jira2/tree/main/src/img/"
    click Crea "https://github.com/rotoforze/jira2/blob/main/src/js/crearElementos.js"
    click Elim "https://github.com/rotoforze/jira2/blob/main/src/js/eliminarElementos.js"
    click Mov "https://github.com/rotoforze/jira2/blob/main/src/js/moverElementos.js"
    click StorageMgr "https://github.com/rotoforze/jira2/blob/main/src/js/gestorElementosLocalStorage.js"
    click Session "https://github.com/rotoforze/jira2/blob/main/src/js/gestorInicioSesion.js"
    click Main "https://github.com/rotoforze/jira2/blob/main/src/js/main.js"
    click DOC "https://github.com/rotoforze/jira2/blob/main/README.md"
    click LIC "https://github.com/rotoforze/jira2/tree/main/LICENSE"

    %% Styles
    classDef infra fill:#cccccc,stroke:#333,stroke-width:1px;
    classDef presentation fill:#ADD8E6,stroke:#333,stroke-width:1px;
    classDef logic fill:#90EE90,stroke:#333,stroke-width:1px;
    classDef persistence fill:#FFD700,stroke:#333,stroke-width:1px;
```
