Skip to content

feat: 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선#127

Merged
youngminss merged 4 commits intodevelopfrom
feature/inprovement-result-page
Mar 22, 2026
Merged

feat: 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선#127
youngminss merged 4 commits intodevelopfrom
feature/inprovement-result-page

Conversation

@youngminss
Copy link
Copy Markdown
Member

🎯 PR 제목

feat: 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선

📑 작업 상세 내역

  • 기능 추가

    • 추천 결과 페이지에 '다른 맛집 더 보기' 버튼을 추가합니다
    • 더 보기 시 새 맛집을 기존 리스트 하단에 누적 표시합니다
    • 최대 사용 횟수 초과 시 버튼을 비활성화하고 안내 문구를 표시합니다
    • 결과 페이지 footer에 '모임 링크 다시 만들기' 버튼을 추가합니다
  • 버그 수정

    • 버튼 활성화 상태 race condition을 useMutationState 기반으로 해결합니다
    • footer 2개 버튼 구조에서 레이아웃이 잘리던 문제를 수정합니다
  • 리팩토링

    • Restaurant List Section을 recommendedRestaurantSection 디렉터리로 분리합니다
    • reroll 비즈니스 로직을 useRerollRestaurants 훅으로 관심사 분리합니다
    • maxRerollCount를 외부 주입 방식으로 구성해 훅 재사용성을 높입니다

🙏 리뷰 요청 사항

  • useMutationState로 race condition을 해결한 방식이 적절한지 검토해주세요.
  • maxRerollCount 주입 방식과 현재 상수값(2회)이 기획 의도에 맞는지 확인해주세요.

📃 참고 자료

  • API: POST /api/v1/recommend-results/reroll
    • Request: { accessKey, restaurantIds: number[] } (제외할 맛집 ID 목록)
    • Response: { list: Restaurant[] }

🖼️ 작업 결과물

youngminss and others added 3 commits March 23, 2026 00:12
- 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>
@youngminss youngminss added the ✨ Feature 기능 개발 label Mar 22, 2026
@youngminss youngminss self-assigned this Mar 22, 2026
@youngminss youngminss requested a review from RookieAND March 22, 2026 15:18
@github-actions github-actions bot added ✨ Feature 기능 개발 ☑️ Need Review 작업이 완료되어 리뷰를 기다리고 있는 PR 입니다 and removed ✨ Feature 기능 개발 labels Mar 22, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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

  • 기능 추가: 추천 결과 페이지에 '다른 맛집 더 보기' 버튼을 추가하여, 사용자가 새로운 맛집 추천을 받을 수 있도록 했습니다. 더 보기 기능은 기존 리스트 하단에 누적 표시되며, 최대 사용 횟수 초과 시 버튼이 비활성화됩니다. 또한, 결과 페이지 footer에 '모임 링크 다시 만들기' 버튼을 추가했습니다.
  • 버그 수정: useMutationState를 사용하여 버튼 활성화 상태의 race condition을 해결하고, footer의 두 버튼 구조에서 레이아웃이 잘리던 문제를 수정했습니다.
  • 리팩토링: Restaurant List Section을 recommendedRestaurantSection 디렉터리로 분리하고, reroll 비즈니스 로직을 useRerollRestaurants 훅으로 분리하여 관심사를 분리했습니다. maxRerollCount를 외부 주입 방식으로 구성하여 훅의 재사용성을 높였습니다.

🧠 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 Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@youngminss youngminss changed the base branch from main to develop March 22, 2026 15:19
@github-actions github-actions bot added ✨ Feature 기능 개발 and removed ✨ Feature 기능 개발 labels Mar 22, 2026
…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>
@github-actions github-actions bot removed the ☑️ Need Review 작업이 완료되어 리뷰를 기다리고 있는 PR 입니다 label Mar 22, 2026
@youngminss youngminss added the ☑️ Need Review 작업이 완료되어 리뷰를 기다리고 있는 PR 입니다 label Mar 22, 2026
@youngminss youngminss merged commit 1e85982 into develop Mar 22, 2026
6 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 22, 2026
## [2.2.0-beta.2](v2.2.0-beta.1...v2.2.0-beta.2) (2026-03-22)

### Features

* 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선 ([#127](#127)) ([1e85982](1e85982))
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

코드 변경 사항을 검토했으며, 유지보수성 향상을 위한 한 가지 의견을 review_comments에 추가했습니다.

initialList,
}: RecommendedRestaurantSectionProps) => {
const { displayList, isPending, isMaxReached, handleReroll } =
useRerollRestaurants({ accessKey, initialList, maxRerollCount: 2 });
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

maxRerollCount 값으로 하드코딩된 숫자 2를 사용하고 있습니다. 이 값을 MAX_REROLL_COUNT와 같은 이름의 상수로 정의하여 사용하면 코드의 가독성과 유지보수성을 높일 수 있습니다. 관련 상수를 모아두는 파일(예: #/constants/gathering.ts)에 정의하는 것을 권장합니다.

Suggested change
useRerollRestaurants({ accessKey, initialList, maxRerollCount: 2 });
useRerollRestaurants({ accessKey, initialList, maxRerollCount: MAX_REROLL_COUNT });
References
  1. 하드코딩된 값(매직 넘버) 대신 명명된 상수를 사용하면 코드의 의도를 명확히 하고, 향후 값이 변경될 때 한 곳에서만 수정하면 되므로 유지보수성이 향상됩니다. 이는 'self-documenting code' 작성에 도움이 됩니다.

github-actions bot pushed a commit that referenced this pull request Mar 22, 2026
## [2.3.0](v2.2.0...v2.3.0) (2026-03-22)

### Features

* 결과 페이지 맛집 더 보기 기능 추가 및 레이아웃 개선 ([#127](#127)) ([1e85982](1e85982))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 개발 ☑️ Need Review 작업이 완료되어 리뷰를 기다리고 있는 PR 입니다

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant