Skip to content

fix(cost-explorer): anchor cost summary to calendar month instead of … - #6149

Merged
yuda110 merged 1 commit into
haeafrom
hotfix/cost-report-date-bug
Aug 3, 2026
Merged

fix(cost-explorer): anchor cost summary to calendar month instead of …#6149
yuda110 merged 1 commit into
haeafrom
hotfix/cost-report-date-bug

Conversation

@yuda110

@yuda110 yuda110 commented Aug 3, 2026

Copy link
Copy Markdown
Member

…array position

홈 Cost Summary 위젯이 값은 배열 위치(chartData[len-1])로 집고 날짜 라벨은 dayjs()로 따로 계산해서, 데이터가 끝에서 끊긴 워크스페이스에서 과거 달의 금액이
"이번 달"로 표시됐다. AGGREGATING 뱃지도 하드코딩이라 확정된 데이터에 붙었다.

값과 라벨이 모두 같은 소스(날짜 키)에서 나오도록 바꾸고, 리포트 화면의 기준점도
"마지막 발행 리포트"에서 달력 기준(저번 달)으로 통일한다.

  • add getLatestMonth()/getCurrentMonth() helper shared by home and cost report
  • CostSummary: 위치 인덱스 → 날짜 키 조회, is_confirmed 그룹을 월 단위로 병합 (병합 없이 조회하면 중복 중 하나만 집어가 값이 누락됨)
  • CostSummary: 값이 없으면 '-' 와 사유 문구 표기, 뱃지 숨김
  • CostSummaryChart: x축을 period 기준 dense 배열로 채워 indexOf 를 항상 유효하게 하고, 단색 구간에서 visualMap 을 걸지 않도록 수정 (한쪽이 열린 구간만 남으면 echarts 가 gradient stop 을 만들지 못해 라인 렌더가 통째로 깨졌음)
  • CostSummaryChart: 값 없는 달 툴팁에 '-' 표기
  • CostTrendCard/MonthlyTotalAmountSummaryCard: recentReportMonth 앵커 제거
  • CostTrendCard: 요약 금액을 period.end 기준으로 조회 (연도 선택 시 라벨과 값이 어긋나 $0 이 표시되던 문제 동반 수정)
  • MonthlyTotalAmountSummaryCard: currentDate 초기값을 즉시 세팅해 watcher 순서 의존 제거, cost_report_config_id watch 의 이중 화살표 오타 수정
  • store: 기준점 역할이 사라진 recentReportMonth 와 미사용 recentIssueDate 제거

Skip Review (optional)

  • Minor changes that don't affect the functionality (e.g. style, chore, ci, test, docs)
  • Previously reviewed in feature branch, further review is not mandatory
  • Self-merge allowed for solo developers or urgent changes

Description (optional)

Things to Talk About (optional)

…array position

홈 Cost Summary 위젯이 값은 배열 위치(chartData[len-1])로 집고 날짜 라벨은
dayjs()로 따로 계산해서, 데이터가 끝에서 끊긴 워크스페이스에서 과거 달의 금액이
"이번 달"로 표시됐다. AGGREGATING 뱃지도 하드코딩이라 확정된 데이터에 붙었다.

값과 라벨이 모두 같은 소스(날짜 키)에서 나오도록 바꾸고, 리포트 화면의 기준점도
"마지막 발행 리포트"에서 달력 기준(저번 달)으로 통일한다.

- add getLatestMonth()/getCurrentMonth() helper shared by home and cost report
- CostSummary: 위치 인덱스 → 날짜 키 조회, is_confirmed 그룹을 월 단위로 병합
  (병합 없이 조회하면 중복 중 하나만 집어가 값이 누락됨)
- CostSummary: 값이 없으면 '-' 와 사유 문구 표기, 뱃지 숨김
- CostSummaryChart: x축을 period 기준 dense 배열로 채워 indexOf 를 항상 유효하게
  하고, 단색 구간에서 visualMap 을 걸지 않도록 수정 (한쪽이 열린 구간만 남으면
  echarts 가 gradient stop 을 만들지 못해 라인 렌더가 통째로 깨졌음)
- CostSummaryChart: 값 없는 달 툴팁에 '-' 표기
- CostTrendCard/MonthlyTotalAmountSummaryCard: recentReportMonth 앵커 제거
- CostTrendCard: 요약 금액을 period.end 기준으로 조회 (연도 선택 시 라벨과
  값이 어긋나 $0 이 표시되던 문제 동반 수정)
- MonthlyTotalAmountSummaryCard: currentDate 초기값을 즉시 세팅해 watcher 순서
  의존 제거, cost_report_config_id watch 의 이중 화살표 오타 수정
- store: 기준점 역할이 사라진 recentReportMonth 와 미사용 recentIssueDate 제거

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: yuda <yuda@megazone.com>
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
web-storybook Ignored Ignored Aug 3, 2026 7:11am

Request Review

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🎉 @seungyeoneeee has been randomly selected as the reviewer! Please review. 🙏

@github-actions
github-actions Bot requested a review from seungyeoneeee August 3, 2026 07:11
@yuda110
yuda110 merged commit 2528761 into haea Aug 3, 2026
4 checks passed
@yuda110
yuda110 deleted the hotfix/cost-report-date-bug branch August 3, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant