# krimtsev/portal-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/krimtsev/portal-frontend
- Repository: https://github.com/krimtsev/portal-frontend

## Overview

This is a Vue-based partner portal with an administrative dashboard, user profiles, authentication, and partner-specific portal content. The typical flow is a user entering through routing and authentication, then working in a role-appropriate portal or dashboard view; views use API services to communicate with the backend. The sampled code verifies application setup, authentication state, dashboard routing, and HTTP behavior. Portal feature coverage comes from the file tree, so those internal links are marked unverified rather than asserted as observed calls.

Main entry points: [`src/router/index.ts`](https://github.com/krimtsev/portal-frontend/blob/master/src/router/index.ts) (Route registry), [`src/App.vue`](https://github.com/krimtsev/portal-frontend/blob/master/src/App.vue) (Layout and view host), [`src/views/dashboard`](https://github.com/krimtsev/portal-frontend/tree/master/src/views/dashboard) (Dashboard features), [`src/views/portal`](https://github.com/krimtsev/portal-frontend/tree/master/src/views/portal) (Partner services and content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_main["App bootstrap<br/>[main.ts]"]
  node_appview["Layout and view host<br/>[App.vue]"]
  node_router["Route registry<br/>[index.ts]"]
  node_http["HTTP client<br/>[index.ts]"]
  node_api["Feature API modules"]
  node_state["Feature state"]
end

subgraph group_identity["Identity and access"]
  node_authview["Sign-in view<br/>[auth-view.vue]"]
  node_authstore["Session state<br/>[auth.ts]"]
  node_authapi["Authentication API<br/>[auth.ts]"]
end

subgraph group_admin["Dashboard operations"]
  node_dashroutes["Dashboard routes<br/>[routes.ts]"]
  node_dashviews["Dashboard features"]
end

subgraph group_portal["Partner portal"]
  node_portalroutes["Partner routes<br/>[routes.ts]"]
  node_portalviews["Partner services and content"]
  node_profile["User profile and tickets"]
end

node_user(("User"))
node_backend(("Portal backend"))

node_main -->|"mounts"| node_appview
node_main -->|"installs"| node_router
node_user -.->|"navigates"| node_router
node_router -.->|"provides route"| node_appview
node_appview -.->|"renders dashboard"| node_dashviews
node_appview -.->|"renders portal"| node_portalviews
node_user -.->|"signs in"| node_authview
node_authview -.->|"uses API client"| node_http
node_authstore -->|"calls"| node_authapi
node_authapi -->|"uses"| node_http
node_http -->|"sends requests"| node_backend
node_dashroutes -->|"routes to"| node_dashviews
node_router -.->|"registers"| node_dashroutes
node_router -.->|"registers"| node_portalroutes
node_portalroutes -.->|"routes to"| node_portalviews
node_router -.->|"routes to"| node_profile
node_dashviews -.->|"requests data"| node_api
node_portalviews -.->|"requests data"| node_api
node_profile -.->|"requests data"| node_api
node_api -.->|"uses client"| node_http
node_dashviews -.->|"uses feature state"| node_state
node_portalviews -.->|"uses feature state"| node_state

click node_main "https://github.com/krimtsev/portal-frontend/blob/master/src/main.ts"
click node_appview "https://github.com/krimtsev/portal-frontend/blob/master/src/App.vue"
click node_router "https://github.com/krimtsev/portal-frontend/blob/master/src/router/index.ts"
click node_authview "https://github.com/krimtsev/portal-frontend/blob/master/src/views/auth/auth-view.vue"
click node_authstore "https://github.com/krimtsev/portal-frontend/blob/master/src/store/auth/auth.ts"
click node_authapi "https://github.com/krimtsev/portal-frontend/blob/master/src/api/modules/auth/auth.ts"
click node_http "https://github.com/krimtsev/portal-frontend/blob/master/src/api/index.ts"
click node_dashroutes "https://github.com/krimtsev/portal-frontend/blob/master/src/router/dashboard/routes.ts"
click node_dashviews "https://github.com/krimtsev/portal-frontend/tree/master/src/views/dashboard"
click node_portalroutes "https://github.com/krimtsev/portal-frontend/blob/master/src/router/portal/routes.ts"
click node_portalviews "https://github.com/krimtsev/portal-frontend/tree/master/src/views/portal"
click node_profile "https://github.com/krimtsev/portal-frontend/tree/master/src/views/profile"
click node_api "https://github.com/krimtsev/portal-frontend/tree/master/src/api/modules"
click node_state "https://github.com/krimtsev/portal-frontend/tree/master/src/store"

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_main,node_appview,node_router,node_http,node_api,node_state,node_user toneBlue
class node_authview,node_authstore,node_authapi toneAmber
class node_dashroutes,node_dashviews toneMint
class node_portalroutes,node_portalviews,node_profile toneRose
class node_backend toneIndigo
```

## Components

### Application shell

- [App bootstrap](https://github.com/krimtsev/portal-frontend/blob/master/src/main.ts): `src/main.ts`
- [Layout and view host](https://github.com/krimtsev/portal-frontend/blob/master/src/App.vue): `src/App.vue`
- [Route registry](https://github.com/krimtsev/portal-frontend/blob/master/src/router/index.ts): `src/router/index.ts`
- [HTTP client](https://github.com/krimtsev/portal-frontend/blob/master/src/api/index.ts): `src/api/index.ts`
- [Feature API modules](https://github.com/krimtsev/portal-frontend/tree/master/src/api/modules): `src/api/modules`
- [Feature state](https://github.com/krimtsev/portal-frontend/tree/master/src/store): `src/store`

### Identity and access

- [Sign-in view](https://github.com/krimtsev/portal-frontend/blob/master/src/views/auth/auth-view.vue): `src/views/auth/auth-view.vue`
- [Session state](https://github.com/krimtsev/portal-frontend/blob/master/src/store/auth/auth.ts): `src/store/auth/auth.ts`
- [Authentication API](https://github.com/krimtsev/portal-frontend/blob/master/src/api/modules/auth/auth.ts): `src/api/modules/auth/auth.ts`

### Dashboard operations

- [Dashboard routes](https://github.com/krimtsev/portal-frontend/blob/master/src/router/dashboard/routes.ts): `src/router/dashboard/routes.ts`
- [Dashboard features](https://github.com/krimtsev/portal-frontend/tree/master/src/views/dashboard): `src/views/dashboard`

### Partner portal

- [Partner routes](https://github.com/krimtsev/portal-frontend/blob/master/src/router/portal/routes.ts): `src/router/portal/routes.ts`
- [Partner services and content](https://github.com/krimtsev/portal-frontend/tree/master/src/views/portal): `src/views/portal`
- [User profile and tickets](https://github.com/krimtsev/portal-frontend/tree/master/src/views/profile): `src/views/profile`

### Other components

- **User**
- **Portal backend**

## Connections

- App bootstrap → Layout and view host: mounts (evidence: `src/main.ts`)
- App bootstrap → Route registry: installs (evidence: `src/main.ts`)
- User → Route registry: navigates
- Route registry → Layout and view host: provides route
- Layout and view host → Dashboard features: renders dashboard
- Layout and view host → Partner services and content: renders portal
- User → Sign-in view: signs in
- Sign-in view → HTTP client: uses API client (evidence: `src/views/auth/auth-view.vue`)
- Session state → Authentication API: calls (evidence: `src/store/auth/auth.ts`)
- Authentication API → HTTP client: uses (evidence: `src/api/modules/auth/auth.ts`)
- HTTP client → Portal backend: sends requests (evidence: `src/api/index.ts`)
- Dashboard routes → Dashboard features: routes to (evidence: `src/router/dashboard/routes.ts`)
- Route registry → Dashboard routes: registers
- Route registry → Partner routes: registers
- Partner routes → Partner services and content: routes to
- Route registry → User profile and tickets: routes to
- Dashboard features → Feature API modules: requests data
- Partner services and content → Feature API modules: requests data
- User profile and tickets → Feature API modules: requests data
- Feature API modules → HTTP client: uses client (evidence: `src/api/modules/app/app.ts`)
- Dashboard features → Feature state: uses feature state
- Partner services and content → Feature state: uses feature state
