-
Notifications
You must be signed in to change notification settings - Fork 3
fix: 주문 페이지 publicCode로 변경 #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fix: 주문 페이지 publicCode로 변경
|
Caution Review failedThe pull request is closed. WalkthroughThe getStore API now accepts a string publicCode and uses /v1/stores/${publicCode}. StorePage consolidates data fetching to getStoreMenus(storeId) and derives storeName and menu list from it. StoreDetailPage updates queries to pass string storeId directly and runs menus query independently. MenuType gains a required publicCode field. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant R as Route/StorePage
participant Q as React Query
participant API as getStoreMenus(storeId)
participant S as Server
R->>Q: useQuery(["storeMenus", storeId], getStoreMenus)
Q->>API: invoke
API->>S: GET /v1/stores/{storeId}/menus
S-->>API: 200 { storeName, menuReadDto, ... }
API-->>Q: data
Q-->>R: menus, isLoading
Note over R: Renders StoreHeader(menus.storeName)<br/>and MenuList(menus.menuReadDto)
sequenceDiagram
autonumber
participant R as Route/StoreDetailPage
participant Q1 as useQuery: getStore(publicCode|string)
participant Q2 as useQuery: getStoreMenus(storeId)
participant API1 as getStore(publicCode)
participant API2 as getStoreMenus(storeId)
participant S as Server
R->>Q1: useQuery(["store", storeId], () => getStore(storeId))
Q1->>API1: invoke with publicCode=storeId
API1->>S: GET /v1/stores/{publicCode}
S-->>API1: store data
API1-->>Q1: data
R->>Q2: useQuery(["storeMenus", storeId], () => getStoreMenus(storeId))
Q2->>API2: invoke
API2->>S: GET /v1/stores/{storeId}/menus
S-->>API2: menus data
API2-->>Q2: data
Note over R: Menus query runs independently of store query
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (4)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
작업 내용
문제점 및 어려움
해결 방안
공유 사항
Summary by CodeRabbit
Refactor
Chores