fix(webui): show skeleton while conversation history loads

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-20 22:01:40 +08:00
1 parent 85bee83247
commit 14d9e6ed0d
7 files changed
+176 -16

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { ThreadShell } from "@/components/thread/ThreadShell";
import { settings } from "@/dev/gallery/settings";
export function ThreadLoadingFixture() {
const dark = new URLSearchParams(location.search).has("dark");
document.documentElement.classList.toggle("dark", dark);
return <main className="thread-workspace flex min-w-0 flex-col overflow-hidden bg-background" style={{ height: "100dvh" }}>
<ThreadShell
session={{ key: "websocket:loading-preview", channel: "websocket", chatId: "loading-preview", createdAt: null, updatedAt: null, preview: "" }}
title="Loading preview" onToggleSidebar={() => {}} theme={dark ? "dark" : "light"}
settingsSnapshot={settings}
/>
</main>;
}