How milpick-ko/milpick-front works
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: App.jsx App Router · SearchPage.jsx Guided Search · DirectSearchPage.jsx Direct Search · DetailPage.jsx Specialty Details
Components 16
Navigation
- App Router
src/App.jsx - Landing Page
src/pages/StartPage.jsx - Specialty Details
src/pages/DetailPage.jsx
Guided Matching
- Guided Search
src/pages/SearchPage.jsx - Search State
src/context/SearchContext.jsx
Direct Browse
- Direct Search
src/pages/DirectSearchPage.jsx - Browse State
src/context/DirectSearchContext.jsx
Shared UI and State
- Site Header
src/components/Header.jsx - Specialty Card
src/components/ResultCard.jsx - Text Formatter
src/utils/formatters.jsx - Alert State
src/context/AlertContext.jsx - Alert Modal
src/components/AlertModal.jsx - Site Footer
src/components/Footer.jsx - API Config
src/utils/config.jsx
Other components
- Visitor
- MILPICK API
Connections 30
- Visitor → App Router: opens
- App Router → Landing Page: routes to
src/App.jsx - App Router → Guided Search: routes to
src/App.jsx - App Router → Direct Search: routes to
src/App.jsx - App Router → Specialty Details: routes to
src/App.jsx - App Router → Search State: provides state
src/App.jsx - App Router → Browse State: provides state
src/App.jsx - App Router → Alert State: provides alerts
src/App.jsx - Landing Page → Site Header: renders
src/pages/StartPage.jsx - Landing Page → Site Footer: renders
src/pages/StartPage.jsx - Landing Page → Guided Search: navigates to
src/pages/StartPage.jsx - Site Header → Guided Search: navigates to
src/components/Header.jsx - Site Header → Direct Search: navigates to
src/components/Header.jsx - Guided Search → Search State: uses state
src/pages/SearchPage.jsx - Guided Search → Alert State: uses alerts
src/pages/SearchPage.jsx - Guided Search → Specialty Card: renders results
src/pages/SearchPage.jsx - Search State → MILPICK API: loads fields
src/context/SearchContext.jsx - Search State → API Config: reads endpoint
src/context/SearchContext.jsx - Direct Search → Browse State: uses state
src/pages/DirectSearchPage.jsx - Direct Search → Specialty Card: renders results
src/pages/DirectSearchPage.jsx - Direct Search → Site Header: renders
src/pages/DirectSearchPage.jsx - Direct Search → Site Footer: renders
src/pages/DirectSearchPage.jsx - Browse State → MILPICK API: loads specialties
src/context/DirectSearchContext.jsx - Browse State → API Config: reads endpoint
src/context/DirectSearchContext.jsx - Specialty Card → Specialty Details: navigates with result
src/components/ResultCard.jsx - Specialty Details → Text Formatter: formats text
src/pages/DetailPage.jsx - Specialty Details → Site Header: renders
src/pages/DetailPage.jsx - Specialty Details → Site Footer: renders
src/pages/DetailPage.jsx - Alert State → Alert Modal: renders modal
src/context/AlertContext.jsx - Guided Search → Site Footer: renders
src/pages/SearchPage.jsx