Fix frontend formatting after merge

This commit is contained in:
taohe
2026-06-11 17:54:22 +08:00
parent d1768606c0
commit b8323024c9
4 changed files with 9 additions and 12 deletions
@@ -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]);
@@ -225,7 +225,7 @@ export function RecentChatList() {
<SidebarMenuButton isActive={isActive} asChild>
<div>
<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)}
>
<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 = {
limit: 50,
+4 -6
View File
@@ -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,
});