mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-11 18:05:58 +00:00
Fix frontend formatting after merge
This commit is contained in:
@@ -69,10 +69,7 @@ export function ChannelRuntimeConfigDialog({
|
|||||||
}
|
}
|
||||||
setValues(
|
setValues(
|
||||||
Object.fromEntries(
|
Object.fromEntries(
|
||||||
fields.map((field) => [
|
fields.map((field) => [field.name, credentialValues[field.name] ?? ""]),
|
||||||
field.name,
|
|
||||||
credentialValues[field.name] ?? "",
|
|
||||||
]),
|
|
||||||
) as ChannelRuntimeConfigValues,
|
) as ChannelRuntimeConfigValues,
|
||||||
);
|
);
|
||||||
}, [credentialValues, fields, open, provider]);
|
}, [credentialValues, fields, open, provider]);
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ export function RecentChatList() {
|
|||||||
<SidebarMenuButton isActive={isActive} asChild>
|
<SidebarMenuButton isActive={isActive} asChild>
|
||||||
<div>
|
<div>
|
||||||
<Link
|
<Link
|
||||||
className="text-muted-foreground flex min-w-0 items-center gap-1.5 whitespace-nowrap pr-7 group-hover/side-menu-item:overflow-hidden"
|
className="text-muted-foreground flex min-w-0 items-center gap-1.5 pr-7 whitespace-nowrap group-hover/side-menu-item:overflow-hidden"
|
||||||
href={pathOfThread(thread)}
|
href={pathOfThread(thread)}
|
||||||
>
|
>
|
||||||
<ThreadChannelIcon source={channelSource} />
|
<ThreadChannelIcon source={channelSource} />
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ type ThreadsSearchClient = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ThreadSearchParams = NonNullable<Parameters<ThreadsClient["search"]>[0]>;
|
export type ThreadSearchParams = NonNullable<
|
||||||
|
Parameters<ThreadsClient["search"]>[0]
|
||||||
|
>;
|
||||||
|
|
||||||
export const DEFAULT_THREAD_SEARCH_PARAMS: ThreadSearchParams = {
|
export const DEFAULT_THREAD_SEARCH_PARAMS: ThreadSearchParams = {
|
||||||
limit: 50,
|
limit: 50,
|
||||||
|
|||||||
@@ -179,15 +179,13 @@ test.describe("Thread history", () => {
|
|||||||
`a[href='/workspace/chats/${MOCK_THREAD_ID}']`,
|
`a[href='/workspace/chats/${MOCK_THREAD_ID}']`,
|
||||||
);
|
);
|
||||||
await expect(sidebarThread).toBeVisible({ timeout: 15_000 });
|
await expect(sidebarThread).toBeVisible({ timeout: 15_000 });
|
||||||
await expect(
|
await expect(sidebarThread.getByLabel("Feishu channel")).toBeVisible();
|
||||||
sidebarThread.getByLabel("Feishu channel"),
|
|
||||||
).toBeVisible();
|
|
||||||
|
|
||||||
await page.goto("/workspace/chats");
|
await page.goto("/workspace/chats");
|
||||||
|
|
||||||
const mainThread = page.locator("main").locator(
|
const mainThread = page
|
||||||
`a[href='/workspace/chats/${MOCK_THREAD_ID}']`,
|
.locator("main")
|
||||||
);
|
.locator(`a[href='/workspace/chats/${MOCK_THREAD_ID}']`);
|
||||||
await expect(mainThread.getByText("Feishu conversation")).toBeVisible({
|
await expect(mainThread.getByText("Feishu conversation")).toBeVisible({
|
||||||
timeout: 15_000,
|
timeout: 15_000,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user