# maluzhenkov/test_task_mstroy architecture

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

- Interactive diagram: https://gitdiagram.com/maluzhenkov/test_task_mstroy
- Repository: https://github.com/maluzhenkov/test_task_mstroy

## Overview

This is a small Vue demo that presents hierarchical items in an AG Grid tree table. The main workflow starts at app mounting, creates a TreeStore from sample items, derives rows with category and ancestry paths, and passes them to the table for display. The graph separates the app workflow, tree-data operations, and grid integration. Evidence is limited to the README and sampled source; no backend or persistent storage is shown.

Main entry points: [`src/App.vue`](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/App.vue) (Build table rows), [`src/components/DataTable.vue`](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/components/DataTable.vue) (Tree table), [`src/main.ts`](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/main.ts) (Vue mount), [`src/plugins/ag-grid.ts`](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/plugins/ag-grid.ts) (Grid modules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App workflow"]
  node_mount["Vue mount<br/>[main.ts]"]
  node_appview["Build table rows<br/>[App.vue]"]
end

subgraph group_tree["Tree data"]
  node_treestore["TreeStore<br/>[TreeStore.ts]"]
end

subgraph group_grid["Grid display"]
  node_datatable["Tree table<br/>[DataTable.vue]"]
  node_gridsetup["Grid modules<br/>[ag-grid.ts]"]
end

node_user(("User"))
node_aggrid["AG Grid"]

node_mount -->|"mounts"| node_appview
node_mount -->|"registers modules"| node_gridsetup
node_appview -->|"queries tree"| node_treestore
node_appview -->|"passes rows"| node_datatable
node_datatable -->|"renders with"| node_aggrid
node_gridsetup -->|"registers modules"| node_aggrid
node_user -->|"views table"| node_datatable

click node_mount "https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/main.ts"
click node_appview "https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/App.vue"
click node_treestore "https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/store/TreeStore.ts"
click node_datatable "https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/components/DataTable.vue"
click node_gridsetup "https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/plugins/ag-grid.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_mount,node_appview,node_user toneBlue
class node_treestore toneAmber
class node_datatable,node_gridsetup toneMint
class node_aggrid toneIndigo
```

## Components

### App workflow

- [Vue mount](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/main.ts): `src/main.ts`
- [Build table rows](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/App.vue): `src/App.vue`

### Tree data

- [TreeStore](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/store/TreeStore.ts): `src/store/TreeStore.ts`

### Grid display

- [Tree table](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/components/DataTable.vue): `src/components/DataTable.vue`
- [Grid modules](https://github.com/maluzhenkov/test_task_mstroy/blob/main/src/plugins/ag-grid.ts): `src/plugins/ag-grid.ts`

### Other components

- **User**
- **AG Grid**

## Connections

- Vue mount → Build table rows: mounts (evidence: `src/main.ts`)
- Vue mount → Grid modules: registers modules (evidence: `src/main.ts`)
- Build table rows → TreeStore: queries tree (evidence: `src/App.vue`)
- Build table rows → Tree table: passes rows (evidence: `src/App.vue`)
- Tree table → AG Grid: renders with (evidence: `src/components/DataTable.vue`)
- Grid modules → AG Grid: registers modules (evidence: `src/plugins/ag-grid.ts`)
- User → Tree table: views table (evidence: `src/components/DataTable.vue`)
