feat: 추천 결과 페이지 처리 로직 및 실시간 업데이트 기능 구현#105
feat: 추천 결과 페이지 처리 로직 및 실시간 업데이트 기능 구현#105RookieAND merged 18 commits intofeature/proceed-recommend-resultfrom
Conversation
Summary of ChangesHello @RookieAND, 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은 추천 결과 생성 및 표시 과정을 대폭 개선하고, 실시간 업데이트 기능을 도입하여 사용자 경험을 향상시킵니다. 또한, 각 페이지의 에러 처리와 SSR 환경에서의 데이터 관리 효율성을 높여 애플리케이션의 안정성과 성능을 강화했습니다. 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. Changelog
Ignored Files
Activity
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
src/pageComponents/gathering/opinion/PendingViewShowResultButton.tsx
Outdated
Show resolved
Hide resolved
src/pageComponents/gathering/opinion/PendingViewShowResultButton.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
불필요한 주석도 전부 제거해서 변경 사항이 잡혔는데 무시해도 됨!
- useProceedRecommendResult Hook 생성하여 proceed API 호출 및 polling 로직 통합 - useWaitForRecommendResult를 useProceedRecommendResult에 통합하여 중복 제거 - 모든 페이지에서 fetchQuery 사용으로 통일하여 SSR 에러 처리 개선 - 페이지별 redirect 로직 추가 (capacity 및 추천 상태 기반) - 일관된 ErrorCode 처리 (GATHERING_NOT_FOUND, GATHERING_DELETED, RECOMMEND_ALREADY_PROCEEDED 등) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…proceed-recommend-page
* feat: 과반수 이상 의견 제출 시 결과를 생성하도록 하는 API 함수 추가 * feat: 과반수 이상 의견 제출 시 결과를 생성하는 Mutation Option 추가 * feat: usePostProceesRecommendResult Hook 제작 * feat: RecommendResult 상수 추가 및 Result 타입 반영 * feat: 추천 결과 관련 에러 코드 추가 및 상수 파일 수정 - Restaurant, Participant, Recommend 관련 에러 코드 추가 - RecommendationResultStatus import 경로 수정 (대소문자 일치) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * feat: 추천 결과 생성 대기를 위한 Hook 추가 - useWaitForRecommendResult Hook 추가하여 추천 결과 생성 대기 기능 구현 - 폴링 방식으로 추천 결과 상태를 주기적으로 확인 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * feat: error 및 recommendationResult 상수 정의 추가 * fix: toast 를 sonner 패키지가 아닌 util 내 함수로 사용하도록 수정 * fix: 잘못 정의된 ApiError 코드 관련 로직 제거 * feat: 추천 결과 페이지 처리 로직 및 실시간 업데이트 기능 구현 (#105) * feat: 불필요한 메인 랜딩 페이지 error.tsx 제거 * feat: PendingView 내 버튼 컴포넌트를 분리하여 작성하도록 수정 * feat: CompleteView 내 버튼 컴포넌트를 분리하여 작성하도록 수정 * feat: 의견 수합 패널 페이지 내 Server Action 및 Error 처리 로직 추가 * feat: Complete 페이지 내 Server Action 및 Error 처리 로직 추가 * feat: Pending 페이지 내 Server Action 및 Error 처리 로직 추가 * feat: Result 페이지 내 Server Action 및 Error 처리 로직 추가 * feat: SubmissionBottomSheet 컴포넌트 내부에서 자체적으로 useSuspenseQuery 훅을 호출하도록 수정 * feat: 새롭게 분리한 Button 컴포넌트에 대한 index.ts 파일 추가 * feat: 각 페이지 별 클라이언트 컴포넌트에 대해 조건부 로직 제거 * chore: 불필요한 코드 및 import 구문 수정 * refactor: SSR 환경에서 중복 Refetch 방지를 위해 QueryProvider 구문 수정 * fix: toast 를 sonner 패키지가 아닌 util 내 함수로 사용하도록 수정 * fix: 잘못 정의된 ApiError 코드 관련 로직 제거 * refactor: 추천 결과 proceed 로직 통합 및 페이지별 에러 처리 개선 - useProceedRecommendResult Hook 생성하여 proceed API 호출 및 polling 로직 통합 - useWaitForRecommendResult를 useProceedRecommendResult에 통합하여 중복 제거 - 모든 페이지에서 fetchQuery 사용으로 통일하여 SSR 에러 처리 개선 - 페이지별 redirect 로직 추가 (capacity 및 추천 상태 기반) - 일관된 ErrorCode 처리 (GATHERING_NOT_FOUND, GATHERING_DELETED, RECOMMEND_ALREADY_PROCEEDED 등) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: sonner 에서 toast 를 가져왔던 문제를 utils 로 수정 * chore: prettier 포맷에 맞지 않았던 코드를 수정 --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: polling 완료 후 result 페이지 이동 전 캐시 무효화 추가 polling에서 직접 API 호출 시 React Query 캐시가 업데이트되지 않아 result 페이지에서 이전 캐시 데이터(topRecommendation: null)를 사용하는 문제 수정 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
## [2.0.0](v1.5.1...v2.0.0) (2026-02-27) ### ⚠ BREAKING CHANGES * OpinionForm field names changed Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * refactor: update schema field names and exports - foodCategorySchema → categorySchema - dislikedFoodSchema → dislikedCategoriesSchema - preferredMenusSchema → preferredCategoriesSchema - Update opinionFormSchema with new field names - Replace hardcoded "ANY" with CATEGORY.ANY * Schema field names changed Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * refactor: rename component files to use Category naming - FoodCard → CategoryCard - FoodCategoryCarousel → CategoryCarousel - DislikedFoodButton → DislikedCategoryButton Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * refactor: update component export names - FoodCard → CategoryCard - FoodCategoryCarousel → CategoryCarousel - DislikedFoodButton → DislikedCategoryButton - Update component function names to match new file names - Internal logic unchanged (will be updated in next PR) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * refactor: update import references to use new constant names - Update all components to use new constant names: * RANKS → RANK_LIST * RANK_LABELS → RANK_LABEL * FOOD_CATEGORIES → CATEGORY_LIST * FOOD_CATEGORY_LABEL → CATEGORY_LABEL * FOOD_CATEGORY_VALUES → CATEGORY_VALUES * dislikedFoodSchema → dislikedCategoriesSchema * preferredMenusSchema → preferredCategoriesSchema - Update type imports: * FoodCategory → Category - Update form field references: * dislikedFoods → dislikedCategories * preferredMenus → preferredCategories - Fix component imports after file renames: * FoodCategoryCarousel → CategoryCarousel * DislikedFoodButton → DislikedCategoryButton This ensures the build succeeds after type system changes. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * style: run prettier format - Format code according to project prettier rules - No logic changes, only formatting Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> ### Features * 404, 500 에러 페이지 추가 ([#107](#107)) ([e9e5772](e9e5772)) * opinion 랜딩 페이지 UI 업데이트 (로고·lottie·footer) ([#120](#120)) ([2817c50](2817c50)) * SSE Event Registry 시스템 구현 및 마이그레이션 ([#119](#119)) ([178c79c](178c79c)) * SSE 기반 실시간 모임 현황 업데이트 구현 ([#87](#87)) ([0d220e0](0d220e0)) * 결과 페이지 - 투표 결과 섹션 구현 ([#106](#106)) ([c633225](c633225)) * 과반수 이상 의견 제출 시 추천 결과 생성 관련 API, Hook 추가 ([#103](#103)) ([5b31eec](5b31eec)), closes [#105](#105) * 인원 수 선택 시 시각적 피드백 추가 ([e9f6de6](e9f6de6)) * 추천 결과 API response 타입 업데이트 ([#100](#100)) ([1d046ab](1d046ab)), closes [#101](#101) [#102](#102) * 추천 결과 생성 대기 페이지 및 애니메이션 구현 ([#118](#118)) ([a720a76](a720a76)) * 취향 요약 카드 추가 ([#104](#104)) ([816fa96](816fa96)) ### Bug Fixes * 1, 3순위를 선택했으나 2순위를 선택하지 않았을 경우 Validation 을 막지 않았던 문제 수정 ([#113](#113)) ([22e58e8](22e58e8)) * GitHub Actions 워크플로우 개선 및 스타일 가이드 업데이트 ([#91](#91)) ([e6c009e](e6c009e)) * 결과 대기 페이지 내 공유 버튼 스타일을 Tertiary 로 수정 ([#115](#115)) ([a63ddd1](a63ddd1)) * 결과 페이지 - 상단 취향 요약 섹션, 하단 투표 결과 선호 카테고리 노출 순서 로직 수정 ([#117](#117)) ([f5c4a1c](f5c4a1c)) * 모임 인원 초과 및 결과 생성 완료 시 Toast 커스텀 기능 추가 ([#116](#116)) ([6088935](6088935)) * 음식 카테고리 일러스트레이터를 Figma 내 최신 시안으로 수정 ([#114](#114)) ([18f9cc3](18f9cc3)) ### Code Refactoring * opinion 페이지 컴포넌트 구조 개선 및 로직 통합 ([#109](#109)) ([a76f75f](a76f75f)) * PeopleIllustration 캐릭터 배치 및 구조 개선 ([#112](#112)) ([ae95b72](ae95b72)) * ProgressBar 컴포넌트 UI 개선 및 코드 최적화 ([#122](#122)) ([c73de1d](c73de1d)) * SSE 이벤트를 recommend-result-created로 변경 ([#121](#121)) ([222e613](222e613)) * 타입 시스템 리팩토링 - enum을 as const 패턴으로 전환 ([#110](#110)) ([d427378](d427378)), closes [#111](#111)
🎯 PR 제목
feat: 추천 결과 페이지 처리 로직 및 실시간 업데이트 기능 구현
📑 작업 상세 내역
기능 추가
리팩토링
기타 작업
🙏 리뷰 요청 사항