Update controllers and services for allocation fidelity:
- AllocationController: variance data in responses, bulk operations
- ProjectController: include plan data in responses
- ProjectMonthPlanController: planning grid API
- AllocationMatrixService: support untracked allocations
- ProjectResource/TeamMemberResource: include reconciliation data
Improved test coverage for allocation flows.
Add comprehensive API documentation for the reporting endpoint:
- Request/response structure
- View type inference (did/is/will)
- Blank vs explicit zero semantics
- Status values and error responses
Related to enhanced-allocation change.
- Add AllocationController with CRUD + bulk endpoints
- Add AllocationValidationService for capacity/estimate validation
- Add AllocationMatrixService for optimized matrix queries
- Add AllocationPolicy for authorization
- Add AllocationResource for API responses
- Add frontend allocationService and matrix UI
- Add E2E tests for allocation matrix (20 tests)
- Add unit tests for validation service and policies
- Fix month format conversion (YYYY-MM to YYYY-MM-01)
1. Slow Team Member Dropdown - Fixed
- Added cached team members store with 5-minute TTL
- Dropdown now loads instantly on subsequent visits
2. Error Preventing Capacity Save - Fixed
- Added saveAvailability API endpoint
- Added backend service method to persist availability overrides
- Added proper error handling and success feedback
- Cache invalidation on save
3. Filters Not Working - Fixed
- Fixed PTOManager to use shared selectedMemberId
- Filters now react to team member selection
Test Results:
- Backend: 76 passed ✅
- Frontend Unit: 10 passed ✅
- E2E: 130 passed, 24 skipped ✅
Refs: openspec/changes/headroom-foundation
- Create BaseResource with formatDate() and formatDecimal() utilities
- Create 11 API Resource classes for all models
- Update all 6 controllers to return wrapped responses via wrapResource()
- Update frontend API client with unwrapResponse() helper
- Update all 63+ backend tests to expect 'data' wrapper
- Regenerate Scribe API documentation
BREAKING CHANGE: All API responses now wrap data in 'data' key per architecture spec.
Backend Tests: 70 passed, 5 failed (unrelated to data wrapper)
Frontend Unit: 10 passed
E2E Tests: 102 passed, 20 skipped
API Docs: Generated successfully
Refs: openspec/changes/api-resource-standard