refactor(ui): drop whole-row navigation on the skills table

Only the name cell and the overflow menu act on a row, matching the unified
table pattern; the previous table navigated on any row click
This commit is contained in:
Yuneng Jiang 2026-07-14 19:52:43 -07:00
parent 56655218d0
commit e6c776d508
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -69,11 +69,11 @@ describe("PluginTable", () => {
expect(mockOnPluginClick).toHaveBeenCalledWith("plugin-id-newer");
});
it("should call onPluginClick with the plugin ID when the row is clicked", async () => {
it("should not navigate when clicking elsewhere in the row", async () => {
const user = userEvent.setup();
render(<PluginTable {...defaultProps} />);
await user.click(screen.getByText("A skill for testing"));
expect(mockOnPluginClick).toHaveBeenCalledWith("plugin-id-newer");
expect(mockOnPluginClick).not.toHaveBeenCalled();
});
it("should badge the category and fall back to Uncategorized", () => {

View file

@ -48,7 +48,6 @@ const PluginTable: React.FC<PluginTableProps> = ({ pluginsList, isLoading, onDel
sortingMode="client"
sorting={sorting}
onSortingChange={setSorting}
onRowClick={(plugin) => onPluginClick(plugin.id)}
isLoading={isLoading}
loadingMessage="Loading skills…"
noDataMessage={<EmptyState />}