# maluzhenkov/test-task_litssoft architecture

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

- Interactive diagram: https://gitdiagram.com/maluzhenkov/test-task_litssoft
- Repository: https://github.com/maluzhenkov/test-task_litssoft

## Overview

This is a Vue task-tracker SPA. Users sign in, then reach a guarded task board to load, search/filter, create, edit, change status, and delete tasks; Pinia stores coordinate the API and UI state. Authentication persists a JWT in localStorage, which Axios attaches to requests; a protected-request 401 invokes the handler wired in main.ts to clear session/task state, notify, and redirect. The README also documents distinct loading, retry, empty, and notification feedback. Relationships are based on excerpts and explicit README statements; unsampled view and mock-server internals are not inferred.

Main entry points: [`src/components/tasks/TaskBoard.vue`](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskBoard.vue) (Task board), [`src/stores/auth.ts`](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/stores/auth.ts) (Auth store), [`src/main.ts`](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/main.ts) (App bootstrap), [`src/router/index.ts`](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/router/index.ts) (Router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App and navigation"]
  node_app["App shell<br/>[App.vue]"]
  node_loginview["Login page<br/>[LoginView.vue]"]
  node_tasksview["Tasks page<br/>[TasksView.vue]"]
  node_router["Router<br/>[index.ts]"]
  node_guards["Route guards<br/>[guards.ts]"]
end

subgraph group_identity["Authentication"]
  node_loginform["Login form<br/>[LoginForm.vue]"]
  node_authstore["Auth store<br/>[auth.ts]"]
  node_session["Session storage<br/>[auth-storage.ts]"]
  node_authapi["Auth endpoints<br/>[auth.ts]"]
end

subgraph group_tasks["Task workflow"]
  node_taskboard["Task board<br/>[TaskBoard.vue]"]
  node_filters["Task filters<br/>[TaskFilters.vue]"]
  node_debounce["Search debounce"]
  node_taskstore["Task store<br/>[tasks.ts]"]
  node_taskapi["Task endpoints<br/>[tasks.ts]"]
  node_tasklist["Task list<br/>[TaskList.vue]"]
  node_taskcard["Task card<br/>[TaskCard.vue]"]
  node_taskform["Task form<br/>[TaskFormModal.vue]"]
  node_delete["Delete dialog"]
  node_skeleton["Loading skeleton"]
  node_tasklabels["Task labels<br/>[tasks.ts]"]
end

subgraph group_services["API and feedback"]
  node_http["Axios instance<br/>[instance.ts]"]
  node_startup["App bootstrap<br/>[main.ts]"]
  node_notifications["Notification state"]
  node_notificationui["Notification UI"]
  node_modal["Modal primitive<br/>[BaseModal.vue]"]
  node_errors["API error mapping<br/>[errors.ts]"]
end

node_user(("User"))
node_mockapi[("Mock API server")]

node_user -->|"uses"| node_app
node_app -->|"renders routes"| node_router
node_router -->|"checks navigation"| node_guards
node_router -->|"routes to"| node_loginview
node_router -->|"routes to"| node_tasksview
node_loginview -->|"renders"| node_loginform
node_loginform -->|"submits credentials"| node_authstore
node_guards -->|"checks session"| node_authstore
node_authstore -->|"logs in"| node_authapi
node_authstore -->|"persists session"| node_session
node_tasksview -->|"renders"| node_taskboard
node_taskboard -->|"loads and mutates"| node_taskstore
node_taskboard -->|"renders"| node_filters
node_filters -->|"debounces search"| node_debounce
node_taskstore -->|"requests CRUD"| node_taskapi
node_taskstore -->|"reports mutations"| node_notifications
node_taskboard -->|"renders results"| node_tasklist
node_tasklist -->|"renders cards"| node_taskcard
node_taskboard -->|"renders form"| node_taskform
node_taskboard -->|"renders confirmation"| node_delete
node_taskboard -->|"shows loading"| node_skeleton
node_taskcard -->|"uses labels"| node_tasklabels
node_taskform -->|"uses options"| node_tasklabels
node_delete -->|"uses modal"| node_modal
node_taskform -->|"uses modal"| node_modal
node_authapi -->|"sends requests"| node_http
node_taskapi -->|"sends requests"| node_http
node_http -->|"reads token"| node_session
node_http -->|"calls API"| node_mockapi
node_startup -->|"registers 401 handler"| node_http
node_startup -->|"logs out on 401"| node_authstore
node_startup -->|"resets on 401"| node_taskstore
node_startup -->|"notifies on 401"| node_notifications
node_startup -->|"redirects on 401"| node_router
node_app -->|"renders"| node_notificationui
node_notificationui -->|"displays"| node_notifications
node_taskstore -->|"maps errors"| node_errors
node_authstore -->|"maps errors"| node_errors

click node_app "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/App.vue"
click node_loginview "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/views/LoginView.vue"
click node_tasksview "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/views/TasksView.vue"
click node_router "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/router/index.ts"
click node_guards "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/router/guards.ts"
click node_loginform "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/auth/LoginForm.vue"
click node_authstore "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/stores/auth.ts"
click node_session "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/utils/auth-storage.ts"
click node_authapi "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/api/endpoints/auth.ts"
click node_taskboard "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskBoard.vue"
click node_filters "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskFilters.vue"
click node_debounce "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/composables/useDebouncedSearch.ts"
click node_taskstore "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/stores/tasks.ts"
click node_taskapi "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/api/endpoints/tasks.ts"
click node_tasklist "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskList.vue"
click node_taskcard "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskCard.vue"
click node_taskform "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskFormModal.vue"
click node_delete "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskDeleteDialog.vue"
click node_skeleton "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskListSkeleton.vue"
click node_tasklabels "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/constants/tasks.ts"
click node_http "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/api/instance.ts"
click node_startup "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/main.ts"
click node_notifications "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/composables/useNotifications.ts"
click node_notificationui "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/ui/AppNotifications.vue"
click node_modal "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/ui/BaseModal.vue"
click node_errors "https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/utils/errors.ts"
click node_mockapi "https://github.com/maluzhenkov/test-task_litssoft/tree/main/mock-api"

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_loginview,node_tasksview,node_router,node_guards,node_user toneBlue
class node_loginform,node_authstore,node_session,node_authapi,node_mockapi toneAmber
class node_taskboard,node_filters,node_debounce,node_taskstore,node_taskapi,node_tasklist,node_taskcard,node_taskform,node_delete,node_skeleton,node_tasklabels toneMint
class node_http,node_startup,node_notifications,node_notificationui,node_modal,node_errors toneRose
```

## Components

### App and navigation

- [App shell](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/App.vue): `src/App.vue`
- [Login page](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/views/LoginView.vue): `src/views/LoginView.vue`
- [Tasks page](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/views/TasksView.vue): `src/views/TasksView.vue`
- [Router](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/router/index.ts): `src/router/index.ts`
- [Route guards](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/router/guards.ts): `src/router/guards.ts`

### Authentication

- [Login form](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/auth/LoginForm.vue): `src/components/auth/LoginForm.vue`
- [Auth store](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/stores/auth.ts): `src/stores/auth.ts`
- [Session storage](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/utils/auth-storage.ts): `src/utils/auth-storage.ts`
- [Auth endpoints](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/api/endpoints/auth.ts): `src/api/endpoints/auth.ts`

### Task workflow

- [Task board](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskBoard.vue): `src/components/tasks/TaskBoard.vue`
- [Task filters](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskFilters.vue): `src/components/tasks/TaskFilters.vue`
- [Search debounce](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/composables/useDebouncedSearch.ts): `src/composables/useDebouncedSearch.ts`
- [Task store](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/stores/tasks.ts): `src/stores/tasks.ts`
- [Task endpoints](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/api/endpoints/tasks.ts): `src/api/endpoints/tasks.ts`
- [Task list](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskList.vue): `src/components/tasks/TaskList.vue`
- [Task card](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskCard.vue): `src/components/tasks/TaskCard.vue`
- [Task form](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskFormModal.vue): `src/components/tasks/TaskFormModal.vue`
- [Delete dialog](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskDeleteDialog.vue): `src/components/tasks/TaskDeleteDialog.vue`
- [Loading skeleton](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/tasks/TaskListSkeleton.vue): `src/components/tasks/TaskListSkeleton.vue`
- [Task labels](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/constants/tasks.ts): `src/constants/tasks.ts`

### API and feedback

- [Axios instance](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/api/instance.ts): `src/api/instance.ts`
- [App bootstrap](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/main.ts): `src/main.ts`
- [Notification state](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/composables/useNotifications.ts): `src/composables/useNotifications.ts`
- [Notification UI](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/ui/AppNotifications.vue): `src/components/ui/AppNotifications.vue`
- [Modal primitive](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/components/ui/BaseModal.vue): `src/components/ui/BaseModal.vue`
- [API error mapping](https://github.com/maluzhenkov/test-task_litssoft/blob/main/src/utils/errors.ts): `src/utils/errors.ts`

### Other components

- **User**
- [Mock API server](https://github.com/maluzhenkov/test-task_litssoft/tree/main/mock-api): `mock-api`

## Connections

- User → App shell: uses (evidence: `src/App.vue`)
- App shell → Router: renders routes (evidence: `src/App.vue`)
- Router → Route guards: checks navigation (evidence: `src/router/index.ts`)
- Router → Login page: routes to (evidence: `src/router/index.ts`)
- Router → Tasks page: routes to (evidence: `src/router/index.ts`)
- Login page → Login form: renders (evidence: `src/views/LoginView.vue`)
- Login form → Auth store: submits credentials (evidence: `src/components/auth/LoginForm.vue`)
- Route guards → Auth store: checks session (evidence: `src/router/guards.ts`)
- Auth store → Auth endpoints: logs in (evidence: `src/stores/auth.ts`)
- Auth store → Session storage: persists session (evidence: `src/stores/auth.ts`)
- Tasks page → Task board: renders (evidence: `src/views/TasksView.vue`)
- Task board → Task store: loads and mutates (evidence: `src/components/tasks/TaskBoard.vue`)
- Task board → Task filters: renders (evidence: `src/components/tasks/TaskBoard.vue`)
- Task filters → Search debounce: debounces search (evidence: `src/components/tasks/TaskFilters.vue`)
- Task store → Task endpoints: requests CRUD (evidence: `src/stores/tasks.ts`)
- Task store → Notification state: reports mutations (evidence: `src/stores/tasks.ts`)
- Task board → Task list: renders results (evidence: `src/components/tasks/TaskBoard.vue`)
- Task list → Task card: renders cards (evidence: `src/components/tasks/TaskList.vue`)
- Task board → Task form: renders form (evidence: `src/components/tasks/TaskBoard.vue`)
- Task board → Delete dialog: renders confirmation (evidence: `src/components/tasks/TaskBoard.vue`)
- Task board → Loading skeleton: shows loading (evidence: `src/components/tasks/TaskBoard.vue`)
- Task card → Task labels: uses labels (evidence: `src/components/tasks/TaskCard.vue`)
- Task form → Task labels: uses options (evidence: `src/components/tasks/TaskFormModal.vue`)
- Delete dialog → Modal primitive: uses modal (evidence: `src/components/tasks/TaskDeleteDialog.vue`)
- Task form → Modal primitive: uses modal (evidence: `src/components/tasks/TaskFormModal.vue`)
- Auth endpoints → Axios instance: sends requests (evidence: `src/api/endpoints/auth.ts`)
- Task endpoints → Axios instance: sends requests (evidence: `src/api/endpoints/tasks.ts`)
- Axios instance → Session storage: reads token (evidence: `src/api/instance.ts`)
- Axios instance → Mock API server: calls API (evidence: `README.md`)
- App bootstrap → Axios instance: registers 401 handler (evidence: `src/main.ts`)
- App bootstrap → Auth store: logs out on 401 (evidence: `src/main.ts`)
- App bootstrap → Task store: resets on 401 (evidence: `src/main.ts`)
- App bootstrap → Notification state: notifies on 401 (evidence: `src/main.ts`)
- App bootstrap → Router: redirects on 401 (evidence: `src/main.ts`)
- App shell → Notification UI: renders (evidence: `src/App.vue`)
- Notification UI → Notification state: displays (evidence: `src/components/ui/AppNotifications.vue`)
- Task store → API error mapping: maps errors (evidence: `src/stores/tasks.ts`)
- Auth store → API error mapping: maps errors (evidence: `src/stores/auth.ts`)
