Skip to content

feat: add admin dashboard, moderation, and transaction monitoring APIs#470

Merged
LaGodxy merged 1 commit into
MettaChain:mainfrom
Ibinola:codex/implement-fixes-for-assigned-issues
Apr 24, 2026
Merged

feat: add admin dashboard, moderation, and transaction monitoring APIs#470
LaGodxy merged 1 commit into
MettaChain:mainfrom
Ibinola:codex/implement-fixes-for-assigned-issues

Conversation

@Ibinola
Copy link
Copy Markdown
Contributor

@Ibinola Ibinola commented Apr 24, 2026

Motivation

  • Provide admin-facing APIs to manage users, moderate properties, and monitor transactions via a dedicated AdminModule and secure endpoints.
  • Standardize DTOs and enums used by admin queries to avoid ad-hoc string usage and improve type-safety.

Description

  • Added src/admin with admin.module.ts, admin.controller.ts, admin.service.ts, and dto/admin.dto.ts implementing endpoints for dashboard stats, user management, property moderation (approve/reject/flag/bulk), and transaction monitoring.
  • Registered AdminModule in src/app.module.ts and extended src/types/prisma.types.ts with PropertyStatus, TransactionType, and TransactionStatus enums used by the new DTOs and service.
  • Endpoints added include /admin/dashboard, /admin/users, /admin/users/:id (patch), block/unblock routes, moderation queue and actions, and /admin/transactions/monitoring plus summary.
  • Closes Create Admin Dashboard #405
  • Closes Implement User Management Panel #406
  • Closes Add Property Moderation #407
  • Closes Implement Transaction Monitoring #408

Testing

  • Ran npm run build and the project built successfully (build completed without errors).

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 24, 2026

@Ibinola 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! 🚀

Learn more about application limits

@LaGodxy LaGodxy merged commit 031b493 into MettaChain:main Apr 24, 2026
4 checks passed
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.

Implement Transaction Monitoring Add Property Moderation Implement User Management Panel Create Admin Dashboard

2 participants