Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: rename to threads

Gus8c66078634b2
diff --git a/src/web/src/app/(app)/w/[slug]/traces/[traceId]/page.tsx b/src/web/src/app/(app)/w/[slug]/threads/[traceId]/page.tsx
similarity index 99%
rename from src/web/src/app/(app)/w/[slug]/traces/[traceId]/page.tsx
rename to src/web/src/app/(app)/w/[slug]/threads/[traceId]/page.tsx
index 950357a37..2bd21a64b 100644
--- a/src/web/src/app/(app)/w/[slug]/traces/[traceId]/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/threads/[traceId]/page.tsx
@@ -186,7 +186,7 @@ export default function TraceDetailPage() {
<div className="flex flex-col h-full">
<div className="sticky top-0 z-10 flex items-center gap-2 px-4 py-2.5 border-b border-border/30">
<Link
- href={`/w/${slug}/traces`}
+ href={`/w/${slug}/threads`}
className="flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors"
>
<ArrowLeft className="size-3.5" />
diff --git a/src/web/src/app/(app)/w/[slug]/traces/page.tsx b/src/web/src/app/(app)/w/[slug]/threads/page.tsx
similarity index 97%
rename from src/web/src/app/(app)/w/[slug]/traces/page.tsx
rename to src/web/src/app/(app)/w/[slug]/threads/page.tsx
index 8f260a4ce..156f1713f 100644
--- a/src/web/src/app/(app)/w/[slug]/traces/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/threads/page.tsx
@@ -21,7 +21,7 @@ import { AvatarRenderer, parseAvatarUrl } from "@/components/avatar";
const TRACE_LIMIT = 30;
const STATUS_OPTIONS = [
- { label: "All", value: "" },
+ { label: "All", value: "all" },
{ label: "Active", value: "active" },
{ label: "Completed", value: "completed" },
{ label: "Failed", value: "failed" },
@@ -89,7 +89,7 @@ function TraceRow({ trace, slug }: { trace: TraceListItem; slug: string }) {
return (
<Link
- href={`/w/${slug}/traces/${trace.trace_id}`}
+ href={`/w/${slug}/threads/${trace.trace_id}`}
className="block px-4 py-3 border-b border-border/30 hover:bg-accent/30 transition-colors duration-150 cursor-pointer"
>
<div className="flex items-center gap-2">
@@ -183,7 +183,7 @@ export default function TracesPage() {
try {
const result = await listTraces(workspaceId, {
limit: TRACE_LIMIT,
- status: statusFilter || undefined,
+ status: statusFilter === "all" ? undefined : statusFilter || undefined,
multiAgent: true,
agentId: agentFilter || undefined,
channel: channelFilter || undefined,
@@ -216,7 +216,7 @@ export default function TracesPage() {
const result = await listTraces(workspaceId, {
limit: TRACE_LIMIT,
before: oldest.started_at,
- status: statusFilter || undefined,
+ status: statusFilter === "all" ? undefined : statusFilter || undefined,
multiAgent: true,
agentId: agentFilter || undefined,
channel: channelFilter || undefined,
@@ -254,7 +254,7 @@ export default function TracesPage() {
} else {
newParams.delete(key);
}
- const pathname = `/w/${slug}/traces`;
+ const pathname = `/w/${slug}/threads`;
const qs = newParams.toString();
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
},
diff --git a/src/web/src/components/app-sidebar.tsx b/src/web/src/components/app-sidebar.tsx
index d956191e5..55f75eba6 100644
--- a/src/web/src/components/app-sidebar.tsx
+++ b/src/web/src/components/app-sidebar.tsx
@@ -174,7 +174,7 @@ export function AppSidebar({ onNavigate }: { onNavigate?: () => void } = {}) {
const isHome = pathname === `${prefix}/home`;
const isRuntimes = pathname === `${prefix}/runtimes`;
const isCalendar = pathname === `${prefix}/calendar`;
- const isTraces = pathname.startsWith(`${prefix}/traces`);
+ const isTraces = pathname.startsWith(`${prefix}/threads`);
const isSettings = pathname === `${prefix}/settings`;
const isCreateAgent = pathname === `${prefix}/agents/new`;
@@ -265,7 +265,7 @@ export function AppSidebar({ onNavigate }: { onNavigate?: () => void } = {}) {
<TooltipTrigger render={
<button
type="button"
- onClick={() => { router.push(`${prefix}/traces`); onNavigate?.(); }}
+ onClick={() => { router.push(`${prefix}/threads`); onNavigate?.(); }}
className={cn(
"flex items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
"text-muted-foreground hover:text-foreground hover:bg-accent",
diff --git a/src/web/src/components/canvas/active-tasks-float.tsx b/src/web/src/components/canvas/active-tasks-float.tsx
index 3d3a3e49e..8c4de7751 100644
--- a/src/web/src/components/canvas/active-tasks-float.tsx
+++ b/src/web/src/components/canvas/active-tasks-float.tsx
@@ -151,7 +151,7 @@ export function ActiveTasksFloat() {
))}
{taskCount > 8 && (
<Link
- href={`/w/${slug}/traces?status=active`}
+ href={`/w/${slug}/threads?status=active`}
className="block text-xs text-muted-foreground hover:text-foreground text-center py-1.5 transition-colors"
>
View all {taskCount} tasks
diff --git a/src/web/src/components/mobile-top-bar.tsx b/src/web/src/components/mobile-top-bar.tsx
index 6eab97e46..4407e7236 100644
--- a/src/web/src/components/mobile-top-bar.tsx
+++ b/src/web/src/components/mobile-top-bar.tsx
@@ -18,7 +18,7 @@ export function MobileTopBar() {
const { agents, pins, unpinnedOrder, runtimes, loading } = useAgentContext();
const isHomeActive = pathname === `/w/${slug}/home`;
- const isTracesActive = pathname.includes("/traces");
+ const isTracesActive = pathname.includes("/threads");
const activeAgentMatch = pathname.match(/^\/w\/[^/]+\/agents\/([^/]+)/);
const activeAgentId = activeAgentMatch?.[1] ?? null;
@@ -73,7 +73,7 @@ export function MobileTopBar() {
</button>
<button
- onClick={() => router.push(`/w/${slug}/traces`)}
+ onClick={() => router.push(`/w/${slug}/threads`)}
aria-label="Traces"
className={cn(
"shrink-0 p-1 rounded-md transition-colors",