feat(admin): Add activity and audit log pages#960
Open
Divineifed1 wants to merge 2 commits into
Open
Conversation
Contributor
|
@mirastan is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
close #848
close #849
PR Description:
This pull request introduces two new administrative pages to the frontend, providing critical monitoring and auditing capabilities.
Features:
File Created: frontend/app/(protected)/admin/activity/page.tsx
Description: This page displays a vertical timeline of user actions, such as logins, file uploads, and deletions. It is designed to provide administrators with a clear and searchable overview of user engagement on the platform.
Data Source: The component is set up to fetch data from GET /api/activity but currently uses mock data for initial implementation and review.
2. HTTP Access Logs (BE-68)
File Created: frontend/app/(protected)/admin/audit-logs/page.tsx
Description: This page provides a detailed table of HTTP access logs, allowing administrators to review incoming requests for security investigations and compliance audits. The table includes the IP address, timestamp, request method, path, status code, and user agent for each entry.
Data Source: The component is prepared to fetch data from GET /api/audit and currently uses mock data for UI development.
Implementation Details:
Both pages are implemented as Next.js Server Components, allowing for efficient data fetching on the server.
The UI is built using the existing Card and Table components from the shared UI library, ensuring a consistent look and feel with the rest of the application.
Placeholder data is used in both pages to facilitate immediate UI review and testing before the backend endpoints are fully integrated.