feat(admin): add system logs tab and restrict platform tracking to logged-in users#193
Merged
Merged
Conversation
Bogdan2005-19
temporarily deployed
to
feat/system-logs-dashboard - JoinProject-dev PR #193
June 10, 2026 20:56 — with
Render
Destroyed
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.
📄 Description
As a Staff Admin,
I want to view the background synchronization logs directly from my dashboard,
so that I can monitor the health of the API updates without needing to access the default Django admin panel.
As a platform user (Guest),
I want to be redirected to the login page if I try to access a platform link,
so that I don't receive misleading "Added to history" notifications when I don't have an active session.
✅ Changes Made
SyncLogentries (Start Time, End Time, Status, and Summary).system_logsroute inAdminRedirectMiddlewareto ensure Staff Admins can access it securely.paginator.htmlcomponent that correctly handles URL parameters (likeplatformanddatefilters).details_base.html. Unauthenticated users are now redirected to theloginview when clicking a platform button, preventing ghost API requests and false "success" toasts.🛠️ Relevant Files Modified
users/middleware.py&users/urls.py(Routing and permissions)web_app/views.py(Addedsystem_logsview)users/templates/users/parts/system_logs.html(New UI table)Templates/paginator.html(New global component)Templates/Details/details_base.html(JS authentication check)🔗 Related Issues
Closes: #191
📸 Testing Performed
Staff Admin, navigated to the new tab, and verified the logs display correctly with pagination.