Skip to content

No click-to-select for profiles in sidebar table #139

@Harry-kp

Description

@Harry-kp

Problem

In `src/app/input.rs` lines 197–207, mouse clicks detect which panel was clicked and focus it, but there's no row-level click handling for the profile table. Clicking on a specific profile name doesn't select it — the user must use keyboard navigation (`j`/`k`/arrows) to select individual profiles.

Expected behavior

Left-clicking on a profile row in the sidebar should:

  1. Focus the Sidebar panel (already works)
  2. Select the clicked profile row

The row can be determined from the click `mouse.row` coordinate relative to the panel area's Y offset, accounting for the border and any header row.

Where in the code

`src/app/input.rs`, `handle_mouse()` — the `MouseEventKind::Down(MouseButton::Left)` branch. After identifying the Sidebar panel click, calculate the profile index from the row offset.

Acceptance criteria

  • Clicking a profile row selects it
  • Clicking outside the profile rows (e.g., on the border) only focuses the panel
  • Selection scrolls into view if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Nice to haveenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededuxUser experience improvement

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions