-
Notifications
You must be signed in to change notification settings - Fork 3
feat: 컴포넌트 내 알러지 처리 업데이트 및 관리 편의를 위한 AllergyType enum 추가 #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Walkthrough이 변경사항은 사용자 알레르기 정보를 일관성 있게 처리하도록 여러 컴포넌트와 백그라운드 스크립트를 수정합니다. 알레르기 데이터가 항상 배열 형태로 저장되고 API 요청에 포함되도록 하였으며, 알레르기 선택 폼에서는 알레르기 값을 enum으로 변환하여 저장하도록 변경되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AllergySelectForm
participant chrome.storage.local
participant FoodComponent
participant HealthComponent
participant BackgroundScript
participant HealthFoodAPI
User->>AllergySelectForm: 알레르기 선택
AllergySelectForm->>chrome.storage.local: 알레르기 enum 배열로 저장
User->>FoodComponent: 식품 정보 요청
FoodComponent->>chrome.storage.local: "birthYear", "gender", "Allergies" 조회
FoodComponent->>BackgroundScript: allergies 포함하여 데이터 요청
BackgroundScript->>HealthFoodAPI: allergies 배열 포함 POST 요청
User->>HealthComponent: 건강 정보 요청
HealthComponent->>chrome.storage.local: "birthYear", "gender", "Allergies" 조회
HealthComponent->>BackgroundScript: allergies 포함하여 데이터 요청
BackgroundScript->>HealthFoodAPI: allergies 배열 포함 POST 요청
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/background/index.tsOops! Something went wrong! :( ESLint: 9.27.0 Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it. src/components/productComponents/foodComponent.tsxOops! Something went wrong! :( ESLint: 9.27.0 Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it. src/tabs/myInfo/components/AllergySelectForm.tsxOops! Something went wrong! :( ESLint: 9.27.0 Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🔇 Additional comments (10)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🧐 체크리스트
yarn build또는npm run build실행 후 정상적으로 동작하는지 확인했나요?yarn test)yarn lint및yarn prettify실행 후 문제가 없나요?feat:,fix:,chore:등 커밋 컨벤션을 따르고 있나요?README.md또는 관련 문서를 업데이트했나요?Summary by CodeRabbit
신규 기능
개선 사항