Each project is now a single sidebar row with its own icon and color that opens the project's coordinator conversation. The whole row drags to reorder. The row menu gains Customize for name, icon and color. Inside the coordinator conversation, an overview lists the project's agent threads that need the user, are running, or recently finished. Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ Co-authored-by: Claude <noreply@anthropic.com>
20 lines
601 B
TypeScript
20 lines
601 B
TypeScript
import type { Bot, Group } from "@rakazo/contracts";
|
|
import type { RefObject } from "react";
|
|
import { useMemo } from "react";
|
|
import { buildHeuteBrief } from "../../lib/heute-brief";
|
|
import { useRunActivity } from "../../lib/run-activity";
|
|
|
|
export function useHeuteActionCount(groups: Group[], botsRef: RefObject<Bot[]>): number {
|
|
const { active, recent } = useRunActivity();
|
|
return useMemo(
|
|
() =>
|
|
buildHeuteBrief({
|
|
bots: botsRef.current,
|
|
groups,
|
|
activeRuns: active,
|
|
recentRuns: recent,
|
|
}).actionCount,
|
|
[active, recent, groups, botsRef],
|
|
);
|
|
}
|