{
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ onOpen();
+ }
+ }}
+ role="button"
+ tabIndex={0}
+ aria-label={`Open ${title}`}
+ className="group flex cursor-pointer items-center gap-3 border-(--gray-3) border-b py-2 pr-3 pl-4 transition-colors hover:bg-(--gray-2)"
+ >
+
+
+
+ {title}
+
+ {repoName !== "—" ? (
+
+ {repoName}
+
+ ) : null}
+
+
+ {formatRelativeDate(archived.archivedAt)}
+
+
+ );
+}
diff --git a/packages/ui/src/features/home/components/HomeView.tsx b/packages/ui/src/features/home/components/HomeView.tsx
index 6f5111dcea..529f0e2e47 100644
--- a/packages/ui/src/features/home/components/HomeView.tsx
+++ b/packages/ui/src/features/home/components/HomeView.tsx
@@ -7,6 +7,7 @@ import {
Warning,
} from "@phosphor-icons/react";
import { Button } from "@posthog/quill";
+import { useHomeArchivedTasks } from "@posthog/ui/features/home/hooks/useHomeArchivedTasks";
import { useHomeSnapshot } from "@posthog/ui/features/home/hooks/useHomeSnapshot";
import {
type HomeViewMode,
@@ -18,6 +19,7 @@ import { Box, Flex, ScrollArea, Text } from "@radix-ui/themes";
import { useEffect, useMemo } from "react";
import { ConfigMap } from "../config/ConfigMap";
import { HomeActiveAgentsStrip } from "./HomeActiveAgentsStrip";
+import { HomeArchivedSection } from "./HomeArchivedSection";
import { HomeBoardView } from "./HomeBoardView";
import { HomeEmptyState } from "./HomeEmptyState";
import { HomeWorkstreamDetailPanel } from "./HomeWorkstreamDetailPanel";
@@ -39,6 +41,8 @@ const HEADER_CONTENT = (
export function HomeView() {
const { snapshot, isLoading } = useHomeSnapshot();
+ const { items: archivedItems, isLoading: archivedLoading } =
+ useHomeArchivedTasks();
const viewMode = useHomeUiStore((s) => s.viewMode);
const setViewMode = useHomeUiStore((s) => s.setViewMode);
const selectedWorkstreamId = useHomeUiStore((s) => s.selectedWorkstreamId);
@@ -88,7 +92,7 @@ export function HomeView() {
}
const totalRows = needsAttention.length + inProgress.length;
- const hasContent = activeAgents.length > 0 || totalRows > 0;
+ const activeHasContent = activeAgents.length > 0 || totalRows > 0;
return (