Skip to content

[BE-25] Build UserActivityDashboardService #487

@mftee

Description

@mftee

Problem

Users have no way to review their own recent activity history on the platform. The ActivityTrackerService exists but is not exposed through any user-facing endpoint, making user activity invisible.

Proposed Solution

Create a UserActivityDashboardService inside backend/src/module/user-activity/ that exposes the current user's activity log through a dedicated endpoint.

Acceptance Criteria

  • GET /api/module/users/me/activity returns the most recent 50 activity events for the authenticated user
  • Each activity record includes: id, actionType, resourceType, resourceId, metadata (JSON), and timestamp
  • Supports optional startDate and endDate query parameters for date-range filtering
  • Results are always ordered by timestamp descending
  • Returns an empty array (not 404) when the user has no activity records
  • Protected by JwtAuthGuard — users can only view their own activity

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions