feat: 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선#127
Conversation
- Add RerollRecommendResultRequest/Response types - Add postRerollRecommendResult API function - Add reroll mutation key and mutation options Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add useRerollRecommendResult API hook - Add useRerollRestaurants business logic hook - Derive isMaxReached from useMutationState to avoid race condition - Accumulate display list across successful rerolls - Accept maxRerollCount as injectable prop Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Extract RecommendedRestaurantSection with RerollButton and RestaurantList - Add '다른 맛집 더 보기' button with max reroll count limit - Add '모임 링크 다시 만들기' button to footer - Fix footer layout to prevent clipping with two-button structure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 추천 결과 페이지에 '다른 맛집 더 보기' 기능을 추가하고 레이아웃을 개선하여 사용자 경험을 향상시키는 데 중점을 둡니다. race condition 문제 해결 및 코드 리팩토링을 통해 코드의 유지보수성을 높였습니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
…rate GA tracking Pass rankType externally from RestaurantList so the first item is tracked as 'top' and the rest as 'other', reflecting the flat list structure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
## [2.2.0-beta.2](v2.2.0-beta.1...v2.2.0-beta.2) (2026-03-22) ### Features * 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선 ([#127](#127)) ([1e85982](1e85982))
| initialList, | ||
| }: RecommendedRestaurantSectionProps) => { | ||
| const { displayList, isPending, isMaxReached, handleReroll } = | ||
| useRerollRestaurants({ accessKey, initialList, maxRerollCount: 2 }); |
There was a problem hiding this comment.
maxRerollCount 값으로 하드코딩된 숫자 2를 사용하고 있습니다. 이 값을 MAX_REROLL_COUNT와 같은 이름의 상수로 정의하여 사용하면 코드의 가독성과 유지보수성을 높일 수 있습니다. 관련 상수를 모아두는 파일(예: #/constants/gathering.ts)에 정의하는 것을 권장합니다.
| useRerollRestaurants({ accessKey, initialList, maxRerollCount: 2 }); | |
| useRerollRestaurants({ accessKey, initialList, maxRerollCount: MAX_REROLL_COUNT }); |
References
- 하드코딩된 값(매직 넘버) 대신 명명된 상수를 사용하면 코드의 의도를 명확히 하고, 향후 값이 변경될 때 한 곳에서만 수정하면 되므로 유지보수성이 향상됩니다. 이는 'self-documenting code' 작성에 도움이 됩니다.
## [2.3.0](v2.2.0...v2.3.0) (2026-03-22) ### Features * 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선 ([#127](#127)) ([1e85982](1e85982))
🎯 PR 제목
feat: 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선
📑 작업 상세 내역
기능 추가
버그 수정
useMutationState기반으로 해결합니다리팩토링
recommendedRestaurantSection디렉터리로 분리합니다useRerollRestaurants훅으로 관심사 분리합니다maxRerollCount를 외부 주입 방식으로 구성해 훅 재사용성을 높입니다🙏 리뷰 요청 사항
useMutationState로 race condition을 해결한 방식이 적절한지 검토해주세요.maxRerollCount주입 방식과 현재 상수값(2회)이 기획 의도에 맞는지 확인해주세요.📃 참고 자료
POST /api/v1/recommend-results/reroll{ accessKey, restaurantIds: number[] }(제외할 맛집 ID 목록){ list: Restaurant[] }🖼️ 작업 결과물