- Create ChatMentionPopover (200px, opens upward, agent icon + name + role label) - Agents filtered by query, max 5 visible, No agents found empty state - 3 skeleton rows loading state, onOpenAutoFocus prevented for textarea focus - Include agent-role-colors dependency for worktree build
14 lines
534 B
TypeScript
14 lines
534 B
TypeScript
// @vitest-environment jsdom
|
|
import { describe, it, expect } from "vitest";
|
|
|
|
describe("ChatMentionPopover", () => {
|
|
it("exports ChatMentionPopover component", async () => {
|
|
const mod = await import("./ChatMentionPopover");
|
|
expect(mod.ChatMentionPopover).toBeDefined();
|
|
});
|
|
|
|
it.todo("renders agent list filtered by query string");
|
|
it.todo("shows agent icon, name, and role for each item");
|
|
it.todo("calls onSelect with agent name on item click");
|
|
it.todo("shows 'No agents found' when filter matches nothing");
|
|
});
|