From b8323024c95ea703dcecebca281023b4ad013f34 Mon Sep 17 00:00:00 2001 From: taohe Date: Thu, 11 Jun 2026 17:54:22 +0800 Subject: [PATCH] Fix frontend formatting after merge --- .../channels/channel-runtime-config-dialog.tsx | 5 +---- frontend/src/components/workspace/recent-chat-list.tsx | 2 +- frontend/src/core/threads/thread-search-query.ts | 4 +++- frontend/tests/e2e/thread-history.spec.ts | 10 ++++------ 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/workspace/channels/channel-runtime-config-dialog.tsx b/frontend/src/components/workspace/channels/channel-runtime-config-dialog.tsx index cd5ccee8a..85f4f5af4 100644 --- a/frontend/src/components/workspace/channels/channel-runtime-config-dialog.tsx +++ b/frontend/src/components/workspace/channels/channel-runtime-config-dialog.tsx @@ -69,10 +69,7 @@ export function ChannelRuntimeConfigDialog({ } setValues( Object.fromEntries( - fields.map((field) => [ - field.name, - credentialValues[field.name] ?? "", - ]), + fields.map((field) => [field.name, credentialValues[field.name] ?? ""]), ) as ChannelRuntimeConfigValues, ); }, [credentialValues, fields, open, provider]); diff --git a/frontend/src/components/workspace/recent-chat-list.tsx b/frontend/src/components/workspace/recent-chat-list.tsx index 65a76f25c..5b14eea10 100644 --- a/frontend/src/components/workspace/recent-chat-list.tsx +++ b/frontend/src/components/workspace/recent-chat-list.tsx @@ -225,7 +225,7 @@ export function RecentChatList() {
diff --git a/frontend/src/core/threads/thread-search-query.ts b/frontend/src/core/threads/thread-search-query.ts index 758df283f..25783fe41 100644 --- a/frontend/src/core/threads/thread-search-query.ts +++ b/frontend/src/core/threads/thread-search-query.ts @@ -8,7 +8,9 @@ type ThreadsSearchClient = { }; }; -export type ThreadSearchParams = NonNullable[0]>; +export type ThreadSearchParams = NonNullable< + Parameters[0] +>; export const DEFAULT_THREAD_SEARCH_PARAMS: ThreadSearchParams = { limit: 50, diff --git a/frontend/tests/e2e/thread-history.spec.ts b/frontend/tests/e2e/thread-history.spec.ts index e56aa52c2..cab5d00d4 100644 --- a/frontend/tests/e2e/thread-history.spec.ts +++ b/frontend/tests/e2e/thread-history.spec.ts @@ -179,15 +179,13 @@ test.describe("Thread history", () => { `a[href='/workspace/chats/${MOCK_THREAD_ID}']`, ); await expect(sidebarThread).toBeVisible({ timeout: 15_000 }); - await expect( - sidebarThread.getByLabel("Feishu channel"), - ).toBeVisible(); + await expect(sidebarThread.getByLabel("Feishu channel")).toBeVisible(); await page.goto("/workspace/chats"); - const mainThread = page.locator("main").locator( - `a[href='/workspace/chats/${MOCK_THREAD_ID}']`, - ); + const mainThread = page + .locator("main") + .locator(`a[href='/workspace/chats/${MOCK_THREAD_ID}']`); await expect(mainThread.getByText("Feishu conversation")).toBeVisible({ timeout: 15_000, });