How gmtdn67/production-project works
This is a Feature-Sliced React frontend for an article community, with authentication, profiles, comments, ratings, recommendations, and user interface preferences. The main workflow initializes the user session, enters the routed app, and lets users browse and filter articles or open article details and interact with them. The graph includes major documented feature branches as well as application, routing, and state layers. Some feature and page internals were not sampled, so those connections are shown as unverified rather than asserted as calls.
Main entry points: App.tsx App shell · ArticleDetailsPage Article details · index.tsx React bootstrap · useArticleFilters.ts Article filters
Components 25
Application runtime
- React bootstrap
src/index.tsx - App shell
src/app/App.tsx - App router
src/app/providers/router/ui/AppRouter.tsx - Route config
src/app/providers/router/config/routeConfig.tsx
Article experience
- Article browsing
src/pages/ArticlesPage - Article filters
src/pages/ArticlesPage/lib/hooks/useArticleFilters.ts - Article list state
src/pages/ArticlesPage/model/slices/articlesPageSlice.ts - Article list fetch
src/pages/ArticlesPage/model/services/fetchArticlesList/fetchArticlesList.ts - Article details
src/pages/ArticleDetailsPage - Article entity
src/entities/Article
Identity and profiles
- Session init
src/entities/User/model/services/initAuthData.ts - User API
src/entities/User/api/userApi.ts - Username login
src/features/AuthByUsername - Profile editing
src/features/editableProfileCard/ui/EditableProfileCardHeader/EditableProfileCardHeader.tsx
Community features
- Comments
src/pages/ArticleDetailsPage - Add comment
src/features/addCommentForm - Recommendations
src/features/ArticleRecommendationsList - Article rating
src/features/articleRating - Profile rating
src/features/profileRating
Shared foundation
- Redux store
src/app/providers/StoreProvider/config/StateSchema.ts - RTK Query API
src/shared/api/rtkApi.ts - UI preferences
src/features/UI - Feature flags
src/shared/lib/features/index.ts - Theme provider
src/app/providers/ThemeProvider/ui/ThemeProvider.tsx
Other components
- Visitor
Connections 21
- Visitor → React bootstrap: opens app
src/index.tsx - React bootstrap → App shell: renders
src/index.tsx - App shell → Session init: initializes session
src/app/App.tsx - Session init → User API: queries user
src/entities/User/model/services/initAuthData.ts - App shell → App router: renders routes
src/app/App.tsx - App router → Route config: uses route config
src/app/providers/router/ui/AppRouter.tsx - React bootstrap → Redux store: provides state
src/index.tsx - App shell → Feature flags: toggles layouts
src/app/App.tsx - App shell → Theme provider: reads theme
src/app/App.tsx - Article filters → Article list state: updates filters
src/pages/ArticlesPage/lib/hooks/useArticleFilters.ts - Article filters → Article list fetch: dispatches fetch
src/pages/ArticlesPage/lib/hooks/useArticleFilters.ts - Article browsing → Article filters: uses filters
src/pages/ArticlesPage/lib/hooks/useArticleFilters.ts - Article list fetch → Article entity: loads articles
- Article details → Article entity: shows article
- Article details → Comments: shows comments
- Article details → Recommendations: shows recommendations
- Article details → Article rating: offers rating
- Comments → Add comment: offers comment form
- Profile editing → Profile rating: offers profile rating
- Username login → User API: authenticates
- Redux store → RTK Query API: includes API state
src/app/providers/StoreProvider/config/StateSchema.ts