feat(dashboard): Employee Workload & Activity Report widget#192
Merged
Conversation
Add a filter-driven dashboard card showing per-employee planned, logged, and estimated hours for a chosen period, with expandable per-task breakdowns, totals footer, client-side sorting, employee search, and over-budget highlighting. - Backend: getEmployeeWorkloadReport endpoint + route. Period pivots on estimated_time.Date (planned) and timesheets.LogStartTime (logged); multi-assignee aware. Role-based visibility aligned with the app-wide convention (roleType 1/2 see all filtered employees, others see only themselves). Returns all matching tasks per employee (no display cap). - Frontend: EmployeeWorkloadReportCard widget + sticky-header table, Wasabi-backed avatars via the users store, subtask indicator, team->user resolution, role-aware Edit Card fields. - Config: cardComponent.json catalog entry, i18n keys, default grid size, HomePage getComponent case. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…load-report-widget
…load-report-widget
…load-report-widget
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
… badge, column toggles - Move Time Period filter from edit-card config into an inline dropdown before the card search box (same resolveDateRange → fetch path) - Add "Current" option (default) showing only employees with a live running tracker now; backend filters rows to active-tracker pairs - Add green "Running" badge on tasks with an active tracker, using the app's 10-minute startTimeTracker recency rule - Add per-card refresh button (replaces 5-min auto-refresh) - Add show/hide toggles for Logged / Planned / Estimate columns; hide Total row and the colour legend when the relevant columns are off - Always hide empty users; remove the hide-empty-users config + the employees-selected chip Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Brand-tinted pill at the left of the controls row showing the number of employees currently shown (tracks search/Current filtering). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Summary
POST /api/v1/dashboard/employee-workload(getEmployeeWorkloadReport). The period pivots onestimated_time.Date(planned) andtimesheets.LogStartTime(logged) — not task created/due date — and is multi-assignee aware. Returns all matching tasks per employee (no display cap).workloadTimeSheet/userTimeSheet/projectTimeSheet/getProjectList:roleType1 or 2 see all employees the filter selects; everyone else sees only themselves.Files
Modules/UserDashboard/controller.js,routes.js— endpoint + routeModules/EstimatedTime/aiTaskCategory.js,aiWorkloadSummary.js— AI helpers (category returned, not surfaced; summary unused)utils/cardComponent.json— card catalog entry (7 config fields)frontend/.../EmployeeWorkloadReportCard/— widget + stylesfrontend/.../CardFieldComponent.vue,commonFunction.js,en.js,HomePage.vue— wiring, i18n, role-aware fields, default grid size.claude/EMPLOYEE-WORKLOAD-REPORT-PLAN.md,.claude/TEST-CASES.md— docsOperational notes
cardComponent.json.Test plan
🤖 Generated with Claude Code