# cjtarre/copy architecture

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

- Interactive diagram: https://gitdiagram.com/cjtarre/copy
- Repository: https://github.com/cjtarre/copy

## Overview

This repository is an aviation operations management web app: users navigate from the application shell into dashboards and operational records for aircraft, inventory, maintenance, logbooks, personnel, and account administration. The frontend is organized as routed feature pages, with inventory and notifications exposing preview-oriented data workflows; the notification service explicitly uses an in-memory store, and inventory’s page uses its feature hooks and table. The tree also shows authentication, availability, and user-management capabilities. The README is empty, and backend behavior is only minimally sampled, so its role and integrations are not inferred.

Main entry points: [`frontend/src/app/app_routes.tsx`](https://github.com/cjtarre/copy/blob/main/frontend/src/app/app_routes.tsx) (Route dispatch), [`frontend/src/features/inventory/pages/inventory_page.tsx`](https://github.com/cjtarre/copy/blob/main/frontend/src/features/inventory/pages/inventory_page.tsx) (Inventory search), [`frontend/src/app/app.tsx`](https://github.com/cjtarre/copy/blob/main/frontend/src/app/app.tsx) (React app), [`frontend/src/shared/layouts/app_layout.tsx`](https://github.com/cjtarre/copy/blob/main/frontend/src/shared/layouts/app_layout.tsx) (App layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["React app<br/>[app.tsx]"]
  node_routes["Route dispatch<br/>[app_routes.tsx]"]
  node_layout["App layout<br/>[app_layout.tsx]"]
end

subgraph group_operations["Fleet operations"]
  node_dashboard["Operations dashboard"]
  node_aircraft["Aircraft records"]
  node_inventory["Inventory records"]
  node_inventory_page["Inventory search<br/>[inventory_page.tsx]"]
  node_inventory_data["Inventory hooks"]
  node_inventory_table["Inventory table"]
  node_maintenance["Maintenance records"]
  node_logbook["Flight logbook"]
end

subgraph group_people["People and access"]
  node_personnel["Personnel availability"]
  node_account["Account profile"]
  node_auth["Authentication pages"]
  node_users["User administration"]
  node_notifications["Notifications page"]
  node_notification_hook["Notification hook"]
  node_notification_service["Notification service"]
end

subgraph group_shared["Shared UI and data"]
  node_notification_store[("Notification store")]
  node_shared_ui["Shared components"]
end

node_user(("App user"))

node_user -->|"opens"| node_app
node_app -->|"renders"| node_routes
node_routes -->|"wraps routes"| node_layout
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_account
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_aircraft
node_routes -->|"routes to"| node_inventory
node_routes -->|"routes to"| node_maintenance
node_routes -->|"routes to"| node_logbook
node_routes -->|"routes to"| node_personnel
node_routes -->|"routes to"| node_notifications
node_routes -->|"routes to"| node_users
node_inventory_page -->|"uses hooks"| node_inventory_data
node_inventory_page -->|"renders"| node_inventory_table
node_notifications -->|"reads via"| node_notification_hook
node_notification_service -->|"reads and writes"| node_notification_store
node_layout -->|"uses shell UI"| node_shared_ui

click node_app "https://github.com/cjtarre/copy/blob/main/frontend/src/app/app.tsx"
click node_routes "https://github.com/cjtarre/copy/blob/main/frontend/src/app/app_routes.tsx"
click node_layout "https://github.com/cjtarre/copy/blob/main/frontend/src/shared/layouts/app_layout.tsx"
click node_dashboard "https://github.com/cjtarre/copy/tree/main/frontend/src/features/dashboard"
click node_aircraft "https://github.com/cjtarre/copy/tree/main/frontend/src/features/aircraft"
click node_inventory "https://github.com/cjtarre/copy/tree/main/frontend/src/features/inventory"
click node_inventory_page "https://github.com/cjtarre/copy/blob/main/frontend/src/features/inventory/pages/inventory_page.tsx"
click node_inventory_data "https://github.com/cjtarre/copy/tree/main/frontend/src/features/inventory/hooks"
click node_inventory_table "https://github.com/cjtarre/copy/blob/main/frontend/src/features/inventory/components/inventory_table.tsx"
click node_maintenance "https://github.com/cjtarre/copy/tree/main/frontend/src/features/maintenance"
click node_logbook "https://github.com/cjtarre/copy/tree/main/frontend/src/features/logbook"
click node_personnel "https://github.com/cjtarre/copy/tree/main/frontend/src/features/personnel"
click node_account "https://github.com/cjtarre/copy/tree/main/frontend/src/features/account"
click node_auth "https://github.com/cjtarre/copy/tree/main/frontend/src/features/auth"
click node_users "https://github.com/cjtarre/copy/tree/main/frontend/src/features/user_management"
click node_notifications "https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/pages/notifications_page.tsx"
click node_notification_hook "https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/hooks/use_notifications.ts"
click node_notification_service "https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/services/notification_service.ts"
click node_notification_store "https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/data/notifications_store.ts"
click node_shared_ui "https://github.com/cjtarre/copy/tree/main/frontend/src/shared/components"

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_routes,node_layout,node_user toneBlue
class node_dashboard,node_aircraft,node_inventory,node_inventory_page,node_inventory_data,node_inventory_table,node_maintenance,node_logbook toneAmber
class node_personnel,node_account,node_auth,node_users,node_notifications,node_notification_hook,node_notification_service toneMint
class node_notification_store,node_shared_ui toneRose
```

## Components

### Application shell

- [React app](https://github.com/cjtarre/copy/blob/main/frontend/src/app/app.tsx): `frontend/src/app/app.tsx`
- [Route dispatch](https://github.com/cjtarre/copy/blob/main/frontend/src/app/app_routes.tsx): `frontend/src/app/app_routes.tsx`
- [App layout](https://github.com/cjtarre/copy/blob/main/frontend/src/shared/layouts/app_layout.tsx): `frontend/src/shared/layouts/app_layout.tsx`

### Fleet operations

- [Operations dashboard](https://github.com/cjtarre/copy/tree/main/frontend/src/features/dashboard): `frontend/src/features/dashboard`
- [Aircraft records](https://github.com/cjtarre/copy/tree/main/frontend/src/features/aircraft): `frontend/src/features/aircraft`
- [Inventory records](https://github.com/cjtarre/copy/tree/main/frontend/src/features/inventory): `frontend/src/features/inventory`
- [Inventory search](https://github.com/cjtarre/copy/blob/main/frontend/src/features/inventory/pages/inventory_page.tsx): `frontend/src/features/inventory/pages/inventory_page.tsx`
- [Inventory hooks](https://github.com/cjtarre/copy/tree/main/frontend/src/features/inventory/hooks): `frontend/src/features/inventory/hooks`
- [Inventory table](https://github.com/cjtarre/copy/blob/main/frontend/src/features/inventory/components/inventory_table.tsx): `frontend/src/features/inventory/components/inventory_table.tsx`
- [Maintenance records](https://github.com/cjtarre/copy/tree/main/frontend/src/features/maintenance): `frontend/src/features/maintenance`
- [Flight logbook](https://github.com/cjtarre/copy/tree/main/frontend/src/features/logbook): `frontend/src/features/logbook`

### People and access

- [Personnel availability](https://github.com/cjtarre/copy/tree/main/frontend/src/features/personnel): `frontend/src/features/personnel`
- [Account profile](https://github.com/cjtarre/copy/tree/main/frontend/src/features/account): `frontend/src/features/account`
- [Authentication pages](https://github.com/cjtarre/copy/tree/main/frontend/src/features/auth): `frontend/src/features/auth`
- [User administration](https://github.com/cjtarre/copy/tree/main/frontend/src/features/user_management): `frontend/src/features/user_management`
- [Notifications page](https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/pages/notifications_page.tsx): `frontend/src/features/notifications/pages/notifications_page.tsx`
- [Notification hook](https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/hooks/use_notifications.ts): `frontend/src/features/notifications/hooks/use_notifications.ts`
- [Notification service](https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/services/notification_service.ts): `frontend/src/features/notifications/services/notification_service.ts`

### Shared UI and data

- [Notification store](https://github.com/cjtarre/copy/blob/main/frontend/src/features/notifications/data/notifications_store.ts): `frontend/src/features/notifications/data/notifications_store.ts`
- [Shared components](https://github.com/cjtarre/copy/tree/main/frontend/src/shared/components): `frontend/src/shared/components`

### Other components

- **App user**

## Connections

- App user → React app: opens
- React app → Route dispatch: renders (evidence: `frontend/src/app/app.tsx`)
- Route dispatch → App layout: wraps routes (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Authentication pages: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Account profile: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Operations dashboard: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Aircraft records: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Inventory records: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Maintenance records: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Flight logbook: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Personnel availability: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → Notifications page: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Route dispatch → User administration: routes to (evidence: `frontend/src/app/app_routes.tsx`)
- Inventory search → Inventory hooks: uses hooks (evidence: `frontend/src/features/inventory/pages/inventory_page.tsx`)
- Inventory search → Inventory table: renders (evidence: `frontend/src/features/inventory/pages/inventory_page.tsx`)
- Notifications page → Notification hook: reads via (evidence: `frontend/src/features/notifications/pages/notifications_page.tsx`)
- Notification service → Notification store: reads and writes (evidence: `frontend/src/features/notifications/services/notification_service.ts`)
- App layout → Shared components: uses shell UI (evidence: `frontend/src/shared/layouts/app_layout.tsx`)
