How ityctota/skillswap_53_2 works
SkillSwap is a skill-exchange platform: users browse and filter people and skills, view skill details, and can offer an exchange; registration and profiles support participation. The graph follows the documented React/Redux routing and the sampled catalog, skill, and profile workflows. Several page and API implementations were not sampled, so those capabilities are included from the tree and README, but uncertain internal calls are not inferred.
Main entry points: RouterProvider.tsx Page router · SkillPage/index.tsx Skill details · userApi.ts User API · CatalogPage/index.tsx Catalog page
Components 24
Application shell
- App shell
src/app/App.tsx - Page router
src/app/providers/RouterProvider.tsx - Redux store
src/store/index.ts
Skill discovery
- Catalog page
src/pages/CatalogPage/index.tsx - Catalog filters
src/components/FilterBlock/FilterBlock.tsx - Skill search
src/shared/hooks/useSearch.ts - Skill details
src/pages/SkillPage/index.tsx - Skill state
src/entities/skill/model/skillsSlice.ts - Skill cards
src/components/SkillCard/SkillCard.tsx
Identity and profiles
- Registration flow
src/components/Registration/RegistrationStep1.tsx - Registration payload
src/components/Registration/buildRegisterPayload.ts - Registration draft
src/components/Registration/registerFormStorage.ts - Auth utilities
src/features/auth/model/authUtils.ts - Profile page
src/pages/ProfilePage/index.tsx - User profile state
src/entities/user/model/profileSlice.ts - User directory state
src/entities/users/model/usersSlice.ts - User API
src/api/userApi.ts
Exchange activity
- Exchange API
src/api/exchangesApi.ts - Notification API
src/api/notificationApi.ts - Favorites page
src/pages/FavoritesPage/index.tsx
Mock backend
- API server
server/server.js - Mock data generator
server/generate/index.ts - Category data
server/generate/categories.ts
Other components
- Visitor
Connections 24
- Visitor → App shell: opens
- App shell → Page router: renders
src/app/App.tsx - Page router → Catalog page: routes to
src/app/providers/RouterProvider.tsx - Page router → Skill details: routes to
src/app/providers/RouterProvider.tsx - Page router → Profile page: routes to
src/app/providers/RouterProvider.tsx - Page router → Favorites page: routes to
src/app/providers/RouterProvider.tsx - App shell → Redux store: provides
src/app/App.tsx - Catalog page → Catalog filters: renders
src/pages/CatalogPage/index.tsx - Catalog page → User directory state: dispatches
src/pages/CatalogPage/index.tsx - Catalog page → User API: fetches users
src/pages/CatalogPage/index.tsx - Skill search → User API: loads categories
src/shared/hooks/useSearch.ts - Skill details → Skill state: dispatches
src/pages/SkillPage/index.tsx - Skill details → Skill cards: renders
src/pages/SkillPage/index.tsx - Skill details → Exchange API: offers exchange
src/pages/SkillPage/index.tsx - Skill details → Notification API: creates notice
src/pages/SkillPage/index.tsx - Registration flow → Registration draft: saves draft
- Registration flow → Registration payload: builds payload
- Registration flow → User API: registers
src/pages/RegisterPage/index.tsx - Profile page → User profile state: dispatches
src/pages/ProfilePage/index.tsx - Profile page → User API: updates profile
- User API → API server: HTTP requests
src/api/userApi.ts - Exchange API → API server: HTTP requests
- Notification API → API server: HTTP requests
- Mock data generator → Category data: saves categories
server/generate/index.ts