# senti-risu/qrtree architecture

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

- Interactive diagram: https://gitdiagram.com/senti-risu/qrtree
- Repository: https://github.com/senti-risu/qrtree

## Overview

The repository contains a Flutter starter and a separate EcoTag web UI reference. The mapped product workflow is dashboard viewing, plant registration and listing, and reports backed by Supabase; the README also documents QR management and administrator workflows whose implementation files are not present in the tree. Those capabilities are included as documented but unlocated nodes. Native platform runners are startup shells, not product-domain components.

Main entry points: [`work/ecotag_ui_reference/src/App.tsx`](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/App.tsx) (Dashboard), [`work/ecotag_ui_reference/src/lib/supabase.ts`](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/lib/supabase.ts) (Supabase client), [`work/ecotag_ui_reference/src/pages/PlantList.tsx`](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/PlantList.tsx) (Plant list), [`work/ecotag_ui_reference/src/pages/RegisterPlant.tsx`](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/RegisterPlant.tsx) (Plant registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Web application"]
  node_app["EcoTag app<br/>[App.tsx]"]
  node_sidebar["Navigation sidebar<br/>[AppSidebar.tsx]"]
  node_quickactions["Quick actions<br/>[QuickActions.tsx]"]
end

subgraph group_plants["Plant workflows"]
  node_plantlist["Plant list<br/>[PlantList.tsx]"]
  node_registration["Plant registration<br/>[RegisterPlant.tsx]"]
end

subgraph group_insights["Dashboard and reports"]
  node_dashboard["Dashboard<br/>[App.tsx]"]
  node_reports["Reports<br/>[Reports.tsx]"]
  node_dashboarddata["Dashboard data"]
  node_stats["Stat cards<br/>[StatCard.tsx]"]
  node_healthchart["Health chart<br/>[HealthChart.tsx]"]
  node_campuschart["Campus chart<br/>[CampusChart.tsx]"]
  node_recentplants["Recent plants<br/>[RecentPlants.tsx]"]
  node_recentinspections["Recent inspections"]
end

subgraph group_services["Data service"]
  node_supabaseclient["Supabase client<br/>[supabase.ts]"]
  node_supabase[("Supabase")]
end

subgraph group_operations["Documented operations"]
  node_qr["QR tag management"]
  node_admins["Admin accounts"]
  node_inspectionaccounts["Inspection team accounts"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_sidebar
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_plantlist
node_app -->|"routes to"| node_registration
node_app -->|"routes to"| node_reports
node_dashboard -->|"loads"| node_dashboarddata
node_dashboard -->|"renders"| node_stats
node_dashboard -->|"renders"| node_quickactions
node_dashboard -->|"renders"| node_recentplants
node_dashboard -->|"renders"| node_recentinspections
node_dashboard -->|"renders"| node_campuschart
node_dashboarddata -->|"queries"| node_supabaseclient
node_supabaseclient -->|"connects"| node_supabase
node_plantlist -->|"queries"| node_supabaseclient
node_registration -->|"uses"| node_supabaseclient
node_reports -->|"queries"| node_supabaseclient
node_user -.->|"manages tags"| node_qr
node_qr -.->|"stores tags"| node_supabase
node_user -.->|"manages accounts"| node_admins
node_user -.->|"manages accounts"| node_inspectionaccounts

click node_app "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/App.tsx"
click node_dashboard "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/App.tsx"
click node_sidebar "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/AppSidebar.tsx"
click node_plantlist "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/PlantList.tsx"
click node_registration "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/RegisterPlant.tsx"
click node_reports "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/Reports.tsx"
click node_dashboarddata "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/hooks/useDashboardData.ts"
click node_stats "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/StatCard.tsx"
click node_healthchart "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/HealthChart.tsx"
click node_campuschart "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/CampusChart.tsx"
click node_recentplants "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/RecentPlants.tsx"
click node_recentinspections "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/RecentInspections.tsx"
click node_quickactions "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/QuickActions.tsx"
click node_supabaseclient "https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/lib/supabase.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_sidebar,node_quickactions,node_user toneBlue
class node_plantlist,node_registration toneAmber
class node_dashboard,node_reports,node_dashboarddata,node_stats,node_healthchart,node_campuschart,node_recentplants,node_recentinspections toneMint
class node_supabaseclient,node_supabase toneRose
class node_qr,node_admins,node_inspectionaccounts toneIndigo
```

## Components

### Web application

- [EcoTag app](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/App.tsx): `work/ecotag_ui_reference/src/App.tsx`
- [Navigation sidebar](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/AppSidebar.tsx): `work/ecotag_ui_reference/src/components/AppSidebar.tsx`
- [Quick actions](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/QuickActions.tsx): `work/ecotag_ui_reference/src/components/QuickActions.tsx`

### Plant workflows

- [Plant list](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/PlantList.tsx): `work/ecotag_ui_reference/src/pages/PlantList.tsx`
- [Plant registration](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/RegisterPlant.tsx): `work/ecotag_ui_reference/src/pages/RegisterPlant.tsx`

### Dashboard and reports

- [Dashboard](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/App.tsx): `work/ecotag_ui_reference/src/App.tsx`
- [Reports](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/pages/Reports.tsx): `work/ecotag_ui_reference/src/pages/Reports.tsx`
- [Dashboard data](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/hooks/useDashboardData.ts): `work/ecotag_ui_reference/src/hooks/useDashboardData.ts`
- [Stat cards](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/StatCard.tsx): `work/ecotag_ui_reference/src/components/StatCard.tsx`
- [Health chart](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/HealthChart.tsx): `work/ecotag_ui_reference/src/components/HealthChart.tsx`
- [Campus chart](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/CampusChart.tsx): `work/ecotag_ui_reference/src/components/CampusChart.tsx`
- [Recent plants](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/RecentPlants.tsx): `work/ecotag_ui_reference/src/components/RecentPlants.tsx`
- [Recent inspections](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/components/RecentInspections.tsx): `work/ecotag_ui_reference/src/components/RecentInspections.tsx`

### Data service

- [Supabase client](https://github.com/senti-risu/qrtree/blob/main/work/ecotag_ui_reference/src/lib/supabase.ts): `work/ecotag_ui_reference/src/lib/supabase.ts`
- **Supabase**

### Documented operations

- **QR tag management**
- **Admin accounts**
- **Inspection team accounts**

### Other components

- **User**

## Connections

- User → EcoTag app: uses (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- EcoTag app → Navigation sidebar: renders (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- EcoTag app → Dashboard: routes to (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- EcoTag app → Plant list: routes to (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- EcoTag app → Plant registration: routes to (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- EcoTag app → Reports: routes to (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- Dashboard → Dashboard data: loads (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- Dashboard → Stat cards: renders (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- Dashboard → Quick actions: renders (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- Dashboard → Recent plants: renders (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- Dashboard → Recent inspections: renders (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- Dashboard → Campus chart: renders (evidence: `work/ecotag_ui_reference/src/App.tsx`)
- Dashboard data → Supabase client: queries (evidence: `work/ecotag_ui_reference/src/hooks/useDashboardData.ts`)
- Supabase client → Supabase: connects (evidence: `work/ecotag_ui_reference/src/lib/supabase.ts`)
- Plant list → Supabase client: queries (evidence: `work/ecotag_ui_reference/src/pages/PlantList.tsx`)
- Plant registration → Supabase client: uses (evidence: `work/ecotag_ui_reference/src/pages/RegisterPlant.tsx`)
- Reports → Supabase client: queries (evidence: `work/ecotag_ui_reference/src/pages/Reports.tsx`)
- User → QR tag management: manages tags (evidence: `README.md`)
- QR tag management → Supabase: stores tags (evidence: `README.md`)
- User → Admin accounts: manages accounts (evidence: `README.md`)
- User → Inspection team accounts: manages accounts (evidence: `README.md`)
