You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Members have no way to see their own check-in history or total hours used. Admins cannot view aggregate attendance patterns. Attendance data is captured in WorkspaceLog but is never surfaced through a useful API.
Overview
Members have no way to see their own check-in history or total hours used. Admins cannot view aggregate attendance patterns. Attendance data is captured in
WorkspaceLogbut is never surfaced through a useful API.Context
WorkspaceLogentity (check-in/out records):backend/src/workspace-tracking/— fields:userId,workspaceId,checkInTime,checkOutTimeWorkspaceTrackingController:backend/src/workspace-tracking/workspace-tracking.controller.tsDashboardModuleadmin analytics:backend/src/dashboard/providers/admin-analytics.provider.tsTasks
GET /workspace-tracking/history— paginated check-in/out log for the authenticated member:{ data: [{ date, workspaceName, checkInTime, checkOutTime, durationMinutes }], total, page, limit }?from=and?to=date filter (ISO 8601)GET /workspace-tracking/history/summary— member's personal stats:totalHoursThisMonth,totalDaysThisMonth,currentStreak(consecutive calendar days with at least one check-in),longestStreakGET /reports/attendance— aggregate attendance data:dailyCheckIns: array of{ date, count }for the last 30 dayspeakHours: array of{ hour (0–23), averageCheckIns }computed from all historical dataaverageSessionDurationMinutestopWorkspacesByCheckIns: top 5 workspaces by check-in count this monthFiles to Modify / Create
backend/src/workspace-tracking/providers/attendance-history.provider.tsbackend/src/workspace-tracking/workspace-tracking.controller.tsbackend/src/dashboard/providers/admin-analytics.provider.tsbackend/src/dashboard/dashboard.controller.ts