# arunbhuvanesh/l1-interview_starter_files architecture

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

- Interactive diagram: https://gitdiagram.com/arunbhuvanesh/l1-interview_starter_files
- Repository: https://github.com/arunbhuvanesh/l1-interview_starter_files

## Overview

This is a React deployment-queue portal for release engineers. Its active workflow starts at the app entry, loads mock deployment records through React Query, applies application search and status filtering, sorts the visible results, and renders deployment cards with loading, error, and empty states. The queue also summarizes total and per-status counts. The API is a delayed mock-data adapter, not a demonstrated connection to a deployment service. UI primitives are shown as card dependencies; unsampled modules are not assigned unverified behavior.

Main entry points: [`src/exercise/DeploymentCard.tsx`](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/exercise/DeploymentCard.tsx) (Deployment Card), [`src/exercise/example3.tsx`](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/exercise/example3.tsx) (Queue Page), [`src/main.tsx`](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/main.tsx) (React Entry), [`src/App.tsx`](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/App.tsx) (App Root)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["React Entry<br/>[main.tsx]"]
  node_app_root["App Root<br/>[App.tsx]"]
  node_query_provider["Query Provider<br/>[QueryProvider.tsx]"]
end

subgraph group_queue["Queue Workflow"]
  node_queue_page["Queue Page<br/>[example3.tsx]"]
  node_filter_hook["Search Filter"]
end

subgraph group_data["Deployment Data"]
  node_deployment_api["Mock API<br/>[diploymentApi.ts]"]
  node_mock_records["Mock Records<br/>[MOCK_DATA.ts]"]
end

subgraph group_ui["Presentation"]
  node_deployment_card["Deployment Card<br/>[DeploymentCard.tsx]"]
  node_card_ui["Card UI<br/>[card.tsx]"]
  node_badge_ui["Badge UI<br/>[badge.tsx]"]
  node_button_ui["Button UI<br/>[button.tsx]"]
  node_separator_ui["Separator UI<br/>[separator.tsx]"]
  node_highlight_text["Search Highlight<br/>[HighlightText.tsx]"]
end

node_release_engineer(("Release Engineer"))

node_release_engineer -->|"opens portal"| node_entry
node_entry -->|"wraps app"| node_query_provider
node_entry -->|"renders"| node_app_root
node_app_root -->|"renders"| node_queue_page
node_queue_page -->|"fetches records"| node_deployment_api
node_deployment_api -->|"returns data"| node_mock_records
node_queue_page -->|"filters by name"| node_filter_hook
node_queue_page -->|"renders results"| node_deployment_card
node_deployment_card -->|"composes"| node_card_ui
node_deployment_card -->|"shows status"| node_badge_ui
node_deployment_card -->|"offers advance"| node_button_ui
node_deployment_card -->|"separates details"| node_separator_ui
node_deployment_card -->|"highlights search"| node_highlight_text

click node_entry "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/main.tsx"
click node_app_root "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/App.tsx"
click node_query_provider "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/providers/QueryProvider.tsx"
click node_queue_page "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/exercise/example3.tsx"
click node_filter_hook "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/hooks/useDeploymentFilters.ts"
click node_deployment_card "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/exercise/DeploymentCard.tsx"
click node_deployment_api "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/api/diploymentApi.ts"
click node_mock_records "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/data/MOCK_DATA.ts"
click node_card_ui "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/card.tsx"
click node_badge_ui "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/badge.tsx"
click node_button_ui "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/button.tsx"
click node_separator_ui "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/separator.tsx"
click node_highlight_text "https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/HighlightText.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_entry,node_app_root,node_query_provider toneBlue
class node_queue_page,node_filter_hook toneAmber
class node_deployment_api,node_mock_records toneMint
class node_deployment_card,node_card_ui,node_badge_ui,node_button_ui,node_separator_ui,node_highlight_text toneRose
class node_release_engineer toneIndigo
```

## Components

### Application

- [React Entry](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/main.tsx): `src/main.tsx`
- [App Root](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/App.tsx): `src/App.tsx`
- [Query Provider](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/providers/QueryProvider.tsx): `src/providers/QueryProvider.tsx`

### Queue Workflow

- [Queue Page](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/exercise/example3.tsx): `src/exercise/example3.tsx`
- [Search Filter](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/hooks/useDeploymentFilters.ts): `src/hooks/useDeploymentFilters.ts`

### Deployment Data

- [Mock API](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/api/diploymentApi.ts): `src/api/diploymentApi.ts`
- [Mock Records](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/data/MOCK_DATA.ts): `src/data/MOCK_DATA.ts`

### Presentation

- [Deployment Card](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/exercise/DeploymentCard.tsx): `src/exercise/DeploymentCard.tsx`
- [Card UI](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/card.tsx): `src/components/ui/card.tsx`
- [Badge UI](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/badge.tsx): `src/components/ui/badge.tsx`
- [Button UI](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Separator UI](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/separator.tsx): `src/components/ui/separator.tsx`
- [Search Highlight](https://github.com/arunbhuvanesh/l1-interview_starter_files/blob/main/src/components/ui/HighlightText.tsx): `src/components/ui/HighlightText.tsx`

### Other components

- **Release Engineer**

## Connections

- Release Engineer → React Entry: opens portal (evidence: `README.md`)
- React Entry → Query Provider: wraps app (evidence: `src/main.tsx`)
- React Entry → App Root: renders (evidence: `src/main.tsx`)
- App Root → Queue Page: renders (evidence: `src/App.tsx`)
- Queue Page → Mock API: fetches records (evidence: `src/exercise/example3.tsx`)
- Mock API → Mock Records: returns data (evidence: `src/api/diploymentApi.ts`)
- Queue Page → Search Filter: filters by name (evidence: `src/exercise/example3.tsx`)
- Queue Page → Deployment Card: renders results (evidence: `src/exercise/example3.tsx`)
- Deployment Card → Card UI: composes (evidence: `src/exercise/DeploymentCard.tsx`)
- Deployment Card → Badge UI: shows status (evidence: `src/exercise/DeploymentCard.tsx`)
- Deployment Card → Button UI: offers advance (evidence: `src/exercise/DeploymentCard.tsx`)
- Deployment Card → Separator UI: separates details (evidence: `src/exercise/DeploymentCard.tsx`)
- Deployment Card → Search Highlight: highlights search (evidence: `src/exercise/DeploymentCard.tsx`)
