Conversation
- Implement custom admin index view with statistics calculation - Display media, moderation, engagement, user, and system metrics - Add clickable links to filtered admin views - Fix reverse relation name bug (use media_set instead of media)
|
Haven't had time to test myself, but the video looks like it is something really helpful! |
|
I'd be very interested in what other things might be useful for the dashboard. I'm sort of out of ideas. I was also trying not to add any model changes or things that might break existing installs. Let me know if there is something interesting to consider. |
|
In case the video doesn't render here... https://mrjoshuap.com/mediacms/mediacms-admin-dashboard-smaller.mp4 |
|
Alright, since I needed a simple instance to do some testing with the mobile app, I decided to stand up a MediaCMS instance dedicated to it and figured I'd put the videos there. The link above should still work, but now it's in an instance so you won't have to download it. |
|
After making the changes, my mediacms instance broke down. When I try to access the main page, I get a 502 Bad Gateway response. The admin panel doesn't work either. Am I doing something wrong? Do you have any recommendations on how to deploy correctly? |
|
What deployment option are you using? Can you post any relevant logs and screenshots (preferably of the deploy, nginx, web components as the 502 is pretty self-explanatory). Deployments should follow the normal settings with the caveat that I've not attempted the "single server" installation. |
|
@Ariec9000 thoughts? Still having problems? |
I returned everything to its original state in order to make other settings and work with the translation. I'll try again this weekend. |
|
how likely is it that this is gonna be merged? would be a very useful feature. |
|
Of course I'm biased and I can't answer that question, but I run this branch on a couple of my instances without issue. I periodically sync it with main to keep it conflict-free. |
|
@mrjoshuap It works. Previously, I made changes to each file individually, which caused the problem. Now, I just replaced the files with the necessary ones, and it started working right away. |
|
That's great, @Ariec9000! I have the same thoughts and desire to make functional links, however, they require additional modifications to the portal for each section and I didn't want to make too big of a change for the first iteration, so I settled on a "View All" approach. The changes are easy enough, as I've done similar though I would like to see this merged before I started work on them. I also thought about making the timeframe configurable (like 1d, 7d, 1mo, 3mo, 12mo). In addition, making a new front end page that would show similar data points might be useful. |
|
@mrjoshuap how do you look at that to add to the administration panel, the ability to flexibly change the pop-up sidebar, on the portal, namely, add and remove the items? |
|
Those are all managed in the front end node.js code, which is separate from the admin portal. They can be rearranged and more though it requires some code changes. There is a way to add custom pages to the sidebar which is documented that does not require code changes. The trouble is making them optionally hidden or configurable because the backend configuration in Python is not available to node.js without some state management code... |
|
@mrjoshuap wouldn't it be beneficial in general to integrate the whole admin portal into the frontend long-term? is there a specific reason for that distinction? |
|
@miko007 well, the admin portal is a Django artifact and is relatively low code from a UI perspective. Think data model rendering. There are many of the features I would love to see in the front end though it would be a considerable amount of new node.js code to write and maintain. I don't know it is the best idea to have all of it the front end from a security perspective. Some of the fields shouldn't be messed with. Maybe @mgogoulos can elaborate more? |




Description
This PR introduces an enhanced admin dashboard with comprehensive statistics and metrics for MediaCMS administrators. The dashboard provides real-time insights into media content, user activity, engagement metrics, content moderation, and system health.
A picture is worth a thousand words.
Key Features:
Technical Changes:
templates/admin/index.html) with statistics dashboardadmin_customizations/admin.py) with time-based metricsMediaActionmodel in admin for viewing user actions (likes, reports, etc.)python manage.py populate_fake_mediaSteps
Pre-deploy
MediaActionadmin interface is accessible and functionalPost-deploy
/admin/Here's a video that shows the update in action:
mediacms-admin-dashboard-smaller.mp4