# milpick-ko/milpick-front architecture

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

- Interactive diagram: https://gitdiagram.com/milpick-ko/milpick-front
- Repository: https://github.com/milpick-ko/milpick-front

## Overview

MILPICK is a React web app for finding Korean Army specialties by fit or by direct lookup. Users can start from the landing page, enter recruitment, major/interest, and physical-condition criteria in guided search, then review results and open a specialty detail; alternatively, they can search the full specialty list by name or code. The contexts load shared search data and the full specialty list from an external API. The excerpts do not show the guided-search request or filtering implementation in full, so those backend interactions are not asserted here.

Main entry points: [`src/App.jsx`](https://github.com/milpick-ko/milpick-front/blob/main/src/App.jsx) (App Router), [`src/pages/SearchPage.jsx`](https://github.com/milpick-ko/milpick-front/blob/main/src/pages/SearchPage.jsx) (Guided Search), [`src/pages/DirectSearchPage.jsx`](https://github.com/milpick-ko/milpick-front/blob/main/src/pages/DirectSearchPage.jsx) (Direct Search), [`src/pages/DetailPage.jsx`](https://github.com/milpick-ko/milpick-front/blob/main/src/pages/DetailPage.jsx) (Specialty Details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation"]
  node_app["App Router<br/>[App.jsx]"]
  node_start["Landing Page<br/>[StartPage.jsx]"]
  node_detail["Specialty Details<br/>[DetailPage.jsx]"]
end

subgraph group_guided["Guided Matching"]
  node_searchpage["Guided Search<br/>[SearchPage.jsx]"]
  node_searchstate["Search State<br/>[SearchContext.jsx]"]
end

subgraph group_browse["Direct Browse"]
  node_directpage["Direct Search"]
  node_directstate["Browse State"]
end

subgraph group_shared["Shared UI and State"]
  node_header["Site Header<br/>[Header.jsx]"]
  node_resultcard["Specialty Card<br/>[ResultCard.jsx]"]
  node_formatter["Text Formatter<br/>[formatters.jsx]"]
  node_alertstate["Alert State<br/>[AlertContext.jsx]"]
  node_alertmodal["Alert Modal<br/>[AlertModal.jsx]"]
  node_footer["Site Footer<br/>[Footer.jsx]"]
  node_config["API Config<br/>[config.jsx]"]
end

node_visitor(("Visitor"))
node_api{{"MILPICK API"}}

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_start
node_app -->|"routes to"| node_searchpage
node_app -->|"routes to"| node_directpage
node_app -->|"routes to"| node_detail
node_app -->|"provides state"| node_searchstate
node_app -->|"provides state"| node_directstate
node_app -->|"provides alerts"| node_alertstate
node_start -->|"renders"| node_header
node_start -->|"renders"| node_footer
node_start -->|"navigates to"| node_searchpage
node_header -->|"navigates to"| node_searchpage
node_header -->|"navigates to"| node_directpage
node_searchpage -->|"uses state"| node_searchstate
node_searchpage -->|"uses alerts"| node_alertstate
node_searchpage -->|"renders results"| node_resultcard
node_searchstate -->|"loads fields"| node_api
node_searchstate -->|"reads endpoint"| node_config
node_directpage -->|"uses state"| node_directstate
node_directpage -->|"renders results"| node_resultcard
node_directpage -->|"renders"| node_header
node_directpage -->|"renders"| node_footer
node_directstate -->|"loads specialties"| node_api
node_directstate -->|"reads endpoint"| node_config
node_resultcard -->|"navigates with result"| node_detail
node_detail -->|"formats text"| node_formatter
node_detail -->|"renders"| node_header
node_detail -->|"renders"| node_footer
node_alertstate -->|"renders modal"| node_alertmodal
node_searchpage -->|"renders"| node_footer

click node_app "https://github.com/milpick-ko/milpick-front/blob/main/src/App.jsx"
click node_start "https://github.com/milpick-ko/milpick-front/blob/main/src/pages/StartPage.jsx"
click node_header "https://github.com/milpick-ko/milpick-front/blob/main/src/components/Header.jsx"
click node_searchpage "https://github.com/milpick-ko/milpick-front/blob/main/src/pages/SearchPage.jsx"
click node_searchstate "https://github.com/milpick-ko/milpick-front/blob/main/src/context/SearchContext.jsx"
click node_directpage "https://github.com/milpick-ko/milpick-front/blob/main/src/pages/DirectSearchPage.jsx"
click node_directstate "https://github.com/milpick-ko/milpick-front/blob/main/src/context/DirectSearchContext.jsx"
click node_resultcard "https://github.com/milpick-ko/milpick-front/blob/main/src/components/ResultCard.jsx"
click node_detail "https://github.com/milpick-ko/milpick-front/blob/main/src/pages/DetailPage.jsx"
click node_formatter "https://github.com/milpick-ko/milpick-front/blob/main/src/utils/formatters.jsx"
click node_alertstate "https://github.com/milpick-ko/milpick-front/blob/main/src/context/AlertContext.jsx"
click node_alertmodal "https://github.com/milpick-ko/milpick-front/blob/main/src/components/AlertModal.jsx"
click node_footer "https://github.com/milpick-ko/milpick-front/blob/main/src/components/Footer.jsx"
click node_config "https://github.com/milpick-ko/milpick-front/blob/main/src/utils/config.jsx"

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_start,node_detail toneBlue
class node_searchpage,node_searchstate toneAmber
class node_directpage,node_directstate,node_api toneMint
class node_header,node_resultcard,node_formatter,node_alertstate,node_alertmodal,node_footer,node_config toneRose
class node_visitor toneIndigo
```

## Components

### Navigation

- [App Router](https://github.com/milpick-ko/milpick-front/blob/main/src/App.jsx): `src/App.jsx`
- [Landing Page](https://github.com/milpick-ko/milpick-front/blob/main/src/pages/StartPage.jsx): `src/pages/StartPage.jsx`
- [Specialty Details](https://github.com/milpick-ko/milpick-front/blob/main/src/pages/DetailPage.jsx): `src/pages/DetailPage.jsx`

### Guided Matching

- [Guided Search](https://github.com/milpick-ko/milpick-front/blob/main/src/pages/SearchPage.jsx): `src/pages/SearchPage.jsx`
- [Search State](https://github.com/milpick-ko/milpick-front/blob/main/src/context/SearchContext.jsx): `src/context/SearchContext.jsx`

### Direct Browse

- [Direct Search](https://github.com/milpick-ko/milpick-front/blob/main/src/pages/DirectSearchPage.jsx): `src/pages/DirectSearchPage.jsx`
- [Browse State](https://github.com/milpick-ko/milpick-front/blob/main/src/context/DirectSearchContext.jsx): `src/context/DirectSearchContext.jsx`

### Shared UI and State

- [Site Header](https://github.com/milpick-ko/milpick-front/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Specialty Card](https://github.com/milpick-ko/milpick-front/blob/main/src/components/ResultCard.jsx): `src/components/ResultCard.jsx`
- [Text Formatter](https://github.com/milpick-ko/milpick-front/blob/main/src/utils/formatters.jsx): `src/utils/formatters.jsx`
- [Alert State](https://github.com/milpick-ko/milpick-front/blob/main/src/context/AlertContext.jsx): `src/context/AlertContext.jsx`
- [Alert Modal](https://github.com/milpick-ko/milpick-front/blob/main/src/components/AlertModal.jsx): `src/components/AlertModal.jsx`
- [Site Footer](https://github.com/milpick-ko/milpick-front/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [API Config](https://github.com/milpick-ko/milpick-front/blob/main/src/utils/config.jsx): `src/utils/config.jsx`

### Other components

- **Visitor**
- **MILPICK API**

## Connections

- Visitor → App Router: opens
- App Router → Landing Page: routes to (evidence: `src/App.jsx`)
- App Router → Guided Search: routes to (evidence: `src/App.jsx`)
- App Router → Direct Search: routes to (evidence: `src/App.jsx`)
- App Router → Specialty Details: routes to (evidence: `src/App.jsx`)
- App Router → Search State: provides state (evidence: `src/App.jsx`)
- App Router → Browse State: provides state (evidence: `src/App.jsx`)
- App Router → Alert State: provides alerts (evidence: `src/App.jsx`)
- Landing Page → Site Header: renders (evidence: `src/pages/StartPage.jsx`)
- Landing Page → Site Footer: renders (evidence: `src/pages/StartPage.jsx`)
- Landing Page → Guided Search: navigates to (evidence: `src/pages/StartPage.jsx`)
- Site Header → Guided Search: navigates to (evidence: `src/components/Header.jsx`)
- Site Header → Direct Search: navigates to (evidence: `src/components/Header.jsx`)
- Guided Search → Search State: uses state (evidence: `src/pages/SearchPage.jsx`)
- Guided Search → Alert State: uses alerts (evidence: `src/pages/SearchPage.jsx`)
- Guided Search → Specialty Card: renders results (evidence: `src/pages/SearchPage.jsx`)
- Search State → MILPICK API: loads fields (evidence: `src/context/SearchContext.jsx`)
- Search State → API Config: reads endpoint (evidence: `src/context/SearchContext.jsx`)
- Direct Search → Browse State: uses state (evidence: `src/pages/DirectSearchPage.jsx`)
- Direct Search → Specialty Card: renders results (evidence: `src/pages/DirectSearchPage.jsx`)
- Direct Search → Site Header: renders (evidence: `src/pages/DirectSearchPage.jsx`)
- Direct Search → Site Footer: renders (evidence: `src/pages/DirectSearchPage.jsx`)
- Browse State → MILPICK API: loads specialties (evidence: `src/context/DirectSearchContext.jsx`)
- Browse State → API Config: reads endpoint (evidence: `src/context/DirectSearchContext.jsx`)
- Specialty Card → Specialty Details: navigates with result (evidence: `src/components/ResultCard.jsx`)
- Specialty Details → Text Formatter: formats text (evidence: `src/pages/DetailPage.jsx`)
- Specialty Details → Site Header: renders (evidence: `src/pages/DetailPage.jsx`)
- Specialty Details → Site Footer: renders (evidence: `src/pages/DetailPage.jsx`)
- Alert State → Alert Modal: renders modal (evidence: `src/context/AlertContext.jsx`)
- Guided Search → Site Footer: renders (evidence: `src/pages/SearchPage.jsx`)
