How team-waggle/frontend-v2 works
This is a React/TypeScript collaboration platform for discovering project opportunities, managing teams and applications, maintaining profiles, and messaging collaborators. Users enter through routed pages; the main search workflow gathers keyword, role, and skill filters, then applies them to opportunity discovery. From a post, users can apply, while team managers handle applicants and team status. Authentication and realtime messaging are shared application services. The README is a Vite template and does not document product behavior; some page-to-data connections are therefore omitted where the supplied source does not establish them.
Main entry points: router.tsx Route map · useStompClient.ts Realtime client · App.tsx App shell · authStore.ts Auth state
Components 22
App and routing
- App shell
src/App.tsx - Route map
src/router.tsx - Route loaders
src/loaders/routeLoaders.ts - Authentication
src/hooks/useAuth.ts - Auth API
src/api/auth.ts - Auth state
src/stores/authStore.ts
Opportunity discovery
- Search controls
src/components/Main/MainSearch/MainSearch.tsx - Search filters
src/hooks/useSearchFilters.ts - Opportunity feed
src/pages/MainPage.tsx - Post detail
src/pages/PostDetailPage.tsx - Post data hooks
src/hooks/usePost.ts - Post API
src/api/post.ts
Teams and profiles
- Applicant management
src/pages/TeamApplicantPage.tsx - Team data hooks
src/hooks/useTeam.ts - Team API
src/api/team.ts - Profile pages
src/pages/ProfilePage.tsx
Messaging and services
- Message page
src/pages/MessagePage.tsx - Realtime client
src/hooks/useStompClient.ts - Message API
src/api/message.ts - Message state
src/stores/messageStore.ts
Other components
- Collaborator
- Platform services
Connections 20
- Collaborator → Route map: opens routes
src/router.tsx - Route map → App shell: renders shell
src/router.tsx - Route map → Opportunity feed: routes to
src/router.tsx - Route map → Post detail: routes to
src/router.tsx - Route map → Applicant management: routes to
src/router.tsx - Route map → Profile pages: routes to
src/router.tsx - Route map → Message page: routes to
src/router.tsx - Route map → Route loaders: loads route data
src/router.tsx - App shell → Auth state: reads auth state
src/App.tsx - App shell → Realtime client: starts connection
src/App.tsx - Authentication → Auth API: calls
src/hooks/useAuth.ts - Authentication → Auth state: updates state
src/hooks/useAuth.ts - Search controls → Search filters: uses filters
src/components/Main/MainSearch/MainSearch.tsx - Post detail → Post data hooks: uses post hooks
src/pages/PostDetailPage.tsx - Applicant management → Team data hooks: uses team hooks
src/pages/TeamApplicantPage.tsx - Team data hooks → Team API: calls
src/hooks/useTeam.ts - Realtime client → Auth state: reads token
src/hooks/useStompClient.ts - Realtime client → Message API: gets socket token
src/hooks/useStompClient.ts - Realtime client → Message state: updates messages
src/hooks/useStompClient.ts - Realtime client → Platform services: publishes messages