# simorighi06/presentazione architecture

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

- Interactive diagram: https://gitdiagram.com/simorighi06/presentazione
- Repository: https://github.com/simorighi06/presentazione

## Overview

Hub X-Ray is a browser-based presentation and draft-review app with an admin configuration mode and a DevMode inspection workspace. Users enter through a site slug or URL, the app resolves configuration and routes to a presentation, draft, admin, or DevMode experience; DevMode supports section inspection and AI-assisted analysis. The graph also preserves the documented client-link and floating-card capabilities. Relationships are limited to source-index references and README-described flows; the backend is not in the supplied tree and is shown only as an external API.

Main entry points: [`src/App.tsx`](https://github.com/simorighi06/presentazione/blob/main/src/App.tsx) (App shell), [`src/components/DevMode/DevModeViewer.tsx`](https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeViewer.tsx) (DevMode workspace), [`src/hooks/useAppConfig.ts`](https://github.com/simorighi06/presentazione/blob/main/src/hooks/useAppConfig.ts) (Config loading), [`src/components/ConfigPan/ConfigPanel.tsx`](https://github.com/simorighi06/presentazione/blob/main/src/components/ConfigPan/ConfigPanel.tsx) (Config editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App and routing"]
  node_app["App shell<br/>[App.tsx]"]
  node_routing["View routing<br/>[useAppRouting.ts]"]
  node_config["Config loading<br/>[useAppConfig.ts]"]
  node_configtypes["Config model<br/>[config.ts]"]
  node_clientlinks["Client links<br/>[useClientLik.ts]"]
end

subgraph group_presentation["Presentation experience"]
  node_presentationviewer["Presentation viewer"]
  node_header["Presentation header<br/>[HeaderHUD.tsx]"]
  node_footer["Presentation footer<br/>[FooterHUD.tsx]"]
  node_floatingcards["Floating cards"]
end

subgraph group_admin["Admin and sharing"]
  node_configpanel["Config editor<br/>[ConfigPanel.tsx]"]
  node_auth["Admin login<br/>[AdminLoginGate.tsx]"]
  node_sharelinks["Share-link generator"]
end

subgraph group_devmode["DevMode workspace"]
  node_devviewer["DevMode workspace<br/>[DevModeViewer.tsx]"]
  node_devstate["Inspection state<br/>[useDevMode.ts]"]
  node_imageviewer["Draft image canvas"]
  node_devtopbar["DevMode toolbar<br/>[DevModeTopbar.tsx]"]
  node_console["DevMode console<br/>[DevModeConsole.tsx]"]
  node_panels["Detail panels"]
  node_aihook["AI analysis hook<br/>[useAIAnalysis.ts]"]
end

node_browser(("Browser user"))
node_aiapi["Analysis API"]

node_browser -->|"opens"| node_app
node_app -->|"resolves view"| node_routing
node_app -->|"loads settings"| node_config
node_app -->|"gates admin"| node_auth
node_app -->|"renders"| node_presentationviewer
node_app -->|"renders"| node_devviewer
node_app -->|"renders"| node_configpanel
node_app -->|"renders"| node_floatingcards
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_config -->|"uses model"| node_configtypes
node_config -.->|"fetches config"| node_aiapi
node_presentationviewer -->|"renders"| node_header
node_configpanel -->|"uses model"| node_configtypes
node_app -->|"uses client view"| node_clientlinks
node_clientlinks -->|"sets view mode"| node_routing
node_devviewer -->|"reads state"| node_devstate
node_devviewer -->|"renders canvas"| node_imageviewer
node_devviewer -->|"renders toolbar"| node_devtopbar
node_devviewer -->|"renders console"| node_console
node_console -->|"uses state"| node_devstate
node_console -->|"selects panel"| node_panels
node_devviewer -->|"requests analysis"| node_aihook
node_aihook -->|"posts analysis"| node_aiapi
node_configpanel -->|"uses generator"| node_sharelinks
node_app -->|"imports link tools"| node_sharelinks

click node_app "https://github.com/simorighi06/presentazione/blob/main/src/App.tsx"
click node_routing "https://github.com/simorighi06/presentazione/blob/main/src/hooks/useAppRouting.ts"
click node_config "https://github.com/simorighi06/presentazione/blob/main/src/hooks/useAppConfig.ts"
click node_configtypes "https://github.com/simorighi06/presentazione/blob/main/src/types/config.ts"
click node_clientlinks "https://github.com/simorighi06/presentazione/blob/main/src/clientLink/useClientLik.ts"
click node_presentationviewer "https://github.com/simorighi06/presentazione/blob/main/src/components/Presentation/PresentationViewer.tsx"
click node_header "https://github.com/simorighi06/presentazione/blob/main/src/components/HUD/HeaderHUD.tsx"
click node_footer "https://github.com/simorighi06/presentazione/blob/main/src/components/HUD/FooterHUD.tsx"
click node_floatingcards "https://github.com/simorighi06/presentazione/tree/main/src/components/Floating"
click node_configpanel "https://github.com/simorighi06/presentazione/blob/main/src/components/ConfigPan/ConfigPanel.tsx"
click node_auth "https://github.com/simorighi06/presentazione/blob/main/src/components/Login/AdminLoginGate.tsx"
click node_sharelinks "https://github.com/simorighi06/presentazione/blob/main/src/clientLink/shareLinkGenerator.tsx"
click node_devviewer "https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeViewer.tsx"
click node_devstate "https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/hooks/useDevMode.ts"
click node_imageviewer "https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeImageViewer.tsx"
click node_devtopbar "https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeTopbar.tsx"
click node_console "https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeConsole.tsx"
click node_panels "https://github.com/simorighi06/presentazione/tree/main/src/components/DevMode/panels"
click node_aihook "https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/hooks/useAIAnalysis.ts"

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_routing,node_config,node_configtypes,node_clientlinks,node_browser toneBlue
class node_presentationviewer,node_header,node_footer,node_floatingcards toneAmber
class node_configpanel,node_auth,node_sharelinks,node_aiapi toneMint
class node_devviewer,node_devstate,node_imageviewer,node_devtopbar,node_console,node_panels,node_aihook toneRose
```

## Components

### App and routing

- [App shell](https://github.com/simorighi06/presentazione/blob/main/src/App.tsx): `src/App.tsx`
- [View routing](https://github.com/simorighi06/presentazione/blob/main/src/hooks/useAppRouting.ts): `src/hooks/useAppRouting.ts`
- [Config loading](https://github.com/simorighi06/presentazione/blob/main/src/hooks/useAppConfig.ts): `src/hooks/useAppConfig.ts`
- [Config model](https://github.com/simorighi06/presentazione/blob/main/src/types/config.ts): `src/types/config.ts`
- [Client links](https://github.com/simorighi06/presentazione/blob/main/src/clientLink/useClientLik.ts): `src/clientLink/useClientLik.ts`

### Presentation experience

- [Presentation viewer](https://github.com/simorighi06/presentazione/blob/main/src/components/Presentation/PresentationViewer.tsx): `src/components/Presentation/PresentationViewer.tsx`
- [Presentation header](https://github.com/simorighi06/presentazione/blob/main/src/components/HUD/HeaderHUD.tsx): `src/components/HUD/HeaderHUD.tsx`
- [Presentation footer](https://github.com/simorighi06/presentazione/blob/main/src/components/HUD/FooterHUD.tsx): `src/components/HUD/FooterHUD.tsx`
- [Floating cards](https://github.com/simorighi06/presentazione/tree/main/src/components/Floating): `src/components/Floating`

### Admin and sharing

- [Config editor](https://github.com/simorighi06/presentazione/blob/main/src/components/ConfigPan/ConfigPanel.tsx): `src/components/ConfigPan/ConfigPanel.tsx`
- [Admin login](https://github.com/simorighi06/presentazione/blob/main/src/components/Login/AdminLoginGate.tsx): `src/components/Login/AdminLoginGate.tsx`
- [Share-link generator](https://github.com/simorighi06/presentazione/blob/main/src/clientLink/shareLinkGenerator.tsx): `src/clientLink/shareLinkGenerator.tsx`

### DevMode workspace

- [DevMode workspace](https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeViewer.tsx): `src/components/DevMode/DevModeViewer.tsx`
- [Inspection state](https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/hooks/useDevMode.ts): `src/components/DevMode/hooks/useDevMode.ts`
- [Draft image canvas](https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeImageViewer.tsx): `src/components/DevMode/DevModeImageViewer.tsx`
- [DevMode toolbar](https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeTopbar.tsx): `src/components/DevMode/DevModeTopbar.tsx`
- [DevMode console](https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/DevModeConsole.tsx): `src/components/DevMode/DevModeConsole.tsx`
- [Detail panels](https://github.com/simorighi06/presentazione/tree/main/src/components/DevMode/panels): `src/components/DevMode/panels`
- [AI analysis hook](https://github.com/simorighi06/presentazione/blob/main/src/components/DevMode/hooks/useAIAnalysis.ts): `src/components/DevMode/hooks/useAIAnalysis.ts`

### Other components

- **Browser user**
- **Analysis API**

## Connections

- Browser user → App shell: opens (evidence: `README.md`)
- App shell → View routing: resolves view (evidence: `src/App.tsx`)
- App shell → Config loading: loads settings (evidence: `src/App.tsx`)
- App shell → Admin login: gates admin (evidence: `README.md`)
- App shell → Presentation viewer: renders (evidence: `src/App.tsx`)
- App shell → DevMode workspace: renders (evidence: `src/App.tsx`)
- App shell → Config editor: renders (evidence: `src/App.tsx`)
- App shell → Floating cards: renders (evidence: `src/App.tsx`)
- App shell → Presentation header: renders (evidence: `src/App.tsx`)
- App shell → Presentation footer: renders (evidence: `src/App.tsx`)
- Config loading → Config model: uses model (evidence: `src/hooks/useAppConfig.ts`)
- Config loading → Analysis API: fetches config
- Presentation viewer → Presentation header: renders (evidence: `src/components/Presentation/PresentationViewer.tsx`)
- Config editor → Config model: uses model (evidence: `src/components/ConfigPan/ConfigPanel.tsx`)
- App shell → Client links: uses client view (evidence: `src/App.tsx`)
- Client links → View routing: sets view mode (evidence: `src/clientLink/useClientLik.ts`)
- DevMode workspace → Inspection state: reads state (evidence: `src/components/DevMode/DevModeViewer.tsx`)
- DevMode workspace → Draft image canvas: renders canvas (evidence: `src/components/DevMode/DevModeViewer.tsx`)
- DevMode workspace → DevMode toolbar: renders toolbar (evidence: `src/components/DevMode/DevModeViewer.tsx`)
- DevMode workspace → DevMode console: renders console (evidence: `src/components/DevMode/DevModeViewer.tsx`)
- DevMode console → Inspection state: uses state (evidence: `src/components/DevMode/DevModeConsole.tsx`)
- DevMode console → Detail panels: selects panel (evidence: `src/components/DevMode/DevModeConsole.tsx`)
- DevMode workspace → AI analysis hook: requests analysis (evidence: `src/components/DevMode/DevModeViewer.tsx`)
- AI analysis hook → Analysis API: posts analysis (evidence: `src/components/DevMode/hooks/useAIAnalysis.ts`)
- Config editor → Share-link generator: uses generator (evidence: `src/components/ConfigPan/ConfigPanel.tsx`)
- App shell → Share-link generator: imports link tools (evidence: `src/App.tsx`)
