Repository navigation
[global] AI 식단 기능 강조 및 하드코딩 데이터 제거 - #97
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
💡 PR 요약
AI 식단 생성 기능을 눈에 잘 띄게 강조하고, 하드코딩된 데이터(KAMIS 폴백 가격 등)와 이에 의존해 동작하지 않던 UI를 제거하였습니다. 또한 AI 생성 결과 요약이 실제 저장된 식단 수를 반영하도록 수정하였습니다.
AI 식단 생성메뉴 그라데이션 강조, 대시보드 AI 배너 추가📋 작업 내용
AI 기능 강조
AI 식단 생성메뉴에 항상 보이는 보라-파랑 그라데이션 강조 스타일을 적용하였습니다 (NavItemhighlight옵션 추가)AiMealBanner를 추가하고, 헤더 첫 번째 버튼을 그라데이션AI 식단 생성버튼으로 교체하였습니다식단표에 적용버튼을/meal로 이동하는식단 관리에서 확인링크로 변경하였습니다AI 생성 결과 신뢰성 개선
새로 생성된 식단 수로 표시하도록generator.store를 수정하였습니다SUCCEEDED여도 신규 식단이 0건이면 성공으로 위장하지 않고 백엔드 확인 안내를 표시합니다notice를 표시합니다DEMO_RECIPES(샘플 메뉴 8개) 기준임을 안내 문구로 명시하였습니다dietDate형식 편차에 대비해 API 경계에서YYYY-MM-DD정규화를 추가하였습니다하드코딩 데이터 제거
fallback-snapshot.ts(8개 품목 고정 가격)를 삭제하고,/api/kamis/prices가 실제 조회에 성공한 품목만 반환하도록 변경하였습니다 (PriceSource:kamis/partial/unavailable)baselinePrice를 현재가와 동일하게 두어 가짜 등락률이 생기지 않게 하였습니다예상 폐기 감소량·예산 절감 예상액카드, 예산 페이지 절감액 타일·PriceSpikePanel, 발주 근거의KAMIS 가격 급등분기, 예산 집행 리포트(엑셀·PDF·미리보기)의 절감액 항목savings.ts,substitutes.ts를 삭제하였습니다새로워진 기능섹션을 삭제하였습니다🤝 리뷰 시 참고사항
SUCCEEDED인데/diets에 식단이 저장되지 않는 현상을 확인하였습니다. 스웨거 기준 식단 저장은 AI 서버가 호출하는POST /diets/ai-callback(X-Internal-Token인증) 경로에서 이루어지므로, 콜백 미호출 또는 401/400 여부를 백엔드에서 확인해 주시면 감사하겠습니다npx tsc --noEmit,npm run lint,npm run build통과를 확인하였습니다