Skip to content

Add the shelter console statistics screen - #229

Merged
FoxMon merged 1 commit into
developfrom
feat/angel-console-stats
Jul 19, 2026
Merged

Add the shelter console statistics screen#229
FoxMon merged 1 commit into
developfrom
feat/angel-console-stats

Conversation

@FoxMon

@FoxMon FoxMon commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Adds the §07 통계 screen to the shelter console — the last of the console menu items backed by a real endpoint. It surfaces a shelter's management KPIs and adoption trend, scoped to the signed-in staff member's shelter.

What's included

  • KPI cards: 이번 달 입양 (with a month-over-month delta), 보호 중 / 입양가능, 처리 대기 신청, and 입양율
  • 월별 입양 추이 — a six-month bar chart, current month highlighted
  • Sourced from GET /shelters/:shelterId/dashboard (a new shelterQueries.dashboard + schema-validated boundary on the shelter entity)
  • Promotes the design system's Chart to the package's public exports so apps can use the in-house chart factory
  • KPI derivations (rate percent, delta arrow/caption, month labels) extracted to a tested lib
  • Mock dashboard payload and an e2e covering the KPIs, the chart, and sidebar navigation

The remaining console menu items (신청 처리, 설문 빌더, 스태프 관리) stay disabled — the backend has no list/read endpoints for them yet.

Verification

Typecheck, lint (0 warnings), unit tests (angel 113, DS charts 36), and the console-stats e2e all pass.

Wire up the §07 통계 dashboard: adoption rate, shelter capacity, the
pending-application queue, and a six-month adoption trend, all scoped to
the staff member's shelter via GET /shelters/:id/dashboard.

The trend renders on the design system's bar chart, which this also
promotes to the package's public exports so apps can use it. KPI
derivations (rate percent, month-over-month delta, month labels) live in
a tested lib, with a mock dashboard payload and an e2e for the screen.
@FoxMon
FoxMon merged commit 976283a into develop Jul 19, 2026
5 checks passed
@FoxMon
FoxMon deleted the feat/angel-console-stats branch July 19, 2026 06:18
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