feat(webui): switch model presets from the composer (#5077)

This commit is contained in:
chengyongru
2026-07-24 17:34:26 +08:00
committed by GitHub
parent 9aab94c766
commit 5be176a6a0
16 changed files with 991 additions and 138 deletions
+3
View File
@@ -23,6 +23,7 @@ describe("ChatList", () => {
session({
chatId: "older",
title: "Older chat",
preview: "/model fast",
updatedAt: "2026-05-21T10:00:00Z",
}),
session({
@@ -46,6 +47,7 @@ describe("ChatList", () => {
onTogglePin={vi.fn()}
onRequestRename={vi.fn()}
onToggleArchive={vi.fn()}
showPreviews
/>,
);
@@ -54,6 +56,7 @@ describe("ChatList", () => {
expect(text.indexOf("Newest chat")).toBeLessThan(text.indexOf("Middle chat"));
expect(text.indexOf("Middle chat")).toBeLessThan(text.indexOf("Older chat"));
expect(screen.queryByText("/model fast")).not.toBeInTheDocument();
});
it("shows a pin indicator for pinned chats", () => {