LC-2842 USER 가이드북 결제 결제 플로우 UI 및 API 연동#2157
Hidden character warning
Conversation
- 가이드북 신청폼에 price 스키마 추가 - 프로그램 쿼리, 스토어, 프로그램 카드, 결제 정보 계산 로직에 추가
- deadline(종료일) 없을 시 마감 날짜, Duration 표시 안 함
- 가이드북 카드: 진행 일정 대신 열람 방식으로 노출 - deadline 없으면 "마감까지~남았어요" 비노출 - 쿠폰 입력란 비노출에 가이드북 타입 추가 - 쿠폰 입력란 비노출 시 결제정보 쿠폰할인란도 비노출
- 레거시 전용 useLegacyProgramQuery 훅 추가 (live/challenge 한정) - - ProgramDetailLegacyPage, ApplySection, MobileApplySection에서 레거시 훅 사용으로 수정
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은 가이드북 프로그램에 대한 결제 흐름을 통합하고 UI를 업데이트합니다. 기존 프로그램 신청 및 결제 시스템에 가이드북 유형을 추가하여, 사용자가 가이드북을 구매하고 결제 결과를 확인할 수 있도록 합니다. 이 변경사항은 가이드북 관련 데이터 모델, API 호출, UI 컴포넌트 전반에 걸쳐 이루어졌습니다. 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
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
|
There was a problem hiding this comment.
Code Review
이 PR은 가이드북 상품의 결제 플로우를 추가하는 변경 사항을 담고 있습니다. 전반적으로 새로운 guidebook 프로그램 유형을 지원하기 위해 API, 스키마, UI 컴포넌트들이 잘 수정되었습니다. 특히 payment-input 페이지에서 in 연산자를 사용하여 타입 분기를 처리한 부분은 타입 안정성을 높이는 좋은 예시입니다.
다만, 몇몇 파일에서 as를 사용한 타입 단언이 발견되었습니다. 이는 타입 안정성을 저해하고 잠재적인 버그를 유발할 수 있습니다. useProgramQuery와 같은 훅이 반환하는 Discriminated Union 타입을 활용하여 타입 단언 없이도 안전하게 데이터를 처리하는 방법을 제안드렸습니다. 이는 코드의 예측 가능성과 유지보수성을 높이는 데 도움이 될 것입니다. 자세한 내용은 각 파일에 남긴 리뷰 코멘트를 참고해주세요.
- 프로그램 타입별 실제 존재 필드만 읽어서 ProgramCard props 채우도록 변경
연관 작업