From a54d7d24ca6304a18eb82791c9d727556a1b34ad Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 3 Aug 2026 19:58:06 +0000 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=20Session=20=E8=A1=8C?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: multica-agent --- src/SessionTable.test.tsx | 1 + src/SessionTable.tsx | 2 +- src/styles.css | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SessionTable.test.tsx b/src/SessionTable.test.tsx index f4821ca..27678b0 100644 --- a/src/SessionTable.test.tsx +++ b/src/SessionTable.test.tsx @@ -41,6 +41,7 @@ describe("SessionTable", () => { expect(screen.getByText("已选择 2 项")).toBeInTheDocument(); expect(screen.getByText("1–2 / 200")).toBeInTheDocument(); expect(screen.queryByRole("checkbox", { name: /选择 (当前页|S-)/ })).not.toBeInTheDocument(); + expect(first).toHaveClass("session-data-row"); }); it("筛选和排序产生显式查询意图", () => { diff --git a/src/SessionTable.tsx b/src/SessionTable.tsx index 025c4f4..2f59e93 100644 --- a/src/SessionTable.tsx +++ b/src/SessionTable.tsx @@ -138,7 +138,7 @@ export function SessionTable({ rows, state, capabilities, page, onStateChange, o })} -
{rows.map((session, index) =>
{ if (element) rowRefs.current.set(session.id, element); else rowRefs.current.delete(session.id); }} onFocus={() => state.focusedSessionId !== session.id && onStateChange({ ...state, focusedSessionId: session.id })} onClick={(event) => handleRowClick(event, index, session.id)} onKeyDown={(event) => handleRowKeyDown(event, index, session.id)}> +
{rows.map((session, index) =>
{ if (element) rowRefs.current.set(session.id, element); else rowRefs.current.delete(session.id); }} onFocus={() => state.focusedSessionId !== session.id && onStateChange({ ...state, focusedSessionId: session.id })} onClick={(event) => handleRowClick(event, index, session.id)} onKeyDown={(event) => handleRowKeyDown(event, index, session.id)}> {visible.has("status") &&