A general solution for tracking and managing activity logs in various applications. It allows admins to monitor and analyze user actions within their teams. This document outlines the features, tech stack, and implementation details.
- Track and log various events and actions users perform in the application.
- View and analyze activity logs with pagination, search, and filtering options.
- Backend endpoints for creating and retrieving events.
- Additional bonus features include filtering rows and exporting to CSV.
- Language: TypeScript
- ORM: Prisma
- Framework: Node.js (Express.js)
- Database: Postgres
- Framework: Raact.js
- Styling: TailwindCSS
- Data Fetching: SWR
- POST api/events: Endpoint for creating new events.
- GET api/events: Endpoint for retrieving events.
The frontend interface allows users to interact with the activity logs.
- Listing: Display a list of activity logs with pagination.
- Details: Show detailed information about a specific event.
- Load More: Load additional logs when requested.
- Search: Search for specific events based on keywords.
- Filter Rows: Filter logs based on actor ID, target ID, action ID, and/or name.
- Export to CSV: Option to export logs to a CSV file.
About the design, please refer to the Figma Activity Log Design file.