# galactus-tech/customer architecture

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

- Interactive diagram: https://gitdiagram.com/galactus-tech/customer
- Repository: https://github.com/galactus-tech/customer

## Overview

This is a customer-facing admin dashboard frontend: users enter through authentication or the authenticated workspace, then use dashboard, apps, chats, tasks, users, and settings screens. The primary evidenced runtime flow is app bootstrap → generated router → authenticated layout → routed feature; task screens provide a more specific table-and-edit workflow backed by local sample task data. The repository tree also exposes error pages and optional Clerk routes. Evidence is limited to the README, source index, and sampled excerpts; links to unsampled feature implementations are not asserted as calls.

Main entry points: [`src/routes/_authenticated/route.tsx`](https://github.com/galactus-tech/customer/blob/main/src/routes/_authenticated/route.tsx) (Authenticated entry), [`src/features/tasks/components/tasks-table.tsx`](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/tasks-table.tsx) (Task data table), [`src/components/layout/authenticated-layout.tsx`](https://github.com/galactus-tech/customer/blob/main/src/components/layout/authenticated-layout.tsx) (Authenticated shell), [`src/main.tsx`](https://github.com/galactus-tech/customer/blob/main/src/main.tsx) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App runtime"]
  node_bootstrap["App bootstrap<br/>[main.tsx]"]
  node_route_tree["Route registry<br/>[routeTree.gen.ts]"]
  node_cookies["Cookie preferences<br/>[cookies.ts]"]
end

subgraph group_workspace["Workspace shell"]
  node_authenticated_route["Authenticated entry<br/>[route.tsx]"]
  node_shell["Authenticated shell"]
  node_sidebar["Sidebar navigation<br/>[app-sidebar.tsx]"]
  node_search["Command search"]
  node_config["Layout configuration<br/>[config-drawer.tsx]"]
end

subgraph group_features["Product features"]
  node_dashboard["Dashboard analytics"]
  node_apps["Apps gallery"]
  node_chats["Chat workspace"]
  node_users["User administration"]
  node_errors["Error screens"]
end

subgraph group_taskflow["Task management"]
  node_tasks_route["Tasks route<br/>[index.tsx]"]
  node_tasks_feature["Tasks screen<br/>[index.tsx]"]
  node_tasks_table["Task data table<br/>[tasks-table.tsx]"]
  node_task_columns["Task columns<br/>[tasks-columns.tsx]"]
  node_task_data["Task sample data<br/>[data.tsx]"]
  node_task_schema["Task schema<br/>[schema.ts]"]
  node_task_editor["Task editor"]
  node_table_actions["Bulk table actions"]
  node_table_components["Reusable table controls<br/>[bulk-actions.tsx]"]
  node_table_url_state["URL table state"]
end

subgraph group_authsettings["Access and preferences"]
  node_auth_routes["Auth routes<br/>[sign-in.tsx]"]
  node_auth_feature["Authentication forms"]
  node_settings_route["Settings route<br/>[route.tsx]"]
  node_settings["Settings panels"]
end

node_user(("Dashboard user"))

node_user -->|"opens app"| node_bootstrap
node_bootstrap -->|"configures router"| node_route_tree
node_route_tree -->|"registers routes"| node_authenticated_route
node_route_tree -->|"registers routes"| node_auth_routes
node_auth_routes -->|"renders form"| node_auth_feature
node_authenticated_route -->|"renders layout"| node_shell
node_shell -->|"renders navigation"| node_sidebar
node_shell -->|"provides search"| node_search
node_shell -->|"reads sidebar state"| node_cookies
node_authenticated_route -.->|"routes to"| node_dashboard
node_authenticated_route -.->|"routes to"| node_apps
node_authenticated_route -.->|"routes to"| node_chats
node_authenticated_route -.->|"routes to"| node_users
node_authenticated_route -.->|"routes to"| node_tasks_route
node_settings_route -->|"renders settings"| node_settings
node_tasks_route -.->|"routes to"| node_tasks_feature
node_tasks_feature -.->|"renders table"| node_tasks_table
node_tasks_table -->|"uses data"| node_task_data
node_tasks_table -->|"uses schema"| node_task_schema
node_tasks_table -->|"renders columns"| node_task_columns
node_tasks_table -->|"renders actions"| node_table_actions
node_tasks_table -->|"syncs table state"| node_table_url_state
node_task_columns -->|"uses table controls"| node_table_components
node_task_editor -->|"validates with"| node_task_schema
node_bootstrap -->|"handles failures"| node_errors

click node_bootstrap "https://github.com/galactus-tech/customer/blob/main/src/main.tsx"
click node_route_tree "https://github.com/galactus-tech/customer/blob/main/src/routeTree.gen.ts"
click node_auth_routes "https://github.com/galactus-tech/customer/blob/main/src/routes/(auth)/sign-in.tsx"
click node_auth_feature "https://github.com/galactus-tech/customer/tree/main/src/features/auth"
click node_authenticated_route "https://github.com/galactus-tech/customer/blob/main/src/routes/_authenticated/route.tsx"
click node_shell "https://github.com/galactus-tech/customer/blob/main/src/components/layout/authenticated-layout.tsx"
click node_sidebar "https://github.com/galactus-tech/customer/blob/main/src/components/layout/app-sidebar.tsx"
click node_search "https://github.com/galactus-tech/customer/blob/main/src/context/search-provider.tsx"
click node_config "https://github.com/galactus-tech/customer/blob/main/src/components/config-drawer.tsx"
click node_dashboard "https://github.com/galactus-tech/customer/tree/main/src/features/dashboard"
click node_apps "https://github.com/galactus-tech/customer/tree/main/src/features/apps"
click node_chats "https://github.com/galactus-tech/customer/tree/main/src/features/chats"
click node_users "https://github.com/galactus-tech/customer/tree/main/src/features/users"
click node_settings_route "https://github.com/galactus-tech/customer/blob/main/src/routes/_authenticated/settings/route.tsx"
click node_settings "https://github.com/galactus-tech/customer/tree/main/src/features/settings"
click node_tasks_route "https://github.com/galactus-tech/customer/blob/main/src/routes/_authenticated/tasks/index.tsx"
click node_tasks_feature "https://github.com/galactus-tech/customer/blob/main/src/features/tasks/index.tsx"
click node_tasks_table "https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/tasks-table.tsx"
click node_task_columns "https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/tasks-columns.tsx"
click node_task_data "https://github.com/galactus-tech/customer/blob/main/src/features/tasks/data/data.tsx"
click node_task_schema "https://github.com/galactus-tech/customer/blob/main/src/features/tasks/data/schema.ts"
click node_task_editor "https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/tasks-mutate-drawer.tsx"
click node_table_actions "https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/data-table-bulk-actions.tsx"
click node_table_components "https://github.com/galactus-tech/customer/blob/main/src/components/data-table/bulk-actions.tsx"
click node_table_url_state "https://github.com/galactus-tech/customer/blob/main/src/hooks/use-table-url-state.ts"
click node_cookies "https://github.com/galactus-tech/customer/blob/main/src/lib/cookies.ts"
click node_errors "https://github.com/galactus-tech/customer/tree/main/src/features/errors"

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_bootstrap,node_route_tree,node_cookies,node_user toneBlue
class node_authenticated_route,node_shell,node_sidebar,node_search,node_config toneAmber
class node_dashboard,node_apps,node_chats,node_users,node_errors toneMint
class node_tasks_route,node_tasks_feature,node_tasks_table,node_task_columns,node_task_data,node_task_schema,node_task_editor,node_table_actions,node_table_components,node_table_url_state toneRose
class node_auth_routes,node_auth_feature,node_settings_route,node_settings toneIndigo
```

## Components

### App runtime

- [App bootstrap](https://github.com/galactus-tech/customer/blob/main/src/main.tsx): `src/main.tsx`
- [Route registry](https://github.com/galactus-tech/customer/blob/main/src/routeTree.gen.ts): `src/routeTree.gen.ts`
- [Cookie preferences](https://github.com/galactus-tech/customer/blob/main/src/lib/cookies.ts): `src/lib/cookies.ts`

### Workspace shell

- [Authenticated entry](https://github.com/galactus-tech/customer/blob/main/src/routes/_authenticated/route.tsx): `src/routes/_authenticated/route.tsx`
- [Authenticated shell](https://github.com/galactus-tech/customer/blob/main/src/components/layout/authenticated-layout.tsx): `src/components/layout/authenticated-layout.tsx`
- [Sidebar navigation](https://github.com/galactus-tech/customer/blob/main/src/components/layout/app-sidebar.tsx): `src/components/layout/app-sidebar.tsx`
- [Command search](https://github.com/galactus-tech/customer/blob/main/src/context/search-provider.tsx): `src/context/search-provider.tsx`
- [Layout configuration](https://github.com/galactus-tech/customer/blob/main/src/components/config-drawer.tsx): `src/components/config-drawer.tsx`

### Product features

- [Dashboard analytics](https://github.com/galactus-tech/customer/tree/main/src/features/dashboard): `src/features/dashboard`
- [Apps gallery](https://github.com/galactus-tech/customer/tree/main/src/features/apps): `src/features/apps`
- [Chat workspace](https://github.com/galactus-tech/customer/tree/main/src/features/chats): `src/features/chats`
- [User administration](https://github.com/galactus-tech/customer/tree/main/src/features/users): `src/features/users`
- [Error screens](https://github.com/galactus-tech/customer/tree/main/src/features/errors): `src/features/errors`

### Task management

- [Tasks route](https://github.com/galactus-tech/customer/blob/main/src/routes/_authenticated/tasks/index.tsx): `src/routes/_authenticated/tasks/index.tsx`
- [Tasks screen](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/index.tsx): `src/features/tasks/index.tsx`
- [Task data table](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/tasks-table.tsx): `src/features/tasks/components/tasks-table.tsx`
- [Task columns](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/tasks-columns.tsx): `src/features/tasks/components/tasks-columns.tsx`
- [Task sample data](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/data/data.tsx): `src/features/tasks/data/data.tsx`
- [Task schema](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/data/schema.ts): `src/features/tasks/data/schema.ts`
- [Task editor](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/tasks-mutate-drawer.tsx): `src/features/tasks/components/tasks-mutate-drawer.tsx`
- [Bulk table actions](https://github.com/galactus-tech/customer/blob/main/src/features/tasks/components/data-table-bulk-actions.tsx): `src/features/tasks/components/data-table-bulk-actions.tsx`
- [Reusable table controls](https://github.com/galactus-tech/customer/blob/main/src/components/data-table/bulk-actions.tsx): `src/components/data-table/bulk-actions.tsx`
- [URL table state](https://github.com/galactus-tech/customer/blob/main/src/hooks/use-table-url-state.ts): `src/hooks/use-table-url-state.ts`

### Access and preferences

- [Auth routes](https://github.com/galactus-tech/customer/blob/main/src/routes/(auth)/sign-in.tsx): `src/routes/(auth)/sign-in.tsx`
- [Authentication forms](https://github.com/galactus-tech/customer/tree/main/src/features/auth): `src/features/auth`
- [Settings route](https://github.com/galactus-tech/customer/blob/main/src/routes/_authenticated/settings/route.tsx): `src/routes/_authenticated/settings/route.tsx`
- [Settings panels](https://github.com/galactus-tech/customer/tree/main/src/features/settings): `src/features/settings`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → App bootstrap: opens app (evidence: `src/main.tsx`)
- App bootstrap → Route registry: configures router (evidence: `src/main.tsx`)
- Route registry → Authenticated entry: registers routes (evidence: `src/routeTree.gen.ts`)
- Route registry → Auth routes: registers routes (evidence: `src/routeTree.gen.ts`)
- Auth routes → Authentication forms: renders form (evidence: `src/routes/(auth)/sign-in.tsx`)
- Authenticated entry → Authenticated shell: renders layout (evidence: `src/routes/_authenticated/route.tsx`)
- Authenticated shell → Sidebar navigation: renders navigation (evidence: `src/components/layout/authenticated-layout.tsx`)
- Authenticated shell → Command search: provides search (evidence: `src/components/layout/authenticated-layout.tsx`)
- Authenticated shell → Cookie preferences: reads sidebar state (evidence: `src/components/layout/authenticated-layout.tsx`)
- Authenticated entry → Dashboard analytics: routes to
- Authenticated entry → Apps gallery: routes to
- Authenticated entry → Chat workspace: routes to
- Authenticated entry → User administration: routes to
- Authenticated entry → Tasks route: routes to
- Settings route → Settings panels: renders settings (evidence: `src/routes/_authenticated/settings/route.tsx`)
- Tasks route → Tasks screen: routes to
- Tasks screen → Task data table: renders table
- Task data table → Task sample data: uses data (evidence: `src/features/tasks/components/tasks-table.tsx`)
- Task data table → Task schema: uses schema (evidence: `src/features/tasks/components/tasks-table.tsx`)
- Task data table → Task columns: renders columns (evidence: `src/features/tasks/components/tasks-table.tsx`)
- Task data table → Bulk table actions: renders actions (evidence: `src/features/tasks/components/tasks-table.tsx`)
- Task data table → URL table state: syncs table state (evidence: `src/features/tasks/components/tasks-table.tsx`)
- Task columns → Reusable table controls: uses table controls (evidence: `src/features/tasks/components/tasks-columns.tsx`)
- Task editor → Task schema: validates with (evidence: `src/features/tasks/components/tasks-mutate-drawer.tsx`)
- App bootstrap → Error screens: handles failures (evidence: `src/main.tsx`)
