Skip to content

[BUG] Kanban drag-and-drop does not always work #366

@EdiWeeks

Description

@EdiWeeks

Description

Dragging a card on the Kanban board to a different column does not always update the work item state. The drag sometimes succeeds and sometimes silently fails — the card snaps back to its original column with no visible error.

Steps to Reproduce

  1. Go to /kanban
  2. Drag a card from one column to another (e.g. ActiveResolved)
  3. Repeat several times across different cards / columns

Expected Behavior

Every successful drop should trigger a state change in Azure DevOps and the card should remain in the new column after the next refresh.

Actual Behavior

Intermittently the card snaps back to the original column. The state PATCH either does not fire or fails silently — no error toast is shown to the user.

Environment

  • OS: Windows 11 Pro
  • Browser: Edge
  • Version: 0.8.1 (current main)

Additional Context

Needs investigation — possibly related to:

  • The dnd-kit drag-end vs drag-cancel handlers in KanbanGroupSection.tsx
  • Race condition between optimistic local state and the server PATCH / refetch
  • Pointer activation distance (currently 8px) interpreting click-and-release as a non-drag

The user should see a clear failure indicator if the PATCH fails, instead of silently snapping back.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions