fix: replace fabricated inline data on admin reports page with real data wiring#783
Merged
orbitlumen-hue merged 1 commit intoJul 24, 2026
Conversation
Collaborator
|
resolve conflicts |
Rufai-Ahmed
force-pushed
the
fix/admin-reports-inline-mock-data
branch
from
July 23, 2026 19:32
e6d3732 to
bb3770c
Compare
Contributor
Author
3 tasks
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.
What
Removes the fabricated inline data on the admin reports page that sits outside the six named MOCK_* constants (the fake [1..5].map user-log rows, the hardcoded 24,592 total-users card, the hardcoded financial YTD stat cards) and wires those panels to typed data through the existing API layer, with loading and empty states matching the other admin pages.
The activity panel uses /users/me/activity since that is the only activity endpoint available, so it is scoped to the signed-in admin and labeled accordingly.
Testing
tsc and eslint clean on the changed file; the remaining tsc errors in the repo are pre-existing in unrelated files (83 on this branch vs 94 on main).
Closes #765