id: task-192 title: Fix drag-and-drop not working in web view status: Done assignee:
- '@claude' created_date: '2025-07-15' updated_date: '2025-07-15' labels:
- bug
- web-ui
- high-priority dependencies: [] priority: high
Description
Users cannot move tasks between columns in the web view interface. The drag-and-drop functionality that previously worked is now broken, with WebSocket connection errors appearing in the console. This prevents users from updating task status visually in the browser interface.
Acceptance Criteria
- [x] Tasks can be dragged and dropped between columns in web view
- [x] WebSocket connection remains stable during drag operations
- [x] No console errors when moving tasks
- [x] Task status updates persist after moving
- [x] Drag-and-drop works consistently across different browsers
Implementation Plan
- Investigate WebSocket connection issues in the web view
- Examine drag-and-drop event handlers in the frontend code
- Check server-side WebSocket message handling for status updates
- Debug the connection stability during drag operations
- Fix identified issues and test drag-and-drop functionality
- Verify fix works across different browsers
Implementation Notes
- Root cause: The drag-and-drop handlers were properly implemented but the UI was not refreshing after successful task updates
- Fix applied: Added
onRefreshDatacallback prop to Board and BoardPage components to trigger data refresh after drag-and-drop operations - Modified files:
src/web/components/Board.tsx: AddedonRefreshDataprop and called it inhandleTaskUpdatesrc/web/components/BoardPage.tsx: AddedonRefreshDataprop to pass through to Board componentsrc/web/App.tsx: PassedrefreshDatafunction to BoardPage component
- WebSocket observation: The WebSocket errors mentioned in the bug report were only for health check disconnections, not related to the drag-and-drop functionality
- Testing: All existing tests pass, and the fix ensures immediate UI updates after drag-and-drop operations