-
Notifications
You must be signed in to change notification settings - Fork 44
feat: Add admin dashboard foundation with user statistics #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: Add admin dashboard foundation with user statistics #125
Conversation
Sappymukherjee214
commented
Jan 8, 2026
- Add adminMiddleware for role-based access control
- Create GET /api/v1/admin/stats endpoint for admin statistics
- Implement getAdminStats service to count users by role
- Add admin dashboard UI with user statistics cards
- Display total users, admins, regular users, and creators
- Show recent 10 registered users in table format
- Add proper error handling and authentication checks
- Update routes to include admin dashboard path
- Add adminMiddleware for role-based access control - Create GET /api/v1/admin/stats endpoint for admin statistics - Implement getAdminStats service to count users by role - Add admin dashboard UI with user statistics cards - Display total users, admins, regular users, and creators - Show recent 10 registered users in table format - Add proper error handling and authentication checks - Update routes to include admin dashboard path
Summary of ChangesHello @Sappymukherjee214, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request establishes the foundational elements for an admin dashboard, providing administrators with a centralized view of user statistics. It integrates both backend and frontend components, enabling secure data retrieval and intuitive visualization of user demographics and recent activity. The changes ensure that administrative data is accessible only to authorized personnel while offering a clear, at-a-glance summary of the platform's user base. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
@abhishek-nexgen-dev I have added the admin dashboard foundation. Please assign it to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a new admin dashboard feature, including backend endpoints for statistics and a frontend UI to display them. The changes are well-structured, with new middleware for admin access control and a dedicated service for fetching data.
My review focuses on improving performance, maintainability, and robustness. I've identified a few areas for improvement:
- The backend can be optimized to use a single database query for statistics, significantly improving performance.
- Error handling in the new admin middleware can be more precise with status codes.
- The frontend has a hardcoded API URL which should be moved to environment variables.
- There's some route definition redundancy in the frontend that could be cleaned up for better modularity.
Overall, this is a great addition. Addressing these points will make the implementation more efficient and maintainable.
LocalMind-Frontend/src/features/Admin/V1/Component/Pages/AdminDashboard.tsx
Show resolved
Hide resolved
|
@abhishek-nexgen-dev |
|
@AMANkumar0004 please check again |
|
@Sappymukherjee214 bro can you attach some screenshot |
|
@AMANkumar0004 bro by mistake i assign my self and after some time I got the rejection email Bro please do some things |
|
@Sappymukherjee214 add some screenshot |

