feat(timeline): add pulse animation for in-flight drag mutations
Allocation bars that have active optimistic overrides (post-drag, awaiting server confirmation) now pulse subtly via animate-pulse. The pending set is derived from the existing optimisticAllocations map keys, requiring no additional state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,57 @@
|
||||
export const ROLE_BRIEF_SELECT = { id: true, name: true, color: true } as const;
|
||||
export const PROJECT_BRIEF_SELECT = { id: true, name: true, shortCode: true, status: true, endDate: true } as const;
|
||||
export const RESOURCE_BRIEF_SELECT = { id: true, displayName: true, eid: true, lcrCents: true, chapter: true } as const;
|
||||
|
||||
export const RESOURCE_SUMMARY_SELECT = {
|
||||
id: true,
|
||||
eid: true,
|
||||
displayName: true,
|
||||
chapter: true,
|
||||
isActive: true,
|
||||
areaRole: { select: { name: true } },
|
||||
country: { select: { code: true, name: true } },
|
||||
metroCity: { select: { name: true } },
|
||||
orgUnit: { select: { name: true } },
|
||||
} as const;
|
||||
|
||||
export const RESOURCE_SUMMARY_DETAIL_SELECT = {
|
||||
...RESOURCE_SUMMARY_SELECT,
|
||||
fte: true,
|
||||
lcrCents: true,
|
||||
chargeabilityTarget: true,
|
||||
} as const;
|
||||
|
||||
export const RESOURCE_IDENTIFIER_SELECT = {
|
||||
id: true,
|
||||
eid: true,
|
||||
displayName: true,
|
||||
chapter: true,
|
||||
isActive: true,
|
||||
} as const;
|
||||
|
||||
export const RESOURCE_IDENTIFIER_DETAIL_SELECT = {
|
||||
...RESOURCE_IDENTIFIER_SELECT,
|
||||
email: true,
|
||||
fte: true,
|
||||
lcrCents: true,
|
||||
ucrCents: true,
|
||||
chargeabilityTarget: true,
|
||||
availability: true,
|
||||
skills: true,
|
||||
postalCode: true,
|
||||
federalState: true,
|
||||
areaRole: { select: { name: true, color: true } },
|
||||
country: { select: { code: true, name: true, dailyWorkingHours: true } },
|
||||
metroCity: { select: { name: true } },
|
||||
managementLevelGroup: { select: { name: true, targetPercentage: true } },
|
||||
orgUnit: { select: { name: true, level: true } },
|
||||
_count: { select: { assignments: true, vacations: true } },
|
||||
} as const;
|
||||
|
||||
export const RESOURCE_DIRECTORY_SELECT = {
|
||||
id: true,
|
||||
eid: true,
|
||||
displayName: true,
|
||||
chapter: true,
|
||||
isActive: true,
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user