Skip to content

fix(frontend): restore calendar event demotion from DayTimeline to an…#294

Merged
jlunder00 merged 1 commit intomainfrom
fix/fe-dnd-bugs
May 6, 2026
Merged

fix(frontend): restore calendar event demotion from DayTimeline to an…#294
jlunder00 merged 1 commit intomainfrom
fix/fe-dnd-bugs

Conversation

@jlunder00
Copy link
Copy Markdown
Owner

…chors

stopPropagation() in useDropZone.onDrop was blocking calendar event drops from bubbling to PlanView.onAnchorDrop, silently breaking the DayTimeline → anchor demotion flow.

Fix: handle demotion inside AnchorBlock's useDropZone callback for card-content-area drops. Rail/gap drops still reach PlanView.onAnchorDrop as the backstop. Each surface now owns its own demotion logic; no implicit coupling via bubbling required.

AnchorBlock.vue: import useEventStore; check fromStartTime in the containerDropHandlers onDrop callback; call demoteEvent + fetchPlan. AnchorBlock.dnd.test.ts: add regression test for calendar event drop.

…chors

stopPropagation() in useDropZone.onDrop was blocking calendar event
drops from bubbling to PlanView.onAnchorDrop, silently breaking the
DayTimeline → anchor demotion flow.

Fix: handle demotion inside AnchorBlock's useDropZone callback for
card-content-area drops. Rail/gap drops still reach PlanView.onAnchorDrop
as the backstop. Each surface now owns its own demotion logic; no
implicit coupling via bubbling required.

AnchorBlock.vue: import useEventStore; check fromStartTime in the
containerDropHandlers onDrop callback; call demoteEvent + fetchPlan.
AnchorBlock.dnd.test.ts: add regression test for calendar event drop.
@jlunder00 jlunder00 merged commit 75353a4 into main May 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant