feat(activity): surface active work across the session picker, tool rail and mobile

This commit is contained in:
Chris Scott committed 2026-10-16 00:54:06 -04:00
1 parent be874ee07c
commit d8f2fcf29c
46 files changed
+3120 -277

No files matched your search

@@ -0,0 +1,20 @@
import { useActivityWindowMs } from '@/hooks/useActiveWork'
import { ActivityList } from '@/components/activity/ActivityList'
/**
* A compact, self-titled Activity section that renders nothing when empty.
* Reads the network through `useActiveWork`, so it must only be mounted while visible.
*/
export function CompactActivityList({ onNavigate }: { onNavigate: (path: string) => void }) {
const windowMs = useActivityWindowMs()
return (
<ActivityList
windowMs={windowMs}
title="Activity"
hideWhenEmpty
variant="compact"
onNavigate={(item) => onNavigate(item.path)}
/>
)
}