Skip to content

feat: compare project allocations with task estimates and timesheet hours - #1769

Open
MusaleTejas wants to merge 1 commit into
rtCamp:version-16from
MusaleTejas:feat/1740-allocation-task-mapping
Open

feat: compare project allocations with task estimates and timesheet hours#1769
MusaleTejas wants to merge 1 commit into
rtCamp:version-16from
MusaleTejas:feat/1740-allocation-task-mapping

Conversation

@MusaleTejas

Copy link
Copy Markdown

Added a comparison breakdown on resource allocation cards to show:

  • Project allocation (total hours allocated)
  • Planned task effort (sum of expected hours for active tasks assigned to the employee)
  • Actual logged hours (from timesheets)
  • Allocation gap (allocation minus planned task effort)

This addresses #1740 so resource managers can see if an employee has enough tasks planned relative to their allocated project hours.

Changes made:

  • Added a helper get_allocation_task_and_logged_hours in query.py to query active tasks assigned to the employee under the project using ToDo assignments, filter by the allocation date range, and calculate actual logged hours.
  • Loaded total_allocated_hours and mapped these stats onto allocation results returned in the team and project view APIs (team.py and project.py).
  • Added the fields to ResourceAllocationProps and rendered a simple 2-column grid in ResourceAllocationCard to display the stats.

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.

1 participant