feat(webui): refresh the empty chat welcome (#6650)

* feat(webui): refresh the empty chat welcome

* fix(webui): keep empty chat accessible in split panes

* chore(webui): remove unused fixture test id
This commit is contained in:
chengyongru authored and GitHub committed 2026-11-13 17:12:18 +08:00
1 parent 90d69e7a11
commit 6a24b17629
26 files changed
+283 -205

No files matched your search

@@ -386,7 +386,7 @@ describe("temporary chat navigation", () => {
expect(within(screen.getByTestId("thread-message-region")).getByText(
"Count from one to three",
)).toBeInTheDocument();
expect(screen.queryByTestId("hero-greeting")).not.toBeInTheDocument();
expect(screen.queryByTestId("thread-welcome-mark")).not.toBeInTheDocument();
});
it.each(["before leaving", "while away", "after returning"])(
@@ -520,7 +520,7 @@ describe("temporary chat navigation", () => {
expect(window.location.hash).toBe(`#/temporary/${secondChatId}`);
await selectTopic("Close temporary chat: List three colors");
expect(deleteCache).toHaveBeenCalledWith(secondChatId);
expect(await screen.findByTestId("hero-greeting")).toBeInTheDocument();
expect(await screen.findByTestId("thread-welcome-mark")).toBeInTheDocument();
for (const cache of deleteCache.mock.contexts) {
if (!(cache instanceof ThreadMessageCache)) throw new Error("Expected thread message cache");
expect(cache.get(firstChatId)).toBeUndefined();