# jackson05/dbx-guardian-ui architecture

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

- Interactive diagram: https://gitdiagram.com/jackson05/dbx-guardian-ui
- Repository: https://github.com/jackson05/dbx-guardian-ui

## Overview

DbxGuardianUi is an Angular console for authenticated access to dashboard, workspace, cluster, and settings views. The main flow bootstraps the app, initializes Keycloak, then routes users through guarded screens; workspace views list and create workspaces through an HTTP service. The README describes only the Angular scaffold, so feature interpretation comes from the source index and sampled files. Some feature implementations are indexed but not excerpted; their internals and unshown connections are omitted.

Main entry points: [`src/app/app.routes.ts`](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/app.routes.ts) (Route configuration), [`src/main.ts`](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/main.ts) (App bootstrap), [`src/app/core/dbxworkspaces/dbxworkspaces.component.ts`](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/dbxworkspaces.component.ts) (Workspace screen), [`src/app/auth/keycloak/keycloak.service.ts`](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/keycloak/keycloak.service.ts) (Keycloak service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application shell"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_shell["App shell<br/>[app.component.ts]"]
  node_routing["Route configuration<br/>[app.routes.ts]"]
  node_sidebar["Navigation sidebar"]
end

subgraph group_identity["Identity and access"]
  node_authguard["Route guard<br/>[auth.guard.ts]"]
  node_keycloak["Keycloak service"]
  node_profile["User profile<br/>[userProfile.ts]"]
  node_interceptor["Token interceptor"]
end

subgraph group_workspace["Workspace management"]
  node_workspaceview["Workspace screen"]
  node_dialog["Workspace dialog"]
  node_list["Workspace list"]
  node_workspace_service["Workspace service"]
  node_workspace_model["Workspace model<br/>[workspace.ts]"]
end

subgraph group_features["Guardian views"]
  node_dashboard["Dashboard"]
  node_cluster["Cluster screen"]
  node_cluster_table["Cluster table"]
  node_cluster_service["Cluster service<br/>[cluster.service.ts]"]
  node_settings["Settings"]
end

node_user(("User"))
node_idp["Keycloak identity provider"]
node_workspace_api["Workspace API"]

node_user -->|"opens app"| node_bootstrap
node_bootstrap -->|"bootstraps"| node_shell
node_bootstrap -->|"provides routes"| node_routing
node_bootstrap -->|"registers"| node_interceptor
node_shell -->|"initializes"| node_keycloak
node_shell -->|"renders"| node_sidebar
node_keycloak -->|"authenticates with"| node_idp
node_keycloak -->|"loads"| node_profile
node_interceptor -->|"gets token from"| node_keycloak
node_routing -->|"guards routes"| node_authguard
node_routing -->|"routes to"| node_dashboard
node_routing -->|"routes to"| node_workspaceview
node_routing -->|"routes to"| node_cluster
node_routing -->|"routes to"| node_settings
node_workspaceview -->|"opens"| node_dialog
node_workspaceview -->|"creates through"| node_workspace_service
node_workspaceview -->|"renders"| node_list
node_list -->|"requests workspace data"| node_workspace_service
node_workspace_service -->|"sends HTTP requests"| node_workspace_api
node_cluster -->|"uses"| node_cluster_table

click node_bootstrap "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/main.ts"
click node_shell "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/app.component.ts"
click node_routing "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/app.routes.ts"
click node_sidebar "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/sidebar/sidebar.component.ts"
click node_authguard "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/guard/auth.guard.ts"
click node_keycloak "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/keycloak/keycloak.service.ts"
click node_profile "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/keycloak/user/userProfile.ts"
click node_interceptor "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/interceptor/token.custom.interceptor.ts"
click node_workspaceview "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/dbxworkspaces.component.ts"
click node_dialog "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace-dialog/workspace-dialog.component.ts"
click node_list "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace-list/workspace-list.component.ts"
click node_workspace_service "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace.service.ts"
click node_workspace_model "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace.ts"
click node_dashboard "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dashboard/dashboard.component.ts"
click node_cluster "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/cluster/cluster.component.ts"
click node_cluster_table "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/cluster/cluster-table/cluster-table.component.ts"
click node_cluster_service "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/cluster/service/cluster.service.ts"
click node_settings "https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/settings/settings.component.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_bootstrap,node_shell,node_routing,node_sidebar,node_user toneBlue
class node_authguard,node_keycloak,node_profile,node_interceptor toneAmber
class node_workspaceview,node_dialog,node_list,node_workspace_service,node_workspace_model,node_workspace_api toneMint
class node_dashboard,node_cluster,node_cluster_table,node_cluster_service,node_settings toneRose
class node_idp toneIndigo
```

## Components

### Application shell

- [App bootstrap](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/main.ts): `src/main.ts`
- [App shell](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/app.component.ts): `src/app/app.component.ts`
- [Route configuration](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Navigation sidebar](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/sidebar/sidebar.component.ts): `src/app/core/sidebar/sidebar.component.ts`

### Identity and access

- [Route guard](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/guard/auth.guard.ts): `src/app/auth/guard/auth.guard.ts`
- [Keycloak service](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/keycloak/keycloak.service.ts): `src/app/auth/keycloak/keycloak.service.ts`
- [User profile](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/keycloak/user/userProfile.ts): `src/app/auth/keycloak/user/userProfile.ts`
- [Token interceptor](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/auth/interceptor/token.custom.interceptor.ts): `src/app/auth/interceptor/token.custom.interceptor.ts`

### Workspace management

- [Workspace screen](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/dbxworkspaces.component.ts): `src/app/core/dbxworkspaces/dbxworkspaces.component.ts`
- [Workspace dialog](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace-dialog/workspace-dialog.component.ts): `src/app/core/dbxworkspaces/workspace-dialog/workspace-dialog.component.ts`
- [Workspace list](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace-list/workspace-list.component.ts): `src/app/core/dbxworkspaces/workspace-list/workspace-list.component.ts`
- [Workspace service](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace.service.ts): `src/app/core/dbxworkspaces/workspace.service.ts`
- [Workspace model](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dbxworkspaces/workspace.ts): `src/app/core/dbxworkspaces/workspace.ts`

### Guardian views

- [Dashboard](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/dashboard/dashboard.component.ts): `src/app/core/dashboard/dashboard.component.ts`
- [Cluster screen](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/cluster/cluster.component.ts): `src/app/core/cluster/cluster.component.ts`
- [Cluster table](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/cluster/cluster-table/cluster-table.component.ts): `src/app/core/cluster/cluster-table/cluster-table.component.ts`
- [Cluster service](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/cluster/service/cluster.service.ts): `src/app/core/cluster/service/cluster.service.ts`
- [Settings](https://github.com/jackson05/dbx-guardian-ui/blob/main/src/app/core/settings/settings.component.ts): `src/app/core/settings/settings.component.ts`

### Other components

- **User**
- **Keycloak identity provider**
- **Workspace API**

## Connections

- User → App bootstrap: opens app (evidence: `src/main.ts`)
- App bootstrap → App shell: bootstraps (evidence: `src/main.ts`)
- App bootstrap → Route configuration: provides routes (evidence: `src/main.ts`)
- App bootstrap → Token interceptor: registers (evidence: `src/main.ts`)
- App shell → Keycloak service: initializes (evidence: `src/app/app.component.ts`)
- App shell → Navigation sidebar: renders (evidence: `src/app/app.component.ts`)
- Keycloak service → Keycloak identity provider: authenticates with (evidence: `src/app/auth/keycloak/keycloak.service.ts`)
- Keycloak service → User profile: loads (evidence: `src/app/auth/keycloak/keycloak.service.ts`)
- Token interceptor → Keycloak service: gets token from (evidence: `src/app/auth/interceptor/token.custom.interceptor.ts`)
- Route configuration → Route guard: guards routes (evidence: `src/app/app.routes.ts`)
- Route configuration → Dashboard: routes to (evidence: `src/app/app.routes.ts`)
- Route configuration → Workspace screen: routes to (evidence: `src/app/app.routes.ts`)
- Route configuration → Cluster screen: routes to (evidence: `src/app/app.routes.ts`)
- Route configuration → Settings: routes to (evidence: `src/app/app.routes.ts`)
- Workspace screen → Workspace dialog: opens (evidence: `src/app/core/dbxworkspaces/dbxworkspaces.component.ts`)
- Workspace screen → Workspace service: creates through (evidence: `src/app/core/dbxworkspaces/dbxworkspaces.component.ts`)
- Workspace screen → Workspace list: renders (evidence: `src/app/core/dbxworkspaces/dbxworkspaces.component.ts`)
- Workspace list → Workspace service: requests workspace data (evidence: `src/app/core/dbxworkspaces/workspace-list/workspace-list.component.ts`)
- Workspace service → Workspace API: sends HTTP requests (evidence: `src/app/core/dbxworkspaces/workspace.service.ts`)
- Cluster screen → Cluster table: uses (evidence: `src/app/core/cluster/cluster.component.ts`)
