How rohan28107/teamsync-frontend works
This is a React/TypeScript workspace and project task-management frontend. Users authenticate or accept workspace invitations, then work within a selected workspace to view dashboards, manage members and projects, and create, filter, and edit tasks. Routing selects the page; protected application layout provides authentication context and workspace navigation. Pages and API helpers expose workspace, membership, project, task, and analytics capabilities through HTTP. The README is empty; several feature files were not sampled, so their internal calls are not inferred.
Main entry points: routes.tsx Route tables · api.ts HTTP API helpers · asidebar.tsx Sidebar navigation · use-auth.tsx Current user query
Components 31
App and routing
- App entry
src/App.tsx - Route tables
src/routes/common/routes.tsx - Route paths
src/routes/common/routePaths.ts - App layout
src/layout/app.layout.tsx
Identity and access
- Auth routes
src/routes/auth.route.tsx - Sign in
src/page/auth/Sign-in.tsx - Sign up
src/page/auth/Sign-up.tsx - OAuth callback
src/page/auth/GoogleCallbackHandler.tsx - Workspace invite
src/page/invite/InviteUser.tsx - Auth context
src/context/auth-provider.tsx - Current user query
src/hooks/api/use-auth.tsx
Workspace and projects
- Dashboard
src/page/workspace/Dashboard.tsx - Member management
src/page/workspace/Members.tsx - Workspace settings
src/page/workspace/Settings.tsx - Project details
src/page/workspace/ProjectDetails.tsx
Task management
- Task page
src/page/workspace/Tasks.tsx - Task table
src/components/workspace/task/task-table.tsx - Recent tasks
src/components/workspace/task/recent-tasks.tsx
API and shared UI
- HTTP API helpers
src/lib/api.ts - HTTP client
src/lib/axios-client.ts - Domain API types
src/types/api.type.ts - Sidebar navigation
src/components/asidebar/asidebar.tsx - Sidebar primitives
src/components/ui/sidebar.tsx - Project navigation
src/components/asidebar/nav-projects.tsx - Dashboard loading view
src/components/skeleton-loaders/dashboard-skeleton.tsx - Button primitive
src/components/ui/button.tsx - Avatar primitive
src/components/ui/avatar.tsx - Card primitive
src/components/ui/card.tsx - Dropdown primitive
src/components/ui/dropdown-menu.tsx - Separator primitive
src/components/ui/separator.tsx
Other components
- Application backend
Connections 25
- App entry → Route tables: renders routes
src/App.tsx - Route tables → Sign in: routes to
src/routes/common/routes.tsx - Route tables → Sign up: routes to
src/routes/common/routes.tsx - Route tables → OAuth callback: routes to
src/routes/common/routes.tsx - Route tables → Dashboard: routes to
src/routes/common/routes.tsx - Route tables → Member management: routes to
src/routes/common/routes.tsx - Route tables → Workspace settings: routes to
src/routes/common/routes.tsx - Route tables → Project details: routes to
src/routes/common/routes.tsx - Route tables → Task page: routes to
src/routes/common/routes.tsx - Route tables → Workspace invite: routes to
src/routes/common/routes.tsx - Route tables → Route paths: uses constants
src/routes/common/routes.tsx - App layout → Auth context: provides context
src/layout/app.layout.tsx - App layout → Sidebar navigation: renders navigation
src/layout/app.layout.tsx - Auth context → Current user query: loads user
src/context/auth-provider.tsx - Current user query → HTTP API helpers: queries user
src/hooks/api/use-auth.tsx - HTTP API helpers → HTTP client: sends requests
src/lib/api.ts - HTTP API helpers → Domain API types: types responses
src/lib/api.ts - HTTP API helpers → Application backend: HTTP requests
src/lib/api.ts - Dashboard → Recent tasks: shows recent tasks
src/page/workspace/Dashboard.tsx - Task page → Task table: renders table
src/page/workspace/Tasks.tsx - Recent tasks → HTTP API helpers: queries tasks
src/components/workspace/task/recent-tasks.tsx - Sidebar navigation → Sidebar primitives: uses primitives
src/components/asidebar/asidebar.tsx - Sidebar navigation → Project navigation: renders projects
src/components/asidebar/asidebar.tsx - Auth routes → Current user query: checks session
src/routes/auth.route.tsx - Auth routes → Dashboard loading view: shows loading view
src/routes/auth.route.tsx