Skip to content

fix: 병원비 그래프도 빈 상태 안내 문구를 보여줌 - #43

Merged
eigger merged 1 commit into
masterfrom
fix/analytics-cost-chart-empty-state
Sep 4, 2026
Merged

fix: 병원비 그래프도 빈 상태 안내 문구를 보여줌#43
eigger merged 1 commit into
masterfrom
fix/analytics-cost-chart-empty-state

Conversation

@eigger

@eigger eigger commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • PR #42에서 병원비 추세 차트를 대변 스코어 차트와 같은 패턴("데이터 없으면 섹션 자체를 숨김")으로 만들었는데, 체중·사료·물 차트는 ChartEmpty로 안내 문구를 보여준다.
  • 사용자가 "그래프가 왜 안 보이나" 물어본 게 이 불일치 때문이었다 — 비용 차트도 ChartEmpty를 쓰도록 맞춘다.

Test plan

  • npm run --workspace apps/web build (타입체크 포함)
  • npm run --workspace apps/web test (112 tests)

🤖 Generated with Claude Code

costGrouped가 비어 있으면(선택 기간에 costKrw가 입력된 병원 방문 기록이
없으면) 섹션 자체가 통째로 숨어 있었다 — 대변 스코어 차트와 같은 패턴을
그대로 썼는데, 체중·사료·물 차트는 ChartEmpty로 안내 문구를 보여준다.
일관성을 맞춰 비용 차트도 ChartEmpty를 쓰도록 바꾼다.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@eigger
eigger merged commit 3f64a0c into master Sep 4, 2026
6 checks passed
@eigger
eigger deleted the fix/analytics-cost-chart-empty-state branch September 4, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant