How maksimkarpeko/final-project-innowise works
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: auth Auth views · useAuthForm.ts Authentication flow · user User views · hooks CV editing
Components 29
Routes and views
- Auth routes
src/app/(public)/(auth) - Private routes
src/app/(private) - Auth views
src/views/auth - User views
src/views/user - Admin views
src/views/admin
User workflows
- Authentication flow
src/features/Auth/hooks/useAuthForm.ts - CV editing
src/features/CV/hooks - CV preview
src/features/CV/ui/preview/CVPreviewInfo.tsx - CV export
src/features/CV/ui/preview/ExportCV.tsx - Language management
src/features/Language/hooks/useLanguages.ts - Profile management
src/features/UserProfile/hooks/useUserProfile.ts - Auth model
src/features/Auth/model/auth.model.ts - Language model
src/features/Language/model/language.types.ts - Profile model
src/features/UserProfile/model/userProfile.model.ts - Auth header
src/widgets/Auth/AuthHeader.tsx - Profile form
src/widgets/UserProfileForm/UserProfileForm.tsx - Profile field
src/widgets/UserProfileForm/components/ProfileField.tsx
GraphQL data access
- Catalog entities
src/entities - CV API
src/entities/cv/api/cv.api.ts - Language API
src/features/Language/api/language.api.ts - Profile API
src/features/UserProfile/api/userProfile.api.ts - Auth API
src/features/Auth/api/auth.api.ts
Shared platform
- GraphQL client
src/app/apollo/apollo-client.tsx - Auth link
src/app/apollo/authLink.ts - Error link
src/app/apollo/errorLink.ts - Token refresh
src/shared/api/getRefreshToken.ts - Token storage
src/shared/utils/workOnLocalStorage.ts - Password input
src/shared/ui/EyeIcon.tsx
Other components
- User
Connections 25
- User → Auth routes: opens
- User → Private routes: uses
- Auth routes → Auth views: routes to
- Private routes → User views: routes to
src/app/(private)/(user)/users/[userId]/cv/page.tsx - Authentication flow → Auth API: calls
src/features/Auth/hooks/useAuthForm.ts - Authentication flow → Auth model: uses
src/features/Auth/hooks/useAuthForm.ts - Authentication flow → Token storage: stores tokens
src/features/Auth/hooks/useAuthForm.ts - GraphQL client → Auth link: configures
src/app/apollo/apollo-client.tsx - GraphQL client → Error link: configures
src/app/apollo/apollo-client.tsx - Auth link → Token storage: reads tokens
src/app/apollo/authLink.ts - Error link → Token refresh: calls
src/app/apollo/errorLink.ts - Language management → Language API: calls
src/features/Language/hooks/useLanguages.ts - Language management → Language model: uses
src/features/Language/hooks/useLanguages.ts - CV editing → Catalog entities: uses
src/features/CV/hooks/useCVProjects.ts - CV editing → Catalog entities: uses
src/features/CV/hooks/useCVSkills.ts - CV preview → CV export: renders
src/features/CV/ui/preview/CVPreviewInfo.tsx - CV export → CV API: calls
src/features/CV/ui/preview/ExportCV.tsx - Profile management → Profile API: calls
src/features/UserProfile/hooks/useUserProfile.ts - Profile management → Profile model: uses
src/features/UserProfile/hooks/useUserProfile.ts - Profile form → Profile field: renders
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
src/views/user/cvs/preview/CVPreview.tsx - User views → Profile form: uses