# luizfaraujo/pos_dev_web--tcc_arjsys--front architecture

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

- Interactive diagram: https://gitdiagram.com/luizfaraujo/pos_dev_web--tcc_arjsys--front
- Repository: https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front

## Overview

ArjSys is a React frontend for mechanical-project management. Its visible runtime path starts the app, routes users through an authenticated workspace, and maintains session state; the README provides the product identity but no detailed domain workflow. The tree shows major areas for engineering, commercial operations, production, administration, and settings. Evidence is limited to the supplied excerpts and source index, so domain pages are represented as subsystem nodes without inferred page-to-store or backend flows.

Main entry points: [`app/src/stores/authStore.ts`](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/authStore.ts) (Authentication and session), [`app/src/registries/index.ts`](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/index.ts) (Tab registry), [`app/src/routes/app.tsx`](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/routes/app.tsx) (Protected workspace route), [`app/src/components/comercial/PedidoClienteField.tsx`](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/comercial/PedidoClienteField.tsx) (Order client picker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App and routing"]
  node_entry["React entry<br/>[main.tsx]"]
  node_router["Router provider<br/>[App.tsx]"]
  node_route_tree["Route tree<br/>[routeTree.gen.ts]"]
  node_protected_route["Protected workspace route<br/>[app.tsx]"]
  node_auth["Authentication and session<br/>[authStore.ts]"]
end

subgraph group_workspace["Workspace state"]
  node_workspace_layout["Workspace layout"]
  node_tab_registry["Tab registry<br/>[index.ts]"]
  node_admin_registry["Admin tabs<br/>[adminRegistry.ts]"]
  node_commercial_registry["Commercial tabs"]
  node_engineering_registry["Engineering tabs"]
  node_production_registry["Production tabs"]
  node_models_registry["Model tabs<br/>[modelosRegistry.ts]"]
  node_favorites["Favorites state<br/>[favoritesStore.ts]"]
  node_recents["Recent items state<br/>[recentsStore.ts]"]
  node_sidebar["Sidebar state<br/>[sidebarStore.ts]"]
  node_themes["Theme state<br/>[themeStore.ts]"]
  node_tabs["Tab state<br/>[tabsStore.ts]"]
  node_filter_engine["Grid filter engine<br/>[filterEngine.ts]"]
end

subgraph group_engineering["Engineering"]
  node_engineering_pages["Engineering pages"]
  node_bom["BOM editing<br/>[BOMForm.tsx]"]
end

subgraph group_operations["Commercial and production"]
  node_commercial_pages["Commercial pages"]
  node_client_picker["Order client picker"]
  node_client_search["Client search dialog"]
  node_production_pages["Production pages"]
end

subgraph group_admin["Administration and settings"]
  node_admin_pages["Admin pages"]
  node_client_store["Client state<br/>[clientesStore.ts]"]
  node_settings_pages["Settings pages"]
end

node_user(("User"))
node_backend["Authentication API"]

node_entry -->|"renders"| node_router
node_router -->|"configures"| node_route_tree
node_route_tree -->|"registers"| node_protected_route
node_protected_route -->|"checks session"| node_auth
node_protected_route -->|"renders"| node_workspace_layout
node_protected_route -->|"renews session"| node_auth
node_protected_route -->|"submits login"| node_backend
node_auth -->|"rehydrates"| node_favorites
node_auth -->|"rehydrates"| node_recents
node_auth -->|"rehydrates"| node_sidebar
node_auth -->|"rehydrates"| node_themes
node_auth -->|"clears on logout"| node_tabs
node_tab_registry -->|"looks up"| node_admin_registry
node_tab_registry -->|"looks up"| node_commercial_registry
node_tab_registry -->|"looks up"| node_engineering_registry
node_tab_registry -->|"looks up"| node_production_registry
node_tab_registry -->|"looks up"| node_models_registry
node_client_picker -->|"reads clients"| node_client_store
node_client_picker -->|"opens search"| node_client_search

click node_entry "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/main.tsx"
click node_router "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/App.tsx"
click node_route_tree "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/routeTree.gen.ts"
click node_protected_route "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/routes/app.tsx"
click node_auth "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/authStore.ts"
click node_workspace_layout "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/layouts/WorkspaceLayout.tsx"
click node_tab_registry "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/index.ts"
click node_admin_registry "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/adminRegistry.ts"
click node_commercial_registry "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/comercialRegistry.ts"
click node_engineering_registry "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/engenhariaRegistry.ts"
click node_production_registry "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/producaoRegistry.ts"
click node_models_registry "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/modelosRegistry.ts"
click node_favorites "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/favoritesStore.ts"
click node_recents "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/recentsStore.ts"
click node_sidebar "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/sidebarStore.ts"
click node_themes "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/themeStore.ts"
click node_tabs "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/tabsStore.ts"
click node_engineering_pages "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/engenharia"
click node_bom "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/engenharia/BOMForm.tsx"
click node_commercial_pages "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/comercial"
click node_client_picker "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/comercial/PedidoClienteField.tsx"
click node_client_search "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/comercial/PedidoClienteSearchDialog.tsx"
click node_production_pages "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/producao"
click node_admin_pages "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/admin"
click node_client_store "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/admin/clientesStore.ts"
click node_settings_pages "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/configuracoes"
click node_filter_engine "https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/shared/DataGrid/filterEngine.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_entry,node_router,node_route_tree,node_protected_route,node_auth,node_user toneBlue
class node_workspace_layout,node_tab_registry,node_admin_registry,node_commercial_registry,node_engineering_registry,node_production_registry,node_models_registry,node_favorites,node_recents,node_sidebar,node_themes,node_tabs,node_filter_engine toneAmber
class node_engineering_pages,node_bom,node_backend toneMint
class node_commercial_pages,node_client_picker,node_client_search,node_production_pages toneRose
class node_admin_pages,node_client_store,node_settings_pages toneIndigo
```

## Components

### App and routing

- [React entry](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/main.tsx): `app/src/main.tsx`
- [Router provider](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/App.tsx): `app/src/App.tsx`
- [Route tree](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/routeTree.gen.ts): `app/src/routeTree.gen.ts`
- [Protected workspace route](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/routes/app.tsx): `app/src/routes/app.tsx`
- [Authentication and session](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/authStore.ts): `app/src/stores/authStore.ts`

### Workspace state

- [Workspace layout](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/layouts/WorkspaceLayout.tsx): `app/src/layouts/WorkspaceLayout.tsx`
- [Tab registry](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/index.ts): `app/src/registries/index.ts`
- [Admin tabs](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/adminRegistry.ts): `app/src/registries/adminRegistry.ts`
- [Commercial tabs](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/comercialRegistry.ts): `app/src/registries/comercialRegistry.ts`
- [Engineering tabs](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/engenhariaRegistry.ts): `app/src/registries/engenhariaRegistry.ts`
- [Production tabs](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/producaoRegistry.ts): `app/src/registries/producaoRegistry.ts`
- [Model tabs](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/registries/modelosRegistry.ts): `app/src/registries/modelosRegistry.ts`
- [Favorites state](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/favoritesStore.ts): `app/src/stores/favoritesStore.ts`
- [Recent items state](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/recentsStore.ts): `app/src/stores/recentsStore.ts`
- [Sidebar state](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/sidebarStore.ts): `app/src/stores/sidebarStore.ts`
- [Theme state](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/themeStore.ts): `app/src/stores/themeStore.ts`
- [Tab state](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/tabsStore.ts): `app/src/stores/tabsStore.ts`
- [Grid filter engine](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/shared/DataGrid/filterEngine.ts): `app/src/components/shared/DataGrid/filterEngine.ts`

### Engineering

- [Engineering pages](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/engenharia): `app/src/pages/engenharia`
- [BOM editing](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/engenharia/BOMForm.tsx): `app/src/components/engenharia/BOMForm.tsx`

### Commercial and production

- [Commercial pages](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/comercial): `app/src/pages/comercial`
- [Order client picker](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/comercial/PedidoClienteField.tsx): `app/src/components/comercial/PedidoClienteField.tsx`
- [Client search dialog](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/components/comercial/PedidoClienteSearchDialog.tsx): `app/src/components/comercial/PedidoClienteSearchDialog.tsx`
- [Production pages](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/producao): `app/src/pages/producao`

### Administration and settings

- [Admin pages](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/admin): `app/src/pages/admin`
- [Client state](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/blob/main/app/src/stores/admin/clientesStore.ts): `app/src/stores/admin/clientesStore.ts`
- [Settings pages](https://github.com/luizfaraujo/pos_dev_web--tcc_arjsys--front/tree/main/app/src/pages/configuracoes): `app/src/pages/configuracoes`

### Other components

- **User**
- **Authentication API**

## Connections

- React entry → Router provider: renders (evidence: `app/src/main.tsx`)
- Router provider → Route tree: configures (evidence: `app/src/App.tsx`)
- Route tree → Protected workspace route: registers (evidence: `app/src/routeTree.gen.ts`)
- Protected workspace route → Authentication and session: checks session (evidence: `app/src/routes/app.tsx`)
- Protected workspace route → Workspace layout: renders (evidence: `app/src/routes/app.tsx`)
- Protected workspace route → Authentication and session: renews session (evidence: `app/src/routes/app.tsx`)
- Protected workspace route → Authentication API: submits login
- Authentication and session → Favorites state: rehydrates (evidence: `app/src/stores/authStore.ts`)
- Authentication and session → Recent items state: rehydrates (evidence: `app/src/stores/authStore.ts`)
- Authentication and session → Sidebar state: rehydrates (evidence: `app/src/stores/authStore.ts`)
- Authentication and session → Theme state: rehydrates (evidence: `app/src/stores/authStore.ts`)
- Authentication and session → Tab state: clears on logout (evidence: `app/src/stores/authStore.ts`)
- Tab registry → Admin tabs: looks up (evidence: `app/src/registries/index.ts`)
- Tab registry → Commercial tabs: looks up (evidence: `app/src/registries/index.ts`)
- Tab registry → Engineering tabs: looks up (evidence: `app/src/registries/index.ts`)
- Tab registry → Production tabs: looks up (evidence: `app/src/registries/index.ts`)
- Tab registry → Model tabs: looks up (evidence: `app/src/registries/index.ts`)
- Order client picker → Client state: reads clients (evidence: `app/src/components/comercial/PedidoClienteField.tsx`)
- Order client picker → Client search dialog: opens search (evidence: `app/src/components/comercial/PedidoClienteField.tsx`)
