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,9 +1,10 @@
|
||||
import type {
|
||||
Allocation,
|
||||
CapacityWindow,
|
||||
Resource,
|
||||
UtilizationAnalysis,
|
||||
UtilizationPeriod,
|
||||
import {
|
||||
MILLISECONDS_PER_DAY,
|
||||
type Allocation,
|
||||
type CapacityWindow,
|
||||
type Resource,
|
||||
type UtilizationAnalysis,
|
||||
type UtilizationPeriod,
|
||||
} from "@capakraken/shared";
|
||||
|
||||
export interface CapacityAnalysisInput {
|
||||
@@ -186,7 +187,7 @@ export function findCapacityWindows(
|
||||
current.setDate(current.getDate() + 1);
|
||||
}
|
||||
|
||||
closeWindow(new Date(end.getTime() + 86400000));
|
||||
closeWindow(new Date(end.getTime() + MILLISECONDS_PER_DAY));
|
||||
|
||||
return windows;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user