MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 2m21s
New MCP tools delete_task (tasks:write), create_task_list (tasks:write) and create_list (lists:write); list_task_lists now returns the board columns so agents know the valid kanbanStatus values. Task deletion is a shared helper (deleteTask) for REST and MCP. Tasks and list items get agent_mark (migration 12): "created" when an agent adds them via MCP, "edited" when an agent changes them; a change by the user clears it. The new AgentBadge shows "KI" / "KI geändert" in task rows, Kanban cards, the task detail, the inbox and lists. Settings: export and import move out of "Webhooks, KI-Agenten & Export" into their own category "Export & Import". Docs, help, README and changelog updated; v0.29.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
798 B
TypeScript
19 lines
798 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { render } from '@testing-library/react';
|
|
import { AgentBadge } from '../AgentBadge';
|
|
|
|
describe('AgentBadge', () => {
|
|
it('shows nothing for entries of the user', () => {
|
|
expect(render(<AgentBadge mark={undefined} />).container.firstChild).toBeNull();
|
|
});
|
|
|
|
it('tells created and edited entries apart', () => {
|
|
const created = render(<AgentBadge mark="created" />).container.firstChild as HTMLElement;
|
|
expect(created.textContent).toBe('KI');
|
|
expect(created.getAttribute('title')).toContain('angelegt');
|
|
const edited = render(<AgentBadge mark="edited" />).container.firstChild as HTMLElement;
|
|
expect(edited.textContent).toBe('KI geändert');
|
|
expect(edited.getAttribute('title')).toContain('geändert');
|
|
});
|
|
});
|