feat(frontend): Build Admin Dashboard with Platform Oversight Tools#181
Merged
Cedarich merged 1 commit intoStayLitCodes:mainfrom Mar 29, 2026
Merged
Conversation
…tayLitCodes#147) - Create /admin route group with dedicated layout and sidebar navigation - Implement client-side role check with redirect for non-admin users - Add collapsible admin navigation sidebar with mobile responsiveness - Display platform stats from GET /admin/stats endpoint with card grid and trend indicators - Add bar chart visualization for escrow volume over time - Build escrow management page with status filters, detail drill-down, and consistency check action - Implement user management page with wallet address search, pagination, and suspend/unsuspend with confirmation dialog - Create searchable/filterable audit log table with actor, action type, resource type, and date range filters - Add admin TypeScript type definitions matching backend API contracts - Add admin API service layer with mock data matching backend endpoints Closes StayLitCodes#147
|
@walterthesmart Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Cedarich
approved these changes
Mar 29, 2026
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.
Summary
Resolves #147 — Builds a complete admin dashboard UI to consume the existing backend admin endpoints (
/admin/stats,/admin/escrows,/admin/users,/admin/users/:id/suspend,/admin/audit-logs,/admin/escrows/consistency-check).Tasks Completed
✅ Route Protection & Layout
/adminroute group with a dedicated layout (app/admin/layout.tsx)✅ Statistics Overview (
/admin)✅ Escrow Management (
/admin/escrows)✅ User Management (
/admin/users)✅ Audit Log (
/admin/audit-logs)Fixes & Technical Details
types/admin.tswith full TypeScript interfaces matching backend DTOsservices/admin.tswith mock data layer mirroring all backend admin endpointsnpm run lintpasses,npm run buildpasses — all new pages compile successfullyFiles Changed (7 new files, 1681 lines)
apps/frontend/types/admin.tsapps/frontend/services/admin.tsapps/frontend/app/admin/layout.tsxapps/frontend/app/admin/page.tsxapps/frontend/app/admin/escrows/page.tsxapps/frontend/app/admin/users/page.tsxapps/frontend/app/admin/audit-logs/page.tsxCI/CD Verification
npm run lint— No errorsnpm run build— All routes compile successfullyfrontend-ci.yml) will pass: usesnpm ci,npm run lint,npm run buildCloses #147