# watson752/eco-intelligence-dashboard-technatahack24 architecture

> Architecture diagram of the GitHub repository watson752/eco-intelligence-dashboard-technatahack24, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/watson752/eco-intelligence-dashboard-technatahack24
- Repository: https://github.com/watson752/eco-intelligence-dashboard-technatahack24

## Overview

Ecointelligence is presented as a Next.js dashboard for IT administrators to monitor router activity, energy savings, heat management, predictions, and router status. The visible workflow is an administrator opening the dashboard, where a shared layout frames dashboard insights and charts. The repository also exposes calendar, chart, table, settings, and form pages. The README documents REST-backed dynamic updates, but the sampled source does not show the API client or data path, so that integration is represented as unverified.

Main entry points: [`src/components/Layouts/DefaultLayout.tsx`](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Layouts/DefaultLayout.tsx) (Default layout), [`src/components/Dashboard/E-commerce.tsx`](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Dashboard/E-commerce.tsx) (Router insights), [`src/app/page.tsx`](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/page.tsx) (Dashboard route), [`src/app/chart/page.tsx`](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/chart/page.tsx) (Charts view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Dashboard shell"]
  node_dashboard_route["Dashboard route<br/>[page.tsx]"]
  node_layout["Default layout<br/>[DefaultLayout.tsx]"]
  node_sidebar["Navigation sidebar<br/>[index.tsx]"]
  node_header["Header controls<br/>[index.tsx]"]
end

subgraph group_insights["Monitoring views"]
  node_dashboard["Router insights<br/>[E-commerce.tsx]"]
  node_stats["Metric cards<br/>[CardDataStats.tsx]"]
  node_chart_route["Charts view<br/>[page.tsx]"]
  node_charts["Chart panel<br/>[page.tsx]"]
  node_chart_one["Chart one<br/>[ChartOne.tsx]"]
  node_tables_route["Tables view<br/>[page.tsx]"]
  node_table_views["Table views"]
end

subgraph group_tools["Admin tools"]
  node_calendar_route["Calendar view<br/>[page.tsx]"]
  node_calendar["Calendar display<br/>[index.tsx]"]
  node_forms["Form controls<br/>[index.tsx]"]
  node_settings["Settings page<br/>[page.tsx]"]
  node_form_layout["Form layout page<br/>[page.tsx]"]
end

subgraph group_shared["Reusable UI"]
  node_common_breadcrumb["Breadcrumbs<br/>[Breadcrumb.tsx]"]
  node_local_storage[("Browser preferences")]
end

node_admin(("IT administrator"))
node_backend["REST backend"]

node_admin -->|"opens"| node_dashboard_route
node_dashboard_route -->|"renders"| node_layout
node_dashboard_route -->|"renders"| node_dashboard
node_layout -->|"renders"| node_sidebar
node_layout -->|"renders"| node_header
node_dashboard -->|"renders"| node_stats
node_dashboard -->|"renders"| node_chart_one
node_admin -->|"opens"| node_chart_route
node_chart_route -->|"renders"| node_layout
node_chart_route -->|"renders"| node_charts
node_charts -->|"renders"| node_chart_one
node_admin -->|"opens"| node_tables_route
node_tables_route -->|"renders"| node_layout
node_tables_route -->|"renders"| node_table_views
node_admin -->|"opens"| node_calendar_route
node_calendar_route -->|"renders"| node_layout
node_calendar_route -->|"renders"| node_calendar
node_calendar -->|"renders"| node_common_breadcrumb
node_admin -.->|"opens"| node_settings
node_settings -->|"renders"| node_layout
node_admin -.->|"opens"| node_form_layout
node_form_layout -->|"renders"| node_layout
node_form_layout -.->|"uses controls"| node_forms
node_sidebar -->|"persists selection"| node_local_storage
node_dashboard -.->|"REST updates"| node_backend

click node_dashboard_route "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/page.tsx"
click node_layout "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Layouts/DefaultLayout.tsx"
click node_sidebar "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Sidebar/index.tsx"
click node_header "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Header/index.tsx"
click node_dashboard "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Dashboard/E-commerce.tsx"
click node_stats "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/CardDataStats.tsx"
click node_chart_route "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/chart/page.tsx"
click node_charts "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Charts/page.tsx"
click node_chart_one "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Charts/ChartOne.tsx"
click node_tables_route "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/tables/page.tsx"
click node_table_views "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/tree/main/src/components/Tables"
click node_calendar_route "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/calendar/page.tsx"
click node_calendar "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Calender/index.tsx"
click node_forms "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/FormElements/index.tsx"
click node_settings "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/settings/page.tsx"
click node_form_layout "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/forms/form-layout/page.tsx"
click node_common_breadcrumb "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Breadcrumbs/Breadcrumb.tsx"
click node_local_storage "https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/hooks/useLocalStorage.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_dashboard_route,node_layout,node_sidebar,node_header toneBlue
class node_dashboard,node_stats,node_chart_route,node_charts,node_chart_one,node_tables_route,node_table_views toneAmber
class node_calendar_route,node_calendar,node_forms,node_settings,node_form_layout toneMint
class node_common_breadcrumb,node_local_storage toneRose
class node_admin,node_backend toneIndigo
```

## Components

### Dashboard shell

- [Dashboard route](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Default layout](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Layouts/DefaultLayout.tsx): `src/components/Layouts/DefaultLayout.tsx`
- [Navigation sidebar](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Sidebar/index.tsx): `src/components/Sidebar/index.tsx`
- [Header controls](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Header/index.tsx): `src/components/Header/index.tsx`

### Monitoring views

- [Router insights](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Dashboard/E-commerce.tsx): `src/components/Dashboard/E-commerce.tsx`
- [Metric cards](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/CardDataStats.tsx): `src/components/CardDataStats.tsx`
- [Charts view](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/chart/page.tsx): `src/app/chart/page.tsx`
- [Chart panel](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Charts/page.tsx): `src/components/Charts/page.tsx`
- [Chart one](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Charts/ChartOne.tsx): `src/components/Charts/ChartOne.tsx`
- [Tables view](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/tables/page.tsx): `src/app/tables/page.tsx`
- [Table views](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/tree/main/src/components/Tables): `src/components/Tables`

### Admin tools

- [Calendar view](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/calendar/page.tsx): `src/app/calendar/page.tsx`
- [Calendar display](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Calender/index.tsx): `src/components/Calender/index.tsx`
- [Form controls](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/FormElements/index.tsx): `src/components/FormElements/index.tsx`
- [Settings page](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/settings/page.tsx): `src/app/settings/page.tsx`
- [Form layout page](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/app/forms/form-layout/page.tsx): `src/app/forms/form-layout/page.tsx`

### Reusable UI

- [Breadcrumbs](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/components/Breadcrumbs/Breadcrumb.tsx): `src/components/Breadcrumbs/Breadcrumb.tsx`
- [Browser preferences](https://github.com/watson752/eco-intelligence-dashboard-technatahack24/blob/main/src/hooks/useLocalStorage.tsx): `src/hooks/useLocalStorage.tsx`

### Other components

- **IT administrator**
- **REST backend**

## Connections

- IT administrator → Dashboard route: opens (evidence: `src/app/page.tsx`)
- Dashboard route → Default layout: renders (evidence: `src/app/page.tsx`)
- Dashboard route → Router insights: renders (evidence: `src/app/page.tsx`)
- Default layout → Navigation sidebar: renders (evidence: `src/components/Layouts/DefaultLayout.tsx`)
- Default layout → Header controls: renders (evidence: `src/components/Layouts/DefaultLayout.tsx`)
- Router insights → Metric cards: renders (evidence: `src/components/Dashboard/E-commerce.tsx`)
- Router insights → Chart one: renders (evidence: `src/components/Dashboard/E-commerce.tsx`)
- IT administrator → Charts view: opens (evidence: `src/app/chart/page.tsx`)
- Charts view → Default layout: renders (evidence: `src/app/chart/page.tsx`)
- Charts view → Chart panel: renders (evidence: `src/app/chart/page.tsx`)
- Chart panel → Chart one: renders (evidence: `src/components/Charts/page.tsx`)
- IT administrator → Tables view: opens (evidence: `src/app/tables/page.tsx`)
- Tables view → Default layout: renders (evidence: `src/app/tables/page.tsx`)
- Tables view → Table views: renders (evidence: `src/app/tables/page.tsx`)
- IT administrator → Calendar view: opens (evidence: `src/app/calendar/page.tsx`)
- Calendar view → Default layout: renders (evidence: `src/app/calendar/page.tsx`)
- Calendar view → Calendar display: renders (evidence: `src/app/calendar/page.tsx`)
- Calendar display → Breadcrumbs: renders (evidence: `src/components/Calender/index.tsx`)
- IT administrator → Settings page: opens (evidence: `src/app/settings/page.tsx`)
- Settings page → Default layout: renders (evidence: `src/app/settings/page.tsx`)
- IT administrator → Form layout page: opens (evidence: `src/app/forms/form-layout/page.tsx`)
- Form layout page → Default layout: renders (evidence: `src/app/forms/form-layout/page.tsx`)
- Form layout page → Form controls: uses controls (evidence: `src/app/forms/form-layout/page.tsx`)
- Navigation sidebar → Browser preferences: persists selection (evidence: `src/components/Sidebar/index.tsx`)
- Router insights → REST backend: REST updates (evidence: `README.md`)
