feat: add assistant conversation widget

This commit is contained in:
ajnart committed 2026-08-14 11:32:10 +02:00
1 parent f3420a4149
commit 8e0a52fcd0
17 files changed
+779 -93

No files matched your search

@@ -0,0 +1,18 @@
import { describe, expect, it } from "vitest";
import { definition } from ".";
describe("assistant widget definition", () => {
it("follows the current conversation by default", () => {
const options = definition.createOptions();
expect(options.conversationMode.defaultValue).toBe("current");
expect(options.conversation.shouldHide?.({ conversationMode: "current", conversation: null }, [])).toBe(true);
});
it("reveals the conversation selector only when a conversation is pinned", () => {
const options = definition.createOptions();
expect(options.conversation.shouldHide?.({ conversationMode: "pinned", conversation: null }, [])).toBe(false);
});
});