Skip to content

Add mouse click support for task cards in kanban board#56

Merged
bborn merged 1 commit intomainfrom
task/125-tasks-should-be-clickable-to-enter-a-tas
Jan 9, 2026
Merged

Add mouse click support for task cards in kanban board#56
bborn merged 1 commit intomainfrom
task/125-tasks-should-be-clickable-to-enter-a-tas

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 9, 2026

Summary

  • Users can now click on task cards in the kanban board to open the task detail view
  • Adds HandleClick method to KanbanBoard for detecting clicked tasks based on coordinates
  • Handles tea.MouseMsg events in the app to trigger task loading on click

Test plan

  • Added unit tests for click position detection across all columns
  • Tests verify clicking on headers/empty areas returns nil
  • Tests verify selection state is updated on click
  • Manual testing: click on tasks in each column to verify detail view opens

🤖 Generated with Claude Code

Users can now click on task cards in the kanban board to open the task
detail view, in addition to using the Enter key. This improves usability
for users who prefer mouse interaction.

Changes:
- Add HandleClick method to KanbanBoard that calculates which task was
  clicked based on mouse coordinates and column/card layout
- Handle tea.MouseMsg in app.go to detect left clicks on the dashboard
  view and open the clicked task
- Add comprehensive tests for click position detection across all columns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn force-pushed the task/125-tasks-should-be-clickable-to-enter-a-tas branch from b38f280 to ffdc704 Compare January 9, 2026 17:51
@bborn bborn merged commit 89cc328 into main Jan 9, 2026
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