# rohan28107/teamsync-frontend architecture

> Architecture diagram of the GitHub repository rohan28107/teamsync-frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rohan28107/teamsync-frontend
- Repository: https://github.com/rohan28107/teamsync-frontend

## Overview

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: [`src/routes/common/routes.tsx`](https://github.com/rohan28107/teamsync-frontend/blob/main/src/routes/common/routes.tsx) (Route tables), [`src/lib/api.ts`](https://github.com/rohan28107/teamsync-frontend/blob/main/src/lib/api.ts) (HTTP API helpers), [`src/components/asidebar/asidebar.tsx`](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/asidebar/asidebar.tsx) (Sidebar navigation), [`src/hooks/api/use-auth.tsx`](https://github.com/rohan28107/teamsync-frontend/blob/main/src/hooks/api/use-auth.tsx) (Current user query)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and routing"]
  node_app["App entry<br/>[App.tsx]"]
  node_routes["Route tables<br/>[routes.tsx]"]
  node_paths["Route paths<br/>[routePaths.ts]"]
  node_app_layout["App layout<br/>[app.layout.tsx]"]
end

subgraph group_identity["Identity and access"]
  node_auth_routes["Auth routes<br/>[auth.route.tsx]"]
  node_sign_in["Sign in<br/>[Sign-in.tsx]"]
  node_sign_up["Sign up<br/>[Sign-up.tsx]"]
  node_oauth_callback["OAuth callback"]
  node_invite["Workspace invite<br/>[InviteUser.tsx]"]
  node_auth_provider["Auth context<br/>[auth-provider.tsx]"]
  node_auth_hook["Current user query<br/>[use-auth.tsx]"]
end

subgraph group_workspace["Workspace and projects"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_members["Member management<br/>[Members.tsx]"]
  node_settings["Workspace settings<br/>[Settings.tsx]"]
  node_project_details["Project details<br/>[ProjectDetails.tsx]"]
end

subgraph group_tasks["Task management"]
  node_tasks_page["Task page<br/>[Tasks.tsx]"]
  node_task_table["Task table<br/>[task-table.tsx]"]
  node_recent_tasks["Recent tasks<br/>[recent-tasks.tsx]"]
end

subgraph group_services["API and shared UI"]
  node_api["HTTP API helpers<br/>[api.ts]"]
  node_axios["HTTP client<br/>[axios-client.ts]"]
  node_api_types["Domain API types<br/>[api.type.ts]"]
  node_sidebar["Sidebar navigation<br/>[asidebar.tsx]"]
  node_sidebar_ui["Sidebar primitives<br/>[sidebar.tsx]"]
  node_nav_projects["Project navigation<br/>[nav-projects.tsx]"]
  node_dashboard_skeleton["Dashboard loading view"]
  node_button["Button primitive<br/>[button.tsx]"]
  node_avatar["Avatar primitive<br/>[avatar.tsx]"]
  node_card["Card primitive<br/>[card.tsx]"]
  node_dropdown["Dropdown primitive<br/>[dropdown-menu.tsx]"]
  node_separator["Separator primitive<br/>[separator.tsx]"]
end

node_backend["Application backend"]

node_app -->|"renders routes"| node_routes
node_routes -->|"routes to"| node_sign_in
node_routes -->|"routes to"| node_sign_up
node_routes -->|"routes to"| node_oauth_callback
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_members
node_routes -->|"routes to"| node_settings
node_routes -->|"routes to"| node_project_details
node_routes -->|"routes to"| node_tasks_page
node_routes -->|"routes to"| node_invite
node_routes -->|"uses constants"| node_paths
node_app_layout -->|"provides context"| node_auth_provider
node_app_layout -->|"renders navigation"| node_sidebar
node_auth_provider -->|"loads user"| node_auth_hook
node_auth_hook -->|"queries user"| node_api
node_api -->|"sends requests"| node_axios
node_api -->|"types responses"| node_api_types
node_api -->|"HTTP requests"| node_backend
node_dashboard -->|"shows recent tasks"| node_recent_tasks
node_tasks_page -->|"renders table"| node_task_table
node_recent_tasks -->|"queries tasks"| node_api
node_sidebar -->|"uses primitives"| node_sidebar_ui
node_sidebar -->|"renders projects"| node_nav_projects
node_auth_routes -->|"checks session"| node_auth_hook
node_auth_routes -->|"shows loading view"| node_dashboard_skeleton

click node_app "https://github.com/rohan28107/teamsync-frontend/blob/main/src/App.tsx"
click node_routes "https://github.com/rohan28107/teamsync-frontend/blob/main/src/routes/common/routes.tsx"
click node_paths "https://github.com/rohan28107/teamsync-frontend/blob/main/src/routes/common/routePaths.ts"
click node_app_layout "https://github.com/rohan28107/teamsync-frontend/blob/main/src/layout/app.layout.tsx"
click node_auth_routes "https://github.com/rohan28107/teamsync-frontend/blob/main/src/routes/auth.route.tsx"
click node_sign_in "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/auth/Sign-in.tsx"
click node_sign_up "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/auth/Sign-up.tsx"
click node_oauth_callback "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/auth/GoogleCallbackHandler.tsx"
click node_invite "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/invite/InviteUser.tsx"
click node_auth_provider "https://github.com/rohan28107/teamsync-frontend/blob/main/src/context/auth-provider.tsx"
click node_auth_hook "https://github.com/rohan28107/teamsync-frontend/blob/main/src/hooks/api/use-auth.tsx"
click node_dashboard "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Dashboard.tsx"
click node_members "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Members.tsx"
click node_settings "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Settings.tsx"
click node_project_details "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/ProjectDetails.tsx"
click node_tasks_page "https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Tasks.tsx"
click node_task_table "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/workspace/task/task-table.tsx"
click node_recent_tasks "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/workspace/task/recent-tasks.tsx"
click node_api "https://github.com/rohan28107/teamsync-frontend/blob/main/src/lib/api.ts"
click node_axios "https://github.com/rohan28107/teamsync-frontend/blob/main/src/lib/axios-client.ts"
click node_api_types "https://github.com/rohan28107/teamsync-frontend/blob/main/src/types/api.type.ts"
click node_sidebar "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/asidebar/asidebar.tsx"
click node_sidebar_ui "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/sidebar.tsx"
click node_nav_projects "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/asidebar/nav-projects.tsx"
click node_dashboard_skeleton "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/skeleton-loaders/dashboard-skeleton.tsx"
click node_button "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/button.tsx"
click node_avatar "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/avatar.tsx"
click node_card "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/card.tsx"
click node_dropdown "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/dropdown-menu.tsx"
click node_separator "https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/separator.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_routes,node_paths,node_app_layout toneBlue
class node_auth_routes,node_sign_in,node_sign_up,node_oauth_callback,node_invite,node_auth_provider,node_auth_hook toneAmber
class node_dashboard,node_members,node_settings,node_project_details toneMint
class node_tasks_page,node_task_table,node_recent_tasks toneRose
class node_api,node_axios,node_api_types,node_sidebar,node_sidebar_ui,node_nav_projects,node_dashboard_skeleton,node_button,node_avatar,node_card,node_dropdown,node_separator,node_backend toneIndigo
```

## Components

### App and routing

- [App entry](https://github.com/rohan28107/teamsync-frontend/blob/main/src/App.tsx): `src/App.tsx`
- [Route tables](https://github.com/rohan28107/teamsync-frontend/blob/main/src/routes/common/routes.tsx): `src/routes/common/routes.tsx`
- [Route paths](https://github.com/rohan28107/teamsync-frontend/blob/main/src/routes/common/routePaths.ts): `src/routes/common/routePaths.ts`
- [App layout](https://github.com/rohan28107/teamsync-frontend/blob/main/src/layout/app.layout.tsx): `src/layout/app.layout.tsx`

### Identity and access

- [Auth routes](https://github.com/rohan28107/teamsync-frontend/blob/main/src/routes/auth.route.tsx): `src/routes/auth.route.tsx`
- [Sign in](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/auth/Sign-in.tsx): `src/page/auth/Sign-in.tsx`
- [Sign up](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/auth/Sign-up.tsx): `src/page/auth/Sign-up.tsx`
- [OAuth callback](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/auth/GoogleCallbackHandler.tsx): `src/page/auth/GoogleCallbackHandler.tsx`
- [Workspace invite](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/invite/InviteUser.tsx): `src/page/invite/InviteUser.tsx`
- [Auth context](https://github.com/rohan28107/teamsync-frontend/blob/main/src/context/auth-provider.tsx): `src/context/auth-provider.tsx`
- [Current user query](https://github.com/rohan28107/teamsync-frontend/blob/main/src/hooks/api/use-auth.tsx): `src/hooks/api/use-auth.tsx`

### Workspace and projects

- [Dashboard](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Dashboard.tsx): `src/page/workspace/Dashboard.tsx`
- [Member management](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Members.tsx): `src/page/workspace/Members.tsx`
- [Workspace settings](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Settings.tsx): `src/page/workspace/Settings.tsx`
- [Project details](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/ProjectDetails.tsx): `src/page/workspace/ProjectDetails.tsx`

### Task management

- [Task page](https://github.com/rohan28107/teamsync-frontend/blob/main/src/page/workspace/Tasks.tsx): `src/page/workspace/Tasks.tsx`
- [Task table](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/workspace/task/task-table.tsx): `src/components/workspace/task/task-table.tsx`
- [Recent tasks](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/workspace/task/recent-tasks.tsx): `src/components/workspace/task/recent-tasks.tsx`

### API and shared UI

- [HTTP API helpers](https://github.com/rohan28107/teamsync-frontend/blob/main/src/lib/api.ts): `src/lib/api.ts`
- [HTTP client](https://github.com/rohan28107/teamsync-frontend/blob/main/src/lib/axios-client.ts): `src/lib/axios-client.ts`
- [Domain API types](https://github.com/rohan28107/teamsync-frontend/blob/main/src/types/api.type.ts): `src/types/api.type.ts`
- [Sidebar navigation](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/asidebar/asidebar.tsx): `src/components/asidebar/asidebar.tsx`
- [Sidebar primitives](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/sidebar.tsx): `src/components/ui/sidebar.tsx`
- [Project navigation](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/asidebar/nav-projects.tsx): `src/components/asidebar/nav-projects.tsx`
- [Dashboard loading view](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/skeleton-loaders/dashboard-skeleton.tsx): `src/components/skeleton-loaders/dashboard-skeleton.tsx`
- [Button primitive](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Avatar primitive](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/avatar.tsx): `src/components/ui/avatar.tsx`
- [Card primitive](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/card.tsx): `src/components/ui/card.tsx`
- [Dropdown primitive](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/dropdown-menu.tsx): `src/components/ui/dropdown-menu.tsx`
- [Separator primitive](https://github.com/rohan28107/teamsync-frontend/blob/main/src/components/ui/separator.tsx): `src/components/ui/separator.tsx`

### Other components

- **Application backend**

## Connections

- App entry → Route tables: renders routes (evidence: `src/App.tsx`)
- Route tables → Sign in: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Sign up: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → OAuth callback: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Dashboard: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Member management: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Workspace settings: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Project details: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Task page: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Workspace invite: routes to (evidence: `src/routes/common/routes.tsx`)
- Route tables → Route paths: uses constants (evidence: `src/routes/common/routes.tsx`)
- App layout → Auth context: provides context (evidence: `src/layout/app.layout.tsx`)
- App layout → Sidebar navigation: renders navigation (evidence: `src/layout/app.layout.tsx`)
- Auth context → Current user query: loads user (evidence: `src/context/auth-provider.tsx`)
- Current user query → HTTP API helpers: queries user (evidence: `src/hooks/api/use-auth.tsx`)
- HTTP API helpers → HTTP client: sends requests (evidence: `src/lib/api.ts`)
- HTTP API helpers → Domain API types: types responses (evidence: `src/lib/api.ts`)
- HTTP API helpers → Application backend: HTTP requests (evidence: `src/lib/api.ts`)
- Dashboard → Recent tasks: shows recent tasks (evidence: `src/page/workspace/Dashboard.tsx`)
- Task page → Task table: renders table (evidence: `src/page/workspace/Tasks.tsx`)
- Recent tasks → HTTP API helpers: queries tasks (evidence: `src/components/workspace/task/recent-tasks.tsx`)
- Sidebar navigation → Sidebar primitives: uses primitives (evidence: `src/components/asidebar/asidebar.tsx`)
- Sidebar navigation → Project navigation: renders projects (evidence: `src/components/asidebar/asidebar.tsx`)
- Auth routes → Current user query: checks session (evidence: `src/routes/auth.route.tsx`)
- Auth routes → Dashboard loading view: shows loading view (evidence: `src/routes/auth.route.tsx`)
