feat: 부위별 항목 분리 UX 개선#17
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
배경(Why)
현재 구조는 같은 음식 안에서 부위(과육/씨앗)를 상세 진입 후에만 확인할 수 있어, 검색 단계 UX가 불편했습니다.
사용자가 검색 결과에서 바로 부위별 위험도를 인지할 수 있도록 항목을 분리했습니다.
변경사항(What)
safetyConditions기반으로 부위별 항목 생성사과->사과 (과육),사과 (씨앗)foodApple__flesh,foodApple__seedslib/data/transform/food_part_variant_builder.dartlib/data/repositories/asset_food_repository.dartsourceIndexes(옵션)lib/data/models/safety_condition.dart테스트 결과
flutter analyze통과flutter test전체 통과test/data/food_part_variant_builder_test.darttest/data/asset_food_repository_test.dart리스크 및 롤백 포인트
AssetFoodRepository의 변환 호출 제거 시 기존 단일 항목 구조로 즉시 복귀 가능PRD 매핑
후속 PR 범위
sourceIndexes를 실제 데이터에 단계적으로 반영해 출처 세분화 완성