Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
9840870
feat(design-system): compact Combobox trigger and menu minimum width
morgmart Nov 16, 2026
ef1c01b
fix(design-system): keep the compact Combobox trigger at Select's height
morgmart Nov 16, 2026
397a957
feat(solo): let plugins ask the owner to share a Solo chat
morgmart Nov 14, 2026
138a74e
feat(tasks): add a bundled Tasks plugin
morgmart Nov 15, 2026
1bea77e
fix(tasks): ask to share only as a link is saved, and harden saves
morgmart Nov 15, 2026
2ed9cab
feat(tasks): the first person to use Tasks makes its channel
morgmart Nov 15, 2026
2bf8108
fix(tasks): address review of the share request and tasks channel
morgmart Nov 15, 2026
8af5543
fix(tasks): list Tasks in the desktop plugin catalog
morgmart Nov 15, 2026
74f7b29
feat(tasks): give each task one home, and group tasks by project
morgmart Nov 16, 2026
e1ab50e
fix(agents): leave task conversations out of the channel list
morgmart Nov 16, 2026
d5a043b
feat(tasks): comment on tasks in their own conversation
morgmart Nov 16, 2026
e930ca8
fix(tasks): take edit rights from the relay, and keep agents to their…
morgmart Nov 16, 2026
e45dd10
feat(tasks): use the compact Combobox trigger for assignees
morgmart Nov 16, 2026
07cdaa5
fix(tasks): keep agent reads to the agent, and share the place rules
morgmart Nov 16, 2026
4f35b8a
fix(tasks): keep the place rule where every create and move passes
morgmart Nov 16, 2026
e224935
chore(tasks): put saveTask's comment back above it
morgmart Nov 16, 2026
e57ded7
fix(tasks): say read-only once, under Comments
morgmart Nov 16, 2026
735a96f
fix(tasks): tell a banned viewer so under Comments
morgmart Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/plugin-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ pub fn bundled_manifests() -> Vec<Manifest> {
.expect("valid pairing manifest"),
serde_json::from_str(include_str!("../../../src/bundled/todos/manifest.json"))
.expect("todos manifest"),
serde_json::from_str(include_str!("../../../src/bundled/tasks/manifest.json"))
.expect("tasks manifest"),
serde_json::from_str(include_str!("../../../src/bundled/diffs/manifest.json"))
.expect("bundled diffs manifest"),
serde_json::from_str(include_str!("../../../src/bundled/mermaid/manifest.json"))
Expand Down
1 change: 1 addition & 0 deletions crates/plugin-manager/tests/management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ fn bundled_defaults_preserve_saved_choices_and_only_channels_is_required() {
id,
"buzz.pi"
| "buzz.todos"
| "buzz.tasks"
| "buzz.usage"
| "buzz.relay-notes"
| "buzz.reminders"
Expand Down
1 change: 1 addition & 0 deletions src/app/pages.integration.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ test("the app runtime exposes ready bundled pages and removes them on disable",
"buzz.file-viewer",
"buzz.drafts-and-sent",
"buzz.changesets",
"buzz.tasks",
].includes(plugin.manifest.id),
plugin.manifest.id,
);
Expand Down
7 changes: 7 additions & 0 deletions src/bundled/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import * as huddles from "./huddles";
import builderlabManifest from "./builderlab/manifest.json";
import * as builderlab from "./builderlab";
import * as todos from "./todos";
import tasksManifest from "./tasks/manifest.json";
import * as tasks from "./tasks";
import diffsManifest from "./diffs/manifest.json";
import * as diffs from "./diffs";
import mermaidManifest from "./mermaid/manifest.json";
Expand Down Expand Up @@ -138,6 +140,11 @@ export const bundledPlugins: readonly BundledPlugin[] = [
module: todos,
enabledByDefault: false,
},
{
manifest: { ...tasksManifest, apiVersion: 1 },
module: tasks,
enabledByDefault: false,
},
{
manifest: { ...diffsManifest, apiVersion: 1 },
module: diffs,
Expand Down
18 changes: 18 additions & 0 deletions src/bundled/tasks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Tasks

A task holds the context for a piece of work, so anyone can pick it up later.

## Getting started

1. Open **Tasks** and choose **New task**. Give it a title, choose where it lives, and add a description and images if they help.
2. In a chat or channel, choose **Tasks** in its header to see the tasks that live there or are linked there, make one, or link an existing one.

You can also ask your agent to make a task from a conversation, or to find what you should work on.

- Every task lives in one place: a project, a channel or a chat. Whoever can open that place can see the task, and whoever can post there can edit it. Guests can only view.
- The Tasks page groups tasks by project. A task in a channel or chat filed in a project shows under that project.
- A task has a status (To do, In progress, Done or Cancelled) and up to four people assigned. Starting a task assigns you.
- Moving a task changes who can see it. Before it moves, you see which places' people gain or lose access.
- Linking a task to a conversation never changes who can see either one. Only people who can read the conversation see the link.
- A task link in a message shows the task's title and status, and opens it. Creating a task posts nothing.
- If someone else saves a task while you're editing it, your text is kept and you choose what to save.
22 changes: 22 additions & 0 deletions src/bundled/tasks/StatusIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {
CheckCircleIcon,
CircleHalfIcon,
CircleIcon,
XCircleIcon,
} from "../../shared/design-system/icons/index";
import type { TaskStatus } from "./model";

/** Each status has its own glyph; none borrows a warning or error meaning. */
export function StatusIcon({ status }: { status: TaskStatus }) {
const props = { size: 16, "aria-hidden": true } as const;
switch (status) {
case "todo":
return <CircleIcon {...props} />;
case "in_progress":
return <CircleHalfIcon {...props} />;
case "done":
return <CheckCircleIcon {...props} />;
case "cancelled":
return <XCircleIcon {...props} />;
}
}
184 changes: 184 additions & 0 deletions src/bundled/tasks/TaskComments.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
// @vitest-environment jsdom
import "@testing-library/jest-dom/vitest";
import {
act,
cleanup,
fireEvent,
render,
screen,
} from "@testing-library/react";
import { afterEach, expect, it, vi } from "vitest";
import type { ConversationHostServices } from "../../features/conversation/ConversationHost";
import type {
ChannelReach,
ChannelReachState,
} from "../../features/relay/channel-reach";
import type { RelaySession } from "../../features/relay/session";
import { TASK_TYPE, type Task, taskOf } from "./model";
import { TaskComments } from "./TaskComments";

afterEach(cleanup);

const home = "22222222-2222-4222-8222-222222222222";
const conversation = "33333333-3333-8333-8333-333333333333";
const task = taskOf({
id: "d".repeat(64),
pubkey: "b".repeat(64),
created_at: 5,
kind: 45010,
content: JSON.stringify({ version: 2, author: "a".repeat(64) }),
tags: [
["d", "11111111-1111-4111-8111-111111111111"],
["h", home],
["type", TASK_TYPE],
["title", "Fix the header"],
],
}) as Task;

/** Handles the test answers for, one per channel. */
function setup(options: { conversations?: boolean } = {}) {
const handles = new Map<
string,
{ set(state: ChannelReachState): void; retry: ReturnType<typeof vi.fn> }
>();
const reach = (id: string): ChannelReach => {
let state: ChannelReachState = { status: "loading" };
const listeners = new Set<() => void>();
const retry = vi.fn();
handles.set(id, {
set(next) {
state = next;
for (const listener of listeners) listener();
},
retry,
});
return {
snapshot: () => state,
subscribe(listener) {
listeners.add(listener);
return () => listeners.delete(listener);
},
retry,
release: () => {},
};
};
const openConversation = vi.fn(async () => conversation);
const session = {
viewer: "a".repeat(64),
channels: { reach },
artifacts: {
conversationId: async () => conversation,
...(options.conversations === false ? {} : { openConversation }),
},
} as unknown as RelaySession;
const view = () =>
render(
<TaskComments
session={session}
scope="example.org"
host={{} as ConversationHostServices}
task={task}
/>,
);
return { handles, openConversation, view };
}

const answer = async (
handles: ReturnType<typeof setup>["handles"],
id: string,
state: ChannelReachState,
) => {
await vi.waitFor(() => expect(handles.has(id)).toBe(true));
act(() => handles.get(id)?.set(state));
};

it("waits, without a composer, until the relay answers", async () => {
const { handles, view } = setup();
view();
expect(screen.getByRole("status")).toHaveTextContent("Loading comments…");
await answer(handles, conversation, {
status: "unavailable",
reason: "unavailable",
});
// The home decides who may start the conversation; still asking.
expect(screen.getByRole("status")).toHaveTextContent("Loading comments…");
expect(screen.queryByRole("button")).toBeNull();
});

it("lets someone who can post in the task's home start its comments", async () => {
const { handles, openConversation, view } = setup();
view();
await answer(handles, conversation, {
status: "unavailable",
reason: "unavailable",
});
await answer(handles, home, { status: "open", post: true, joined: true });
expect(screen.getByText("No comments yet.")).toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Add a comment" }));
expect(openConversation).toHaveBeenCalledWith(task.id, expect.anything());
});

it("offers a view-only person no way to start comments", async () => {
const { handles, view } = setup();
view();
await answer(handles, conversation, {
status: "unavailable",
reason: "unavailable",
});
await answer(handles, home, { status: "open", post: false, joined: false });
expect(screen.getByText("No comments yet.")).toBeInTheDocument();
expect(screen.getByText("Read-only access")).toBeInTheDocument();
expect(screen.queryByRole("button")).toBeNull();
});

it("offers to try again when the relay couldn't be asked", async () => {
const { handles, view } = setup();
view();
await answer(handles, conversation, {
status: "unavailable",
reason: "failed",
});
expect(screen.getByRole("alert")).toHaveTextContent(
"Couldn’t load comments.",
);
fireEvent.click(screen.getByRole("button", { name: "Try again" }));
expect(handles.get(conversation)?.retry).toHaveBeenCalled();
expect(handles.get(home)?.retry).toHaveBeenCalled();
});

it("shows a failed home check with a retry, not an empty thread", async () => {
const { handles, view } = setup();
view();
await answer(handles, conversation, {
status: "unavailable",
reason: "unavailable",
});
await answer(handles, home, { status: "unavailable", reason: "failed" });
expect(screen.queryByText("No comments yet.")).toBeNull();
expect(screen.getByRole("alert")).toHaveTextContent(
"Couldn’t load comments.",
);
fireEvent.click(screen.getByRole("button", { name: "Try again" }));
expect(handles.get(home)?.retry).toHaveBeenCalled();
});

it("says so where the community has no task comments", () => {
setup({ conversations: false }).view();
expect(
screen.getByText("Comments aren’t available in this community yet."),
).toBeInTheDocument();
});

it("says plainly that a banned viewer is banned, with nothing to retry", async () => {
const { handles, view } = setup();
view();
await answer(handles, conversation, {
status: "unavailable",
reason: "banned",
});
await answer(handles, home, { status: "unavailable", reason: "banned" });
expect(
screen.getByText("You’re banned from this community."),
).toBeInTheDocument();
expect(screen.queryByRole("button")).toBeNull();
});
Loading
Loading