fix(web): keep segmented timeline allocations actionable

This commit is contained in:
2026-04-01 08:54:15 +02:00
parent 6249f61ce1
commit 4edf3a32ac
5 changed files with 334 additions and 48 deletions
@@ -812,7 +812,7 @@ function renderAllocBlocksFromData(
if (suppressHoverInteractions) return;
onAllocationContextMenu(
{
allocationId: alloc.id,
allocationId: getPlanningEntryMutationId(alloc),
projectId: alloc.projectId,
contextDate: resolveSegmentContextDate(
e.clientX,
@@ -1151,7 +1151,11 @@ function renderDailyBars(
e.stopPropagation();
if (suppressHoverInteractions) return;
onAllocationContextMenu(
{ allocationId: alloc.id, projectId: alloc.projectId, contextDate: new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())) },
{
allocationId: getPlanningEntryMutationId(alloc),
projectId: alloc.projectId,
contextDate: new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())),
},
e.clientX,
e.clientY,
);