Skip to content

[BE-59] Member attendance history and admin attendance report#1405

Open
devwums wants to merge 5 commits into
DistinctCodes:mainfrom
devwums:feat/be-59-member-attendance-history
Open

[BE-59] Member attendance history and admin attendance report#1405
devwums wants to merge 5 commits into
DistinctCodes:mainfrom
devwums:feat/be-59-member-attendance-history

Conversation

@devwums

@devwums devwums commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Surfaces WorkspaceLog data through dedicated attendance history endpoints so members can view their own check-in history and admins can run aggregate attendance reports.

Changes

  • dto/attendance-query.dto.ts — validated DTO with workspaceId, rom, o, page, limit fields
  • providers/attendance.provider.ts — AttendanceProvider with three methods:
    • getMemberHistory(userId, query) — paginated, filtered member history
    • getMemberSummary(userId) — aggregate stats (total sessions, total minutes, avg session, workspaces visited)
    • getAdminReport(query) — paginated cross-member report with user + workspace relations
  • workspace-tracking.service.ts — wires the three new provider methods
  • workspace-tracking.module.ts — registers AttendanceProvider
  • workspace-tracking.controller.ts — three new endpoints:
    • GET /workspace-tracking/attendance/my-history (all roles)
    • GET /workspace-tracking/attendance/my-summary (all roles)
    • GET /workspace-tracking/attendance/admin-report (ADMIN / SUPER_ADMIN only)

closes #1297

@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

@devwums is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BE-59] Member attendance history and admin attendance report

1 participant