Merge branch 'worktree-agent-aed43cff'

This commit is contained in:
2026-04-09 19:31:50 +02:00
2 changed files with 42 additions and 4 deletions
+31
View File
@@ -55,3 +55,34 @@ export const RESOURCE_DIRECTORY_SELECT = {
chapter: true,
isActive: true,
} as const;
/**
* Explicit select for the resource list endpoint (listStaff).
* Omits large JSONB columns that are unused in all list consumers:
* - availability (~several KB per row, only needed for scheduling calculations)
* - valueScoreBreakdown (JSON, only needed in detail/dashboard views)
* - aiSummary / aiSummaryUpdatedAt / skillMatrixUpdatedAt / portfolioUrl
* This keeps skills and dynamicFields because they are rendered in the resource table.
*/
export const RESOURCE_LIST_SELECT = {
id: true,
eid: true,
displayName: true,
email: true,
chapter: true,
lcrCents: true,
ucrCents: true,
currency: true,
chargeabilityTarget: true,
skills: true,
dynamicFields: true,
blueprintId: true,
isActive: true,
roleId: true,
federalState: true,
valueScore: true,
rolledOff: true,
departed: true,
createdAt: true,
updatedAt: true,
} as const;