Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 주요 변경 내용 (Key Changes)
이번 Pull Request는 애플리케이션의 사용자 경험 개선 및 기능 확장을 목표로 여러 화면과 API 로직을 수정했습니다. 주요 변경 사항은 다음과 같습니다.
저장된 대상 화면 (
SavedTargetsScreen.js) 개선:QuestionScreen으로 이동하며, 선택된 연락처가 하이라이트됩니다. "취소" 선택 시 하이라이트는 초기화됩니다.질문 화면 (
QuestionScreen.js) 로직 대폭 수정:requestInitialQuestions)를 통해 5개의 초기 질문 동적 생성 및 순차적 질문.QuestionApi.js에requestInitialQuestions함수 부재로 인한TypeError해결.requestNextQuestion)가 동적 생성.FIRST_QUESTION상수 값 변경.QUESTIONS_LIST) 순차 사용 (API 동적 생성 제거).FIRST_QUESTION)은 고정.BASE_QUESTIONS_TEMPLATES)을 사용하되, 각 질문 표시 전 이전 대화 내용 및 사용자 정의 프롬프트 (REFINEMENT_PROMPT_VARIABLE)를 Gemini API (requestRefinedQuestion)에 전달하여 질문을 맥락에 맞게 "개선"하여 표시합니다.REFINEMENT_PROMPT_VARIABLE의 내용을 한국어에서 영어로 변경했습니다.QuestionApi.js의 시스템 프롬프트를 수정했습니다.BASE_QUESTIONS_TEMPLATES배열 길이 불일치로 인한TypeError: Cannot read property 'replaceAll' of undefined오류를 해결했습니다. (배열 요소 추가 및 인덱스 검사 로직)API 호출 로직 (
QuestionApi.js) 수정:requestRefinedQuestion함수를 현재 질문 생성 로직에 맞춰 구현 및 사용합니다.requestInitialQuestions및requestNextQuestion함수는 현재 주석 처리되었습니다.디자인 통일화:
DeviceContactsScreen.js의 디자인 가이드 (배경색#FFFCF4, 주요 텍스트#4A4031, 강조색#B08D57등)를QuestionScreen.js와TopicResultScreen.js에 적용하여 시각적 일관성을 높였습니다.✅ 체크리스트 (Checklist)
📝 추가 정보 (Additional Notes)
QuestionApi.js의requestInitialQuestions와requestNextQuestion함수는 현재 사용되지 않아 주석 처리되어 있습니다. 추후 필요에 따라 재활성화하거나 삭제할 수 있습니다.REFINEMENT_PROMPT_VARIABLE의 내용은 영어로 작성되어 있으며, Gemini API를 통해 최종적으로 영어 질문을 생성하도록 설정되어 있습니다.