# maksimkarpeko/final-project-innowise architecture

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

- Interactive diagram: https://gitdiagram.com/maksimkarpeko/final-project-innowise
- Repository: https://github.com/maksimkarpeko/final-project-innowise

## Overview

This is a Next.js CV/profile management application: users authenticate, manage their profile and languages, create and edit CV details, projects and skills, then preview or export a CV. Admin pages and shared catalogs provide additional management capabilities. The graph reflects route-to-view and selected feature relationships supported by the source index or excerpts; many route and feature implementations were not sampled, so their internal calls are not inferred.

Main entry points: [`src/views/auth`](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/auth) (Auth views), [`src/features/Auth/hooks/useAuthForm.ts`](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Auth/hooks/useAuthForm.ts) (Authentication flow), [`src/views/user`](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/user) (User views), [`src/features/CV/hooks`](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/features/CV/hooks) (CV editing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Routes and views"]
  node_auth_routes["Auth routes"]
  node_private_routes["Private routes"]
  node_auth_views["Auth views"]
  node_user_views["User views"]
  node_admin_views["Admin views"]
end

subgraph group_features["User workflows"]
  node_auth_flow["Authentication flow<br/>[useAuthForm.ts]"]
  node_cv_workflow["CV editing"]
  node_cv_preview["CV preview<br/>[CVPreviewInfo.tsx]"]
  node_cv_export["CV export<br/>[ExportCV.tsx]"]
  node_language_workflow["Language management<br/>[useLanguages.ts]"]
  node_profile_workflow["Profile management<br/>[useUserProfile.ts]"]
  node_auth_model["Auth model<br/>[auth.model.ts]"]
  node_language_model["Language model<br/>[language.types.ts]"]
  node_profile_model["Profile model"]
  node_auth_header["Auth header<br/>[AuthHeader.tsx]"]
  node_profile_form["Profile form"]
  node_profile_field["Profile field<br/>[ProfileField.tsx]"]
end

subgraph group_data["GraphQL data access"]
  node_entities["Catalog entities"]
  node_cv_api["CV API<br/>[cv.api.ts]"]
  node_language_api["Language API<br/>[language.api.ts]"]
  node_profile_api["Profile API<br/>[userProfile.api.ts]"]
  node_auth_api["Auth API<br/>[auth.api.ts]"]
end

subgraph group_platform["Shared platform"]
  node_graphql["GraphQL client<br/>[apollo-client.tsx]"]
  node_auth_link["Auth link<br/>[authLink.ts]"]
  node_error_link["Error link<br/>[errorLink.ts]"]
  node_refresh["Token refresh<br/>[getRefreshToken.ts]"]
  node_storage["Token storage"]
  node_password_ui["Password input<br/>[EyeIcon.tsx]"]
end

node_user(("User"))

node_user -.->|"opens"| node_auth_routes
node_user -.->|"uses"| node_private_routes
node_auth_routes -->|"routes to"| node_auth_views
node_private_routes -->|"routes to"| node_user_views
node_auth_flow -->|"calls"| node_auth_api
node_auth_flow -->|"uses"| node_auth_model
node_auth_flow -->|"stores tokens"| node_storage
node_graphql -->|"configures"| node_auth_link
node_graphql -->|"configures"| node_error_link
node_auth_link -->|"reads tokens"| node_storage
node_error_link -->|"calls"| node_refresh
node_language_workflow -->|"calls"| node_language_api
node_language_workflow -->|"uses"| node_language_model
node_cv_workflow -->|"uses"| node_entities
node_cv_workflow -->|"uses"| node_entities
node_cv_preview -->|"renders"| node_cv_export
node_cv_export -->|"calls"| node_cv_api
node_profile_workflow -->|"calls"| node_profile_api
node_profile_workflow -->|"uses"| node_profile_model
node_profile_form -->|"renders"| node_profile_field
node_auth_views -->|"uses"| node_auth_header
node_auth_views -->|"uses"| node_auth_flow
node_auth_views -.->|"uses"| node_password_ui
node_user_views -->|"uses"| node_cv_preview
node_user_views -.->|"uses"| node_profile_form

click node_auth_routes "https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/app/(public)/(auth)"
click node_private_routes "https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/app/(private)"
click node_auth_views "https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/auth"
click node_user_views "https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/user"
click node_admin_views "https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/admin"
click node_auth_flow "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Auth/hooks/useAuthForm.ts"
click node_cv_workflow "https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/features/CV/hooks"
click node_cv_preview "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/CV/ui/preview/CVPreviewInfo.tsx"
click node_cv_export "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/CV/ui/preview/ExportCV.tsx"
click node_language_workflow "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Language/hooks/useLanguages.ts"
click node_profile_workflow "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/UserProfile/hooks/useUserProfile.ts"
click node_graphql "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/app/apollo/apollo-client.tsx"
click node_auth_link "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/app/apollo/authLink.ts"
click node_error_link "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/app/apollo/errorLink.ts"
click node_refresh "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/shared/api/getRefreshToken.ts"
click node_entities "https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/entities"
click node_cv_api "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/entities/cv/api/cv.api.ts"
click node_language_api "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Language/api/language.api.ts"
click node_profile_api "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/UserProfile/api/userProfile.api.ts"
click node_auth_api "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Auth/api/auth.api.ts"
click node_auth_model "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Auth/model/auth.model.ts"
click node_language_model "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Language/model/language.types.ts"
click node_profile_model "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/UserProfile/model/userProfile.model.ts"
click node_storage "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/shared/utils/workOnLocalStorage.ts"
click node_auth_header "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/widgets/Auth/AuthHeader.tsx"
click node_profile_form "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/widgets/UserProfileForm/UserProfileForm.tsx"
click node_profile_field "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/widgets/UserProfileForm/components/ProfileField.tsx"
click node_password_ui "https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/shared/ui/EyeIcon.tsx"

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_auth_routes,node_private_routes,node_auth_views,node_user_views,node_admin_views,node_user toneBlue
class node_auth_flow,node_cv_workflow,node_cv_preview,node_cv_export,node_language_workflow,node_profile_workflow,node_auth_model,node_language_model,node_profile_model,node_auth_header,node_profile_form,node_profile_field toneAmber
class node_entities,node_cv_api,node_language_api,node_profile_api,node_auth_api toneMint
class node_graphql,node_auth_link,node_error_link,node_refresh,node_storage,node_password_ui toneRose
```

## Components

### Routes and views

- [Auth routes](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/app/(public)/(auth)): `src/app/(public)/(auth)`
- [Private routes](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/app/(private)): `src/app/(private)`
- [Auth views](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/auth): `src/views/auth`
- [User views](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/user): `src/views/user`
- [Admin views](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/views/admin): `src/views/admin`

### User workflows

- [Authentication flow](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Auth/hooks/useAuthForm.ts): `src/features/Auth/hooks/useAuthForm.ts`
- [CV editing](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/features/CV/hooks): `src/features/CV/hooks`
- [CV preview](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/CV/ui/preview/CVPreviewInfo.tsx): `src/features/CV/ui/preview/CVPreviewInfo.tsx`
- [CV export](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/CV/ui/preview/ExportCV.tsx): `src/features/CV/ui/preview/ExportCV.tsx`
- [Language management](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Language/hooks/useLanguages.ts): `src/features/Language/hooks/useLanguages.ts`
- [Profile management](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/UserProfile/hooks/useUserProfile.ts): `src/features/UserProfile/hooks/useUserProfile.ts`
- [Auth model](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Auth/model/auth.model.ts): `src/features/Auth/model/auth.model.ts`
- [Language model](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Language/model/language.types.ts): `src/features/Language/model/language.types.ts`
- [Profile model](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/UserProfile/model/userProfile.model.ts): `src/features/UserProfile/model/userProfile.model.ts`
- [Auth header](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/widgets/Auth/AuthHeader.tsx): `src/widgets/Auth/AuthHeader.tsx`
- [Profile form](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/widgets/UserProfileForm/UserProfileForm.tsx): `src/widgets/UserProfileForm/UserProfileForm.tsx`
- [Profile field](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/widgets/UserProfileForm/components/ProfileField.tsx): `src/widgets/UserProfileForm/components/ProfileField.tsx`

### GraphQL data access

- [Catalog entities](https://github.com/maksimkarpeko/final-project-innowise/tree/main/src/entities): `src/entities`
- [CV API](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/entities/cv/api/cv.api.ts): `src/entities/cv/api/cv.api.ts`
- [Language API](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Language/api/language.api.ts): `src/features/Language/api/language.api.ts`
- [Profile API](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/UserProfile/api/userProfile.api.ts): `src/features/UserProfile/api/userProfile.api.ts`
- [Auth API](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/features/Auth/api/auth.api.ts): `src/features/Auth/api/auth.api.ts`

### Shared platform

- [GraphQL client](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/app/apollo/apollo-client.tsx): `src/app/apollo/apollo-client.tsx`
- [Auth link](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/app/apollo/authLink.ts): `src/app/apollo/authLink.ts`
- [Error link](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/app/apollo/errorLink.ts): `src/app/apollo/errorLink.ts`
- [Token refresh](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/shared/api/getRefreshToken.ts): `src/shared/api/getRefreshToken.ts`
- [Token storage](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/shared/utils/workOnLocalStorage.ts): `src/shared/utils/workOnLocalStorage.ts`
- [Password input](https://github.com/maksimkarpeko/final-project-innowise/blob/main/src/shared/ui/EyeIcon.tsx): `src/shared/ui/EyeIcon.tsx`

### Other components

- **User**

## Connections

- User → Auth routes: opens
- User → Private routes: uses
- Auth routes → Auth views: routes to
- Private routes → User views: routes to (evidence: `src/app/(private)/(user)/users/[userId]/cv/page.tsx`)
- Authentication flow → Auth API: calls (evidence: `src/features/Auth/hooks/useAuthForm.ts`)
- Authentication flow → Auth model: uses (evidence: `src/features/Auth/hooks/useAuthForm.ts`)
- Authentication flow → Token storage: stores tokens (evidence: `src/features/Auth/hooks/useAuthForm.ts`)
- GraphQL client → Auth link: configures (evidence: `src/app/apollo/apollo-client.tsx`)
- GraphQL client → Error link: configures (evidence: `src/app/apollo/apollo-client.tsx`)
- Auth link → Token storage: reads tokens (evidence: `src/app/apollo/authLink.ts`)
- Error link → Token refresh: calls (evidence: `src/app/apollo/errorLink.ts`)
- Language management → Language API: calls (evidence: `src/features/Language/hooks/useLanguages.ts`)
- Language management → Language model: uses (evidence: `src/features/Language/hooks/useLanguages.ts`)
- CV editing → Catalog entities: uses (evidence: `src/features/CV/hooks/useCVProjects.ts`)
- CV editing → Catalog entities: uses (evidence: `src/features/CV/hooks/useCVSkills.ts`)
- CV preview → CV export: renders (evidence: `src/features/CV/ui/preview/CVPreviewInfo.tsx`)
- CV export → CV API: calls (evidence: `src/features/CV/ui/preview/ExportCV.tsx`)
- Profile management → Profile API: calls (evidence: `src/features/UserProfile/hooks/useUserProfile.ts`)
- Profile management → Profile model: uses (evidence: `src/features/UserProfile/hooks/useUserProfile.ts`)
- Profile form → Profile field: renders (evidence: `src/widgets/UserProfileForm/UserProfileForm.tsx`)
- Auth views → Auth header: uses
- Auth views → Authentication flow: uses
- Auth views → Password input: uses
- User views → CV preview: uses (evidence: `src/views/user/cvs/preview/CVPreview.tsx`)
- User views → Profile form: uses
