-
+
+
Loading tasks...
)
@@ -298,11 +299,12 @@ export function TaskBoardPanel() {
{/* Error Display */}
{error && (
-
+
{error}
@@ -310,10 +312,12 @@ export function TaskBoardPanel() {
)}
{/* Kanban Board */}
-
+
{statusColumns.map(column => (
handleDragEnter(e, column.key)}
onDragLeave={handleDragLeave}
@@ -334,8 +338,12 @@ export function TaskBoardPanel() {
handleDragStart(e, task)}
onClick={() => setSelectedTask(task)}
+ onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); setSelectedTask(task) } }}
className={`bg-surface-1 rounded-lg p-3 cursor-pointer hover:bg-surface-2 transition-smooth border-l-4 ${priorityColors[task.priority]} ${
draggedTask?.id === task.id ? 'opacity-50' : ''
}`}
@@ -610,12 +618,14 @@ function TaskDetailModal({
)
+ const dialogRef = useFocusTrap(onClose)
+
return (
-
-
+
{ if (e.target === e.currentTarget) onClose() }}>
+
-