Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
📝 WalkthroughWalkthrough구매 페이지의 mock 데이터를 API 호출로 전환하고, 데이터 타입을 Changes
Sequence DiagramsequenceDiagram
participant User
participant PurchasePage as Purchase Page
participant API as Store API
participant StoreModule as Store Module
participant PurchaseContent as Purchase Content
participant BusinessHours as Business Hours Utils
User->>PurchasePage: Navigate to purchase (storeId, selectedMenuId)
PurchasePage->>PurchasePage: Validate storeId & selectedMenuId (isFinite)
alt Validation Fails
PurchasePage->>User: notFound()
else Validation Passes
PurchasePage->>StoreModule: getStoreDetail(storeId)
StoreModule->>API: GET /store/{storeId}
API-->>StoreModule: StoreRespDTO (with businessHours, randomBoxes)
StoreModule-->>PurchasePage: response.data
PurchasePage->>PurchasePage: Search randomBoxes by boxId === selectedMenuId
alt Menu Found
PurchasePage->>PurchaseContent: Pass store (StoreRespDTO) & menu (StoreRandomBoxRespDTO)
PurchaseContent->>BusinessHours: parseBusinessHours(store.businessHours)
BusinessHours-->>PurchaseContent: BusinessHoursValue (day → timeString)
PurchaseContent->>PurchaseContent: useMemo: getTodayPickupTimeText(businessHours)
PurchaseContent->>PurchaseContent: Compute pickupTimeText
PurchaseContent->>PurchaseContent: Render PurchaseOrderCard & PurchaseCompleteModal
PurchaseContent->>PurchaseContent: Pass pickupTimeText to both components
PurchaseOrderCard->>User: Display boxName, stock, pickupTimeText
PurchaseCompleteModal->>User: Display boxName, pickup info with pickupTimeText
else Menu Not Found
PurchasePage->>User: notFound()
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ 작업 내용
📝 Description
🚀 설계 의도 및 개선점
📸 스크린샷 (선택)
📎 기타 참고사항
Fixes #88
Summary by CodeRabbit
릴리스 노트