Conversation
IISweetHeartII
commented
Jan 10, 2026
- /recommendations/{id}/complete → /memories API로 변경
- 백엔드에 complete API가 없어서 memories API 사용
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary of ChangesHello @IISweetHeartII, 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은 추천 페이지에서 목표 달성 완료 시 호출되는 API 엔드포인트를 수정하여, 백엔드에 존재하지 않는 API를 호출하는 문제를 해결합니다. 기존의 Highlights
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
|
| formData.append("request", JSON.stringify({ memo })); | ||
| // POST /memories API 형식에 맞게 request 파라미터 설정 | ||
| const content = memo || `"${item.content}" 목표 성취 완료!`; | ||
| formData.append("request", JSON.stringify({ content, candyColor: "SPECIAL" })); |
There was a problem hiding this comment.
하드코딩된 문자열 "SPECIAL"을 사용하기보다, 상수(constant)로 정의하여 사용하는 것이 좋습니다. 예를 들어 src/constants/candy.ts와 같은 파일에 상수를 정의하고 가져와서 사용하면, 코드의 일관성을 유지하고 오타와 같은 실수를 방지할 수 있습니다. 이는 레포지토리 스타일 가이드의 상수 네이밍 컨벤션과도 일치합니다. 제안된 코드를 적용하려면 SPECIAL_CANDY_COLOR 상수를 적절한 위치에 정의하고 import해야 합니다.
| formData.append("request", JSON.stringify({ content, candyColor: "SPECIAL" })); | |
| formData.append("request", JSON.stringify({ content, candyColor: SPECIAL_CANDY_COLOR })); |
References
- 상수는 UPPER_SNAKE_CASE 표기법을 사용해야 합니다. 예:
const API_URL = "..."(link)