# hamzaelmanzari/sprint-blitz architecture

> Architecture diagram of the GitHub repository hamzaelmanzari/sprint-blitz, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hamzaelmanzari/sprint-blitz
- Repository: https://github.com/hamzaelmanzari/sprint-blitz

## Overview

Sprint Blitz is a collaborative sprint and backlog management app. A user enters through the workspace page, passes authentication and onboarding gates, then works in sprint, backlog, roadmap, team, or settings views. WorkspaceContext coordinates local or Supabase-backed state; repository and mapper modules handle cloud snapshots and persistence. The README documents task collaboration, workspace roles, join-code onboarding, and optional Supabase persistence. Some feature links reflect README or import-index evidence; unsampled implementation details are not inferred.

Main entry points: [`components/WorkspaceContext.tsx`](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/WorkspaceContext.tsx) (Workspace state), [`app/page.tsx`](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/app/page.tsx) (Workspace entry), [`components/ActiveSprintView.tsx`](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/ActiveSprintView.tsx) (Active sprint board), [`components/TaskDetailDrawer.tsx`](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/TaskDetailDrawer.tsx) (Task collaboration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Workspace experience"]
  node_home["Workspace entry<br/>[page.tsx]"]
  node_auth["Authentication gate<br/>[AuthGate.tsx]"]
  node_onboarding_gate["Onboarding gate<br/>[OnboardingGate.tsx]"]
  node_onboarding_flow["Owner/member setup<br/>[OnboardingFlow.tsx]"]
  node_app_shell["App shell<br/>[AppShell.tsx]"]
  node_sidebar["Workspace navigation<br/>[AppSidebar.tsx]"]
end

subgraph group_workflow["Planning and collaboration"]
  node_active_sprint["Active sprint board"]
  node_backlog["Backlog grooming"]
  node_sprint_planning["Sprint planning"]
  node_task_detail["Task collaboration"]
  node_new_task["Task creation<br/>[NewTaskModal.tsx]"]
  node_team["Team management<br/>[TeamView.tsx]"]
  node_settings["Workspace settings<br/>[SettingsView.tsx]"]
  node_avatar["Member avatars<br/>[Avatar.tsx]"]
  node_signals["Task signals<br/>[SignalBadge.tsx]"]
end

subgraph group_services["Workspace services"]
  node_workspace_context["Workspace state"]
  node_onboarding_api["Onboarding routes<br/>[route.ts]"]
  node_workspace_api["Workspace routes<br/>[route.ts]"]
  node_plan_logic["Plan processing<br/>[plan.ts]"]
end

subgraph group_data["State and persistence"]
  node_repository["Workspace repository"]
  node_mappers["Database mapping<br/>[mappers.ts]"]
  node_translations["Translations<br/>[i18n.ts]"]
  node_local_state[("Browser storage")]
  node_supabase_client["Browser client<br/>[client.ts]"]
  node_supabase_server["Server client<br/>[server.ts]"]
  node_supabase_config["Supabase configuration<br/>[config.ts]"]
  node_database_types["Database model<br/>[database.ts]"]
end

node_browser(("Workspace user"))
node_supabase[("Supabase Auth and database")]

node_browser -->|"opens"| node_home
node_home -->|"provides state"| node_workspace_context
node_home -->|"gates access"| node_auth
node_home -->|"checks setup"| node_onboarding_gate
node_home -->|"renders"| node_app_shell
node_home -->|"selects view"| node_active_sprint
node_home -->|"selects view"| node_backlog
node_home -->|"selects view"| node_sprint_planning
node_home -->|"selects view"| node_team
node_home -->|"selects view"| node_settings
node_home -->|"renders"| node_task_detail
node_home -->|"renders"| node_new_task
node_onboarding_gate -->|"renders"| node_onboarding_flow
node_onboarding_flow -.->|"submits setup"| node_onboarding_api
node_auth -->|"reads session"| node_workspace_context
node_app_shell -->|"reads state"| node_workspace_context
node_active_sprint -->|"reads and updates"| node_workspace_context
node_backlog -->|"reads and updates"| node_workspace_context
node_sprint_planning -->|"reads and updates"| node_workspace_context
node_task_detail -->|"reads and updates"| node_workspace_context
node_new_task -->|"creates tasks"| node_workspace_context
node_team -->|"reads and updates"| node_workspace_context
node_settings -->|"reads and updates"| node_workspace_context
node_sidebar -->|"reads navigation"| node_workspace_context
node_active_sprint -->|"renders"| node_avatar
node_active_sprint -->|"renders"| node_signals
node_task_detail -->|"renders"| node_avatar
node_task_detail -->|"renders"| node_signals
node_workspace_context -->|"loads and persists"| node_repository
node_workspace_context -->|"creates client"| node_supabase_client
node_workspace_context -->|"reads and writes"| node_local_state
node_repository -->|"maps records"| node_mappers
node_workspace_context -->|"converts task values"| node_mappers
node_workspace_context -->|"uses planning logic"| node_plan_logic
node_workspace_context -->|"approves drafts"| node_workspace_api
node_onboarding_api -->|"creates client"| node_supabase_server
node_workspace_api -->|"creates client"| node_supabase_server
node_supabase_client -->|"requires settings"| node_supabase_config
node_supabase_server -->|"requires settings"| node_supabase_config
node_supabase_client -->|"connects to"| node_supabase
node_supabase_server -->|"connects to"| node_supabase
node_repository -.->|"reads and writes tenant data"| node_supabase
node_repository -->|"uses schema types"| node_database_types
node_mappers -->|"maps database records"| node_database_types
node_workspace_context -->|"loads language support"| node_translations

click node_home "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/app/page.tsx"
click node_auth "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/AuthGate.tsx"
click node_onboarding_gate "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/OnboardingGate.tsx"
click node_onboarding_flow "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/OnboardingFlow.tsx"
click node_app_shell "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/AppShell.tsx"
click node_active_sprint "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/ActiveSprintView.tsx"
click node_backlog "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/BacklogGroomingView.tsx"
click node_sprint_planning "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/SprintPlanningView.tsx"
click node_task_detail "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/TaskDetailDrawer.tsx"
click node_new_task "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/NewTaskModal.tsx"
click node_team "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/TeamView.tsx"
click node_settings "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/SettingsView.tsx"
click node_workspace_context "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/WorkspaceContext.tsx"
click node_onboarding_api "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/app/api/onboarding/owner/route.ts"
click node_workspace_api "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/app/api/workspaces/%5Bid%5D/plans/%5BdraftId%5D/approve/route.ts"
click node_plan_logic "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/plan.ts"
click node_repository "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/data/workspace-repository.ts"
click node_mappers "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/mappers.ts"
click node_translations "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/i18n.ts"
click node_supabase_client "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/supabase/client.ts"
click node_supabase_server "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/supabase/server.ts"
click node_supabase_config "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/supabase/config.ts"
click node_database_types "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/types/database.ts"
click node_avatar "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/Avatar.tsx"
click node_signals "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/SignalBadge.tsx"
click node_sidebar "https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/AppSidebar.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_home,node_auth,node_onboarding_gate,node_onboarding_flow,node_app_shell,node_sidebar,node_browser toneBlue
class node_active_sprint,node_backlog,node_sprint_planning,node_task_detail,node_new_task,node_team,node_settings,node_avatar,node_signals,node_supabase toneAmber
class node_workspace_context,node_onboarding_api,node_workspace_api,node_plan_logic toneMint
class node_repository,node_mappers,node_translations,node_local_state,node_supabase_client,node_supabase_server,node_supabase_config,node_database_types toneRose
```

## Components

### Workspace experience

- [Workspace entry](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/app/page.tsx): `app/page.tsx`
- [Authentication gate](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/AuthGate.tsx): `components/AuthGate.tsx`
- [Onboarding gate](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/OnboardingGate.tsx): `components/OnboardingGate.tsx`
- [Owner/member setup](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/OnboardingFlow.tsx): `components/OnboardingFlow.tsx`
- [App shell](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/AppShell.tsx): `components/AppShell.tsx`
- [Workspace navigation](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/AppSidebar.tsx): `components/AppSidebar.tsx`

### Planning and collaboration

- [Active sprint board](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/ActiveSprintView.tsx): `components/ActiveSprintView.tsx`
- [Backlog grooming](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/BacklogGroomingView.tsx): `components/BacklogGroomingView.tsx`
- [Sprint planning](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/SprintPlanningView.tsx): `components/SprintPlanningView.tsx`
- [Task collaboration](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/TaskDetailDrawer.tsx): `components/TaskDetailDrawer.tsx`
- [Task creation](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/NewTaskModal.tsx): `components/NewTaskModal.tsx`
- [Team management](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/TeamView.tsx): `components/TeamView.tsx`
- [Workspace settings](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/SettingsView.tsx): `components/SettingsView.tsx`
- [Member avatars](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/Avatar.tsx): `components/Avatar.tsx`
- [Task signals](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/SignalBadge.tsx): `components/SignalBadge.tsx`

### Workspace services

- [Workspace state](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/components/WorkspaceContext.tsx): `components/WorkspaceContext.tsx`
- [Onboarding routes](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/app/api/onboarding/owner/route.ts): `app/api/onboarding/owner/route.ts`
- [Workspace routes](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/app/api/workspaces/%5Bid%5D/plans/%5BdraftId%5D/approve/route.ts): `app/api/workspaces/[id]/plans/[draftId]/approve/route.ts`
- [Plan processing](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/plan.ts): `lib/plan.ts`

### State and persistence

- [Workspace repository](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/data/workspace-repository.ts): `lib/data/workspace-repository.ts`
- [Database mapping](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/mappers.ts): `lib/mappers.ts`
- [Translations](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/i18n.ts): `lib/i18n.ts`
- **Browser storage**
- [Browser client](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/supabase/client.ts): `lib/supabase/client.ts`
- [Server client](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/supabase/server.ts): `lib/supabase/server.ts`
- [Supabase configuration](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/lib/supabase/config.ts): `lib/supabase/config.ts`
- [Database model](https://github.com/hamzaelmanzari/sprint-blitz/blob/main/types/database.ts): `types/database.ts`

### Other components

- **Workspace user**
- **Supabase Auth and database**

## Connections

- Workspace user → Workspace entry: opens (evidence: `README.md`)
- Workspace entry → Workspace state: provides state (evidence: `app/page.tsx`)
- Workspace entry → Authentication gate: gates access (evidence: `app/page.tsx`)
- Workspace entry → Onboarding gate: checks setup (evidence: `app/page.tsx`)
- Workspace entry → App shell: renders (evidence: `app/page.tsx`)
- Workspace entry → Active sprint board: selects view (evidence: `app/page.tsx`)
- Workspace entry → Backlog grooming: selects view (evidence: `app/page.tsx`)
- Workspace entry → Sprint planning: selects view (evidence: `app/page.tsx`)
- Workspace entry → Team management: selects view (evidence: `app/page.tsx`)
- Workspace entry → Workspace settings: selects view (evidence: `app/page.tsx`)
- Workspace entry → Task collaboration: renders (evidence: `app/page.tsx`)
- Workspace entry → Task creation: renders (evidence: `app/page.tsx`)
- Onboarding gate → Owner/member setup: renders (evidence: `components/OnboardingGate.tsx`)
- Owner/member setup → Onboarding routes: submits setup
- Authentication gate → Workspace state: reads session (evidence: `components/AuthGate.tsx`)
- App shell → Workspace state: reads state (evidence: `components/AppShell.tsx`)
- Active sprint board → Workspace state: reads and updates (evidence: `components/ActiveSprintView.tsx`)
- Backlog grooming → Workspace state: reads and updates (evidence: `components/BacklogGroomingView.tsx`)
- Sprint planning → Workspace state: reads and updates (evidence: `components/SprintPlanningView.tsx`)
- Task collaboration → Workspace state: reads and updates (evidence: `components/TaskDetailDrawer.tsx`)
- Task creation → Workspace state: creates tasks (evidence: `components/NewTaskModal.tsx`)
- Team management → Workspace state: reads and updates (evidence: `components/TeamView.tsx`)
- Workspace settings → Workspace state: reads and updates (evidence: `components/SettingsView.tsx`)
- Workspace navigation → Workspace state: reads navigation (evidence: `components/AppShell.tsx`)
- Active sprint board → Member avatars: renders (evidence: `components/ActiveSprintView.tsx`)
- Active sprint board → Task signals: renders (evidence: `components/ActiveSprintView.tsx`)
- Task collaboration → Member avatars: renders (evidence: `components/TaskDetailDrawer.tsx`)
- Task collaboration → Task signals: renders (evidence: `components/TaskDetailDrawer.tsx`)
- Workspace state → Workspace repository: loads and persists (evidence: `components/WorkspaceContext.tsx`)
- Workspace state → Browser client: creates client (evidence: `components/WorkspaceContext.tsx`)
- Workspace state → Browser storage: reads and writes (evidence: `components/WorkspaceContext.tsx`)
- Workspace repository → Database mapping: maps records (evidence: `lib/data/workspace-repository.ts`)
- Workspace state → Database mapping: converts task values (evidence: `components/WorkspaceContext.tsx`)
- Workspace state → Plan processing: uses planning logic (evidence: `components/WorkspaceContext.tsx`)
- Workspace state → Workspace routes: approves drafts (evidence: `components/WorkspaceContext.tsx`)
- Onboarding routes → Server client: creates client (evidence: `app/api/onboarding/owner/route.ts`)
- Workspace routes → Server client: creates client (evidence: `app/api/workspaces/[id]/plans/[draftId]/approve/route.ts`)
- Browser client → Supabase configuration: requires settings (evidence: `lib/supabase/client.ts`)
- Server client → Supabase configuration: requires settings (evidence: `lib/supabase/server.ts`)
- Browser client → Supabase Auth and database: connects to (evidence: `README.md`)
- Server client → Supabase Auth and database: connects to (evidence: `README.md`)
- Workspace repository → Supabase Auth and database: reads and writes tenant data
- Workspace repository → Database model: uses schema types (evidence: `lib/data/workspace-repository.ts`)
- Database mapping → Database model: maps database records (evidence: `lib/mappers.ts`)
- Workspace state → Translations: loads language support (evidence: `components/WorkspaceContext.tsx`)
