Add the shelter console statistics screen - #229
Merged
Conversation
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.
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.
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
GET /shelters/:shelterId/dashboard(a newshelterQueries.dashboard+ schema-validated boundary on the shelter entity)Chartto the package's public exports so apps can use the in-house chart factoryThe 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.